2

我最近切换到使用 bundler,现在每当我在我的 rails 应用程序的 scripts/ 文件夹下运行脚本时,我都会收到以下警告:

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.

我该怎么做才能消除这些错误或解决它们?

4

1 回答 1

3

我今天遇到了同样的问题。转到 config/environment.rb 并在配置块中添加以下行。

Rails::VendorGemSourceIndex.silence_spec_warnings = true
于 2010-01-27T09:44:35.787 回答