invalid date format in specification - webrobots 0.0.10

chip's Avatar

chip

08 Jul, 2011 05:40 PM

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?

  1. 2 Posted by chip on 08 Jul, 2011 08:48 PM

    chip's Avatar

    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.

  2. 3 Posted by collin on 13 Jul, 2011 09:57 PM

    collin's Avatar

    Also you could change "2011-07-01 00:00:00.000000000Z" to "2011-07-01" in the gemspec, until you update anyway...

  3. chip closed this discussion on 16 Jul, 2011 06:44 PM.

  4. Support Staff 4 Posted by Nick Quaranto on 29 Jul, 2011 03:30 PM

    Nick Quaranto's Avatar

    I would just use a standard date entry like 07-29-2011 or just change it to Date.today when generating the gemspec.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac