Invalid gemspec on what?!
This belongs to a royal PITA moment, thus needs a worthy post. I’m trying to do a
bundle install
|
with my Gemfile as follows:
group :development, :test do gem 'capybara' gem 'cucumber' gem 'cucumber-rails' gem 'database_cleaner' gem 'rspec-rails' gem 'autotest' gem 'spork' gem 'launchy' end |
At the time of writing this, these are the errors that I encountered. Since you are reading this, then I guess something is still wrong here.
Installing cucumber (1.0.6) Installing cucumber-rails (1.0.4) Invalid gemspec in [/Users/rupert/.rvm/gems/ruby-1.9.2-p180@cws/specifications/cucumber-rails-1.0.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000104b82a40> 0.7.2"] Installing database_cleaner (0.6.7) Invalid gemspec in [/Users/rupert/.rvm/gems/ruby-1.9.2-p180@cws/specifications/cucumber-rails-1.0.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000104b82a40> 0.7.2"] Installing orm_adapter (0.0.5) Invalid gemspec in [/Users/rupert/.rvm/gems/ruby-1.9.2-p180@cws/specifications/cucumber-rails-1.0.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000104b82a40> 0.7.2"] Installing warden (1.0.5) Invalid gemspec in [/Users/rupert/.rvm/gems/ruby-1.9.2-p180@cws/specifications/cucumber-rails-1.0.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000104b82a40> 0.7.2"] Installing devise (1.4.5) Invalid gemspec in [/Users/rupert/.rvm/gems/ruby-1.9.2-p180@cws/specifications/cucumber-rails-1.0.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000104b82a40> 0.7.2"] Installing meta_programming (0.2.2) Invalid gemspec in [/Users/rupert/.rvm/gems/ruby-1.9.2-p180@cws/specifications/cucumber-rails-1.0.4.gemspec]: Illformed requirement ["#<Syck::DefaultKey:0x00000104b82a40> 0.7.2"] |
Ok, avoid the PITA moment by reading this. And make the changes to the Gemfile like this:
group :development, :test do gem 'capybara' gem 'cucumber', "1.0.6" gem 'cucumber-rails', :git => "https://github.com/cucumber/cucumber-rails.git" gem 'database_cleaner' gem 'rspec-rails' gem 'autotest' gem 'spork' gem 'launchy' end |
Now, I understand why the commit message is like this: I EAT YAML AND RUBYGEMS FOR toot…