Invalid gemspec created when installing looksee 1.0.3 #15

Closed
danhorst opened this Issue Sep 10, 2011 · 5 comments

5 participants

@danhorst

Gemspec created when installing looksee 1.0.3: https://gist.github.com/1207464
The YAML objects present in the conditional block from line 21 to 37 are not valid.
This causes any call to the 'gem' command to throw the following error:
Invalid gemspec in [/PATH/TO/GEMS/ruby-1.8.7-p302/specifications/looksee-1.0.3.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0x7fb59006c528> 0.3.0"]

Environment:
ruby: 1.8.7-p302
rubygems: 1.5.3

@oggy
Owner

This is a rubygems bug: http://blog.rubygems.org/2011/08/31/shaving-the-yaml-yacc.html

Please upgrade Rubygems and reinstall.

@oggy oggy closed this Sep 10, 2011
@danhorst

Thanks!
Sorry, about that.

@ggarnier

The link to Rubygems blog is incorrect, it should be http://blog.rubygems.org/2011/08/31/shaving-the-yaml-yak.html

@artemv

And if you're uhappy with latest rubygems (e.g. it doesn't work with my rails 2.2 app), you can rollback to earlier rubygems version after installing looksee under latest rubygems - it will still work.

@map7

I still had the same problem after using rubygems 1.8.11, but once I added this to my Gemfile and started a new gemset the error went away.

gem 'looksee', :git => "https://github.com/oggy/looksee"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment