[Rubygems-developers] RubyGems spec and date

Luis Lavena luislavena at gmail.com
Mon Nov 9 10:38:59 EST 2009

A few friends are facing a strange issue when installing gems on Ubuntu 9.10:


(Pasting here the errors for consistency)

Installing gem diff-lcs-1.1.2
Exception `ArgumentError' at /usr/local/lib/ruby/1.8/date.rb:727 - invalid date
ERROR:  While executing gem ... (ArgumentError)
    invalid date
	/usr/local/lib/ruby/1.8/date.rb:727:in `new'
	/usr/local/lib/ruby/1.8/yaml.rb:133:in `node_import'
	/usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
	/usr/local/lib/ruby/1.8/yaml.rb:133:in `load'

This is the environment:


After checking the gemspec for the guilty gem:

$ gem spec diff-lcs date --remote
--- !timestamp
at: "2004-10-20 01:00:00 -03:00"
"@marshal_with_utc_coercion": false

While is my understanding that "date" should be a string.

Anyone having similar issues with other gems? Should we start
enforcing the specs of the gems?
Luis Lavena
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

More information about the Rubygems-developers mailing list