invalid date format in specification - webrobots 0.0.10
I have installed the mechanize gem which uses webrobots and everything works fine on OSX (Snow Leopard). However, running "bundle install" on CentOS generates this error:
Invalid gemspec in
[/home/account/public_html/rentwb/releases/20110708173025/vendor/bundle/ruby/1.8/specifications/webrobots-0.0.10.gemspec]:
invalid date format in specification: "2011-07-01
00:00:00.000000000Z"
** [out :: 10.180.82.250]
/usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:277:in
_resort!': undefined methodname' for nil:NilClass
(NoMethodError)
Any suggestions on a fix?
Comments are currently closed for this discussion. You can start a new one.
2 Posted by chip on 08 Jul, 2011 08:48 PM
I solved my own problem by adding the following to my Gemfile:
gem 'nokogi'
gem "webrobots", "~> 0.0.10", :git => 'git://github.com/knu/webrobots.git'
I'm not sure if it matters, but I added these lines above "gem 'mechanize'", in case bundler needs them to be specified beforehand.
I hope this helps anyone else that runs into this issue.
3 Posted by collin on 13 Jul, 2011 09:57 PM
Also you could change "2011-07-01 00:00:00.000000000Z" to "2011-07-01" in the gemspec, until you update anyway...
chip closed this discussion on 16 Jul, 2011 06:44 PM.
Support Staff 4 Posted by Nick Quaranto on 29 Jul, 2011 03:30 PM
I would just use a standard date entry like
07-29-2011or just change it toDate.todaywhen generating the gemspec.