oggy/looksee

Invalid gemspec created when installing looksee 1.0.3

danhorst opened this issue · 5 comments

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 commented

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

Please upgrade Rubygems and reinstall.

Thanks!
Sorry, about that.

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

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 commented

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"