1

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

真的是这样吗,我可以放心地忽略这些警告吗?

4

1 回答 1

0

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

bundle_path 'vendor/bundler_gems'

Rails 2.x 期望其 vendor/gems 目录中的 gem 包含 .specification 文件,因为这是它存储未打包的 gem 的地方。

于 2010-02-03T16:37:17.707 回答