在任何来源中均找不到rack-cache-1.0.3
我创建了一个非常基本的 Rails 3.1 应用程序,部署到运行 Ruby 1.8.7 (P334) 的盒子(不幸的是,我无法轻松转到 1.9.2)。
部署并运行“捆绑安装”后,我尝试运行控制台:
bundle exec rails console
我得到:
在任何来源中都找不到rack-cache-1.0.3
并且控制台没有出现。
似乎这个特定版本的rack-cache 被ActionPack 3.1.0 列为依赖项。
有人可以向我解释一下我需要做什么来解决这个问题,即让捆绑器将此版本的机架缓存附加到项目中吗?
我还了解到,捆绑程序将特定于项目的 GEM 存储在“其他地方”,即不再存储在全局 Ruby GEM 路径中。该项目特定位置是否有默认位置?
哦,我还不断收到 Rails 3.1 的大量“无效 gemspec”警告,即:
[/usr/local/lib/ruby/gems/1.8/specifications/rack-cache-1.0.3.gemspec] 中的 gemspec 无效:规范中的日期格式无效:“2011-08-27 00:00:00.000000000 Z”
I have created a very basic Rails 3.1 app, deployed to a box that runs Ruby 1.8.7 (P334) (I can't easily go to 1.9.2. there unfortunately).
After deploying and running 'bundle install' I tried to run a console:
bundle exec rails console
And I get:
Could not find rack-cache-1.0.3 in any of the sources
and the console does not come up.
It seems that this particular version of rack-cache is listed as a dependency by ActionPack 3.1.0.
Can someone explain to me what I need to do to resolve this, i.e. get bundler to attach this version of rack-cache to the project?
Also I read that bundler stores the project-specific GEMs 'somewhere else', i.e. no longer in the global Ruby GEM path. Is there a default location for this project specific place ?
Oh and I also keep getting heaps of 'invalid gemspec' warnings with Rails 3.1, i.e.:
Invalid gemspec in [/usr/local/lib/ruby/gems/1.8/specifications/rack-cache-1.0.3.gemspec]: invalid date format in specification: "2011-08-27 00:00:00.000000000Z"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将我的 Rails 3.0 应用程序升级到 3.1 时遇到了这个问题。
编辑
/usr/local/lib/ruby/gems/1.8/specifications/rack-cache-1.0.3.gemspec
文件并设置s.date = %q{2011-08- 27}
。这将解决您的问题。Ran into this issue when upgrading my Rails 3.0 app to 3.1.
Edit the
/usr/local/lib/ruby/gems/1.8/specifications/rack-cache-1.0.3.gemspec
file and sets.date = %q{2011-08-27}
. This will fix your problem.