spree/spree — Issue #1154: Invalid gemspec Illformed requirement YAML::Syck::DefaultKey on RubyGems 1.6.2
Author: berkes
Created: 2012-02-14 13:08:04+00:00
State: open

This happens on site5. Before 1.0.0, this was not a problem.

Passenger trows the error:
```"Could not find spree-1.0.0 in any of the sources (Bundler::GemNotFound)```

When inspecting the bundle, bundle list throws:
```
Gems included by the bundle:
Could not find spree_core-1.0.0 in any of the sources
```

But the warnings are more informative:
Invalid gemspec in [/home/username/spree/vendor/bundle/ruby/1.8/specifications/spree_api-1.0.0.gemspec]: Illformed requirement ["# 1.0.0"]
Invalid gemspec in [/home/username/spree/vendor/bundle/ruby/1.8/specifications/spree_sample-1.0.0.gemspec]: Illformed requirement ["# 1.0.0"]
Invalid gemspec in [/home/username/spree/vendor/bundle/ruby/1.8/specifications/spree_auth-1.0.0.gemspec]: Illformed requirement ["# 1.0.0"]
Invalid gemspec in [/home/username/spree/vendor/bundle/ruby/1.8/specifications/spree_promo-1.0.0.gemspec]: Illformed requirement ["# 1.0.0"]
Invalid gemspec in [/home/username/spree/vendor/bundle/ruby/1.8/specifications/spree_core-1.0.0.gemspec]: Illformed requirement ["# 0.1.4"]
Invalid gemspec in [/home/username/spree/vendor/bundle/ruby/1.8/specifications/spree-1.0.0.gemspec]: Illformed requirement ["# 1.0.0"]
Invalid gemspec in [/home/username/spree/vendor/bundle/ruby/1.8/specifications/spree_dash-1.0.0.gemspec]: Illformed requirement ["# 1.0.0"]

Many threads mention that one should upgrade RubyGems; however, since this is a shared host, that is out of the question.

```
RubyGems Environment:
- RUBYGEMS VERSION: 1.6.2
- RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/username/.gems
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /home/username/.gems/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/username/.gems
- /usr/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => false
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "gempath" => ["/home/username/.gems", "/usr/lib/ruby/gems/1.8"]
- "gem" => "--no-ri --no-rdoc"
- :sources => ["http://gems.rubyforge.org/", "http://rubygems.org/"]
- "gemhome" => "/home/username/.gems"
- REMOTE SOURCES:
- http://gems.rubyforge.org/
- http://rubygems.org/
```

Installing with, or without bundler, in .gems or vendor/bundle matters nothing; same YAML::Syck::DefaultKey everywhere.

It seems Spree 1.0.0 is not compatible with RubyGems 1.6.2. If that is the case: should it be noted more clearly?