0
gem update padrino-cache

Updating installed gems
Updating padrino-cache
ERROR:  While executing gem ... (Errno::EINVAL)
Invalid argument - C:/Ruby192/lib/ruby/gems/1.9.1/gems/padrino-cache-0.9.25/test/tmp/#<class:0x0000010084e5a8>

ruby -v
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]

关于如何解决这个问题的任何想法?

谢谢!

4

2 回答 2

0

问题是 gem 以及它的规范(清单)是如何生成的。

你可以看到 gem 内容在做gem spec padrino-cache -v 0.9.25 files

你会看到这样的东西:

- test/tmp/#<class:0x108b3b4e8>/cache/%2Ffoo
- test/tmp/#<class:0x108b3b588>/cache/%2Ffoo
- test/tmp/#<class:0x108b3b718>/cache/%2Ffoo
- test/tmp/#<class:0x108b46640>/cache/test
- test/tmp/#<class:0x108b5fdc0>/cache/test
- test/tmp/#<class:0x108b60c98>/cache/bar
- test/tmp/#<class:0x108b60c98>/cache/foo
- test/tmp/#<class:0x108b61b20>/cache/test

gem 中包含的文件包含冒号,在 Windows 上用于指示驱动器号,并且不允许作为文件名的一部分。

我会建议将此报告给 Padrino Framework 错误跟踪器:

https://github.com/padrino/padrino-framework/issues

于 2011-04-28T22:40:48.543 回答
0

这已在修补程序版本 0.9.26 中修复。在这里阅读更多:http: //www.padrinorb.com/blog/padrino-0-9-26-hotfix-release

于 2011-04-29T06:50:05.137 回答