忽略“没有规范文件”警告是否安全

时间:2010-02-02 16:42:11

标签: ruby-on-rails initialization heroku bundler

我最近将我的宝石管理移植到了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

情况确实如此,我可以安全地忽略这些警告吗?

1 个答案:

答案 0 :(得分:0)

如果你正在使用Rails,你应该使用类似的东西:

bundle_path 'vendor/bundler_gems'

Rails 2.x期望其vendor / gems目录中的gem中包含.specification文件,因为它存储了解压缩的gem。