Friday, June 24, 2011

Unpacked gem has no specification file

I started working on a new rails project and in every time from command line operation getting this type of irritating message:

config.gem: Unpacked gem ..... in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.

I run rake gems:refresh_specs but the problem isn't fixed. Moreover, tried by creating specification file as well.

After that, removed the irritating message by a single line of code to place in the environment file:

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::VendorGemSourceIndex.silence_spec_warnings = true

Rails::Initializer.run do |config|