2010-01-27 46 views
2

後沉默寶石錯誤,我最近切換到使用捆綁,現在只要我的腳本下運行的腳本在我的Rails應用程序/文件夾中,我得到以下警告:如何切換到打捆

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. 

做什麼,我必須做些什麼來消除這些錯誤或解決它們?

回答

3

今天我有同樣的問題。轉到config/environment.rb並在配置塊中添加以下行。

Rails::VendorGemSourceIndex.silence_spec_warnings = true 
+0

完美!謝謝 – 2010-01-27 12:43:52