我最近将我的宝石管理移植到了bundler,让我的应用程序与heroku玩得很好。这样做后,我开始看到以下错误(虽然我的应用运行正常):
config.gem: Unpacked gem environment.rb in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem environment.rb in vendor/gems not in a versioned directory. Giving up.
config.gem: Unpacked gem ruby in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem ruby in vendor/gems not in a versioned directory. Giving up.
我看过帖子,说我可以忽略它们: http://gilesbowkett.blogspot.com/2009/03/configgem-unpacked-gem-whatever-in.html
情况确实如此,我可以安全地忽略这些警告吗?
答案 0 :(得分:0)
如果你正在使用Rails,你应该使用类似的东西:
bundle_path 'vendor/bundler_gems'
Rails 2.x期望其vendor / gems目录中的gem中包含.specification文件,因为它存储了解压缩的gem。