hexawing 2010-03-25 15:30
浏览 266
已采纳

有人“最近”用过prawn这个gem么?

rubyforge不是不搞这些了么,说是现在gems移到rubygems.org去了(好像是09年底的事?),那么我现在怎么才能指定从rubygems.org上安装我要的gem呢?我这样写,没有找到
[code="ruby"]

gem install prawn-core --source http://rubygems.org
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find prawn-core (> 0) in any repository
[/code]

但是我这样写又是可以的
[code="ruby"]

gem install prawn-core --source http://gems.github.com
Bulk updating Gem source index for: http://gems.github.com
[/code]
所以我觉得是后面网址的问题。[我之所以没有直接用后者,是怕它的版本(可能)没有官方公布的那个新]
但现在的问题是:

[code="ruby"]

gem query --remote --name-matches prawn --source http://rubygems.org

*** REMOTE GEMS ***

amberbit-prawn-fast-png (0.2.1, 0.1.3, 0.1.2, 0.1.1)
An extension of Prawn that improves the performance when embedding
PNG images containing an alpha channel

AndrewO-prawn_grid (0.4.1)
A simple way to build grid layouts for Prawn

corny-prawn-layout (0.1.1, 0.1.0)
An extension to Prawn that provides table support and other layout
functionality

fullcirclegroup-fullcirclegroup-prawn (0.2.99.2)
A fast and nimble PDF generator for Ruby

fullcirclegroup-prawn (0.2.99.3)
A fast and nimble PDF generator for Ruby

jerryvos-prawn-layout (0.2.0.4, 0.2.0.3, 0.2.0.2)
An extension to Prawn that provides table support and other layout
functionality

kavu-prawn-core (0.4.100, 0.4.99)
A fast and nimble PDF generator for Ruby

PaulOstazeski-prawn (0.4.99)
A fast and nimble PDF generator for Ruby

sant0sk1-prawn-fast-png (0.1.3)
An extension of Prawn that improves the performance when embedding
PNG images containing an alpha channel

satoko-prawn (0.2.99.6, 0.2.99.2)
A fast and nimble PDF generator for Ruby

sbfaulkner-sinatra-prawn (0.9.2.1, 0.9.2, 0.9.1)
Sinatra extension to add support for pdf rendering with Prawn
templates.

seven1m-prawn_template_handler (0.1.0)
Uber simple template handler for Prawn views in Rails

srdperu-prawn-format (1.1.3.3, 1.1.3.2, 1.1.3.1, 1.1.3.0, 1.1.2, 1.1.1, 0.1.2, 0.1.1.2, 0.1.1.1)
An extension to the Prawn PDF generation library that allows you to
use HTML-ish tags to do inline formatting.

sskirby-prawn-layout (0.1.1, 0.1.0)
An extension to Prawn that provides table support and other layout
functionality

sskirby-sskirby-prawn-layout (0.1.0)
An extension to Prawn that provides table support and other layout
functionality
[/code]
没有这个gem啊
或者说,现在又有更好的gem取代它了?如果这样的话,求推荐一枚……

还有一个就是,我下载之后,在本地安装,结果报这种错:
[code="ruby"]
D:\temp>gem install prawn-0.8.4.gem --l
ERROR: While executing gem ... (RuntimeError)
Error instaling prawn-0.8.4.gem:
prawn requires prawn-core >= 0.8.4, < 0.9

D:\temp>gem install prawn-core-0.8.4.gem --l
ERROR: Error installing gem prawn-core-0.8.4.gem[.gem]: buffer error
[/code]
也不知道什么问题,唉

  • 写回答

1条回答 默认 最新

  • iteye_11263 2010-03-27 17:58
    关注

    这有一篇关于prawn的文章
    http://asciicasts.com/episodes/153-pdfs-with-prawn

    我在安装的过程中,没有指定--source参数就顺利装上了

    建议楼主试试这个方法

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大