有人“最近”用过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个回答

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

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

建议楼主试试这个方法

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐