Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"

ant's Avatar

ant

02 Jul, 2011 01:02 PM

Hello.

Yesterday morning, I ran a "gem update" on my old Debian box (try to keep it updated daily with apt-get) and then saw this error including today, and it also broke my Rbot installation for IRC (http://ruby-rbot.org/ ):

# gem update
Updating installed gems
Updating hoe
Fetching: hoe-2.10.0.gem (100%)
Successfully installed hoe-2.10.0
Updating nokogiri
Fetching: nokogiri-1.5.0.gem (100%)
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.5.0
Updating webrobots
Fetching: webrobots-0.0.10.gem (100%)
Successfully installed webrobots-0.0.10
Gems updated: hoe, nokogiri, webrobots
Installing ri documentation for hoe-2.10.0...
Installing ri documentation for nokogiri-1.5.0...

No definition for get_options

No definition for set_options

No definition for parse_memory

No definition for parse_file

No definition for parse_with
Installing ri documentation for webrobots-0.0.10...
Installing RDoc documentation for hoe-2.10.0...
Installing RDoc documentation for nokogiri-1.5.0...

No definition for get_options

No definition for set_options

No definition for parse_memory

No definition for parse_file

No definition for parse_with
Installing RDoc documentation for webrobots-0.0.10...


# gem update
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
Updating installed gems
Updating webrobots
Successfully installed webrobots-0.0.10
Gems updated: webrobots
Installing ri documentation for webrobots-0.0.10...
Installing RDoc documentation for webrobots-0.0.10...

$ ./launch_here.rb -b
Running from /home/ant/bin/rbot
D, [2011/07/02 05:38:05#24538] DEBUG -- ircbot.rb:127: debug test
I, [2011/07/02 05:38:05#24538]  INFO -- ircbot.rb:128: log test
W, [2011/07/02 05:38:05#24538]  WARN -- ircbot.rb:129: warning test
E, [2011/07/02 05:38:05#24538] ERROR -- ircbot.rb:130: error test
F, [2011/07/02 05:38:05#24538] FATAL -- ircbot.rb:131: fatal test
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
NOTE: Gem.all_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_load_paths called from /usr/lib/ruby/1.8/gettext/runtime/locale_path.rb:56
.
/usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:510:in `each_load_path': /usr/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:1433:in `date=': invalid date format in specification: "2011-07-01 00:00:00.000000000Z" (Gem::InvalidSpecificationException)
        from (eval):9:in `each_load_path'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:349:in `initialize'
        from (eval):3:in `new'
        from (eval):3:in `each_load_path'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:506:in `eval'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:510:in `each_load_path'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:506:in `each'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:506:in `each_load_path'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:355:in `_deprecated_all_load_paths'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:354:in `each'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:354:in `_deprecated_all_load_paths'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/deprecate.rb:62:in `send'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/deprecate.rb:62:in `all_load_paths'
        from /usr/lib/ruby/1.8/gettext/runtime/locale_path.rb:56:in `_unmemoized_default_path_rules'
        from /var/lib/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:73:in `default_path_rules'
        from /var/lib/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:95:in `_memoize_dup'
        from /var/lib/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:87:in `_memoize'
        from /var/lib/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:95:in `_memoize_dup'
        from /var/lib/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:72:in `default_path_rules'
        from /usr/lib/ruby/1.8/gettext/runtime/locale_path.rb:84:in `initialize'
        from /usr/lib/ruby/1.8/gettext/runtime/textdomain.rb:60:in `new'
        from /usr/lib/ruby/1.8/gettext/runtime/textdomain.rb:60:in `initialize'
        from /usr/lib/ruby/1.8/gettext/runtime/textdomain_manager.rb:208:in `new'
        from /usr/lib/ruby/1.8/gettext/runtime/textdomain_manager.rb:208:in `create_or_find_textdomain'
        from /usr/lib/ruby/1.8/gettext/runtime/textdomain_manager.rb:69:in `bind_to'
        from /usr/lib/ruby/1.8/gettext.rb:83:in `bindtextdomain_to'
        from /usr/lib/ruby/1.8/gettext.rb:64:in `bindtextdomain'
        from /home/ant/bin/rbot/lib/rbot/load-gettext.rb:46
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /home/ant/bin/rbot/lib/rbot/ircbot.rb:144
        from /home/ant/bin/rbot/bin/rbot:99:in `require'
        from /home/ant/bin/rbot/bin/rbot:99
        from ./launch_here.rb:68:in `load'
        from ./launch_here.rb:68


$ ./launch_here.rb
Running from /home/ant/bin/rbot
D, [2011/07/02 05:38:22#24557] DEBUG -- ircbot.rb:127: debug test
I, [2011/07/02 05:38:22#24557]  INFO -- ircbot.rb:128: log test
W, [2011/07/02 05:38:22#24557]  WARN -- ircbot.rb:129: warning test
E, [2011/07/02 05:38:22#24557] ERROR -- ircbot.rb:130: error test
F, [2011/07/02 05:38:22#24557] FATAL -- ircbot.rb:131: fatal test
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
NOTE: Gem.all_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_load_paths called from /usr/lib/ruby/1.8/gettext/runtime/locale_path.rb:56
.
/usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:510:in `each_load_path': /usr/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:1433:in `date=': invalid date format in specification: "2011-07-01 00:00:00.000000000Z" (Gem::InvalidSpecificationException)
        from (eval):9:in `each_load_path'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:349:in `initialize'
        from (eval):3:in `new'
        from (eval):3:in `each_load_path'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:506:in `eval'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:510:in `each_load_path'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:506:in `each'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:506:in `each_load_path'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:355:in `_deprecated_all_load_paths'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:354:in `each'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:354:in `_deprecated_all_load_paths'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/deprecate.rb:62:in `send'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/deprecate.rb:62:in `all_load_paths'
        from /usr/lib/ruby/1.8/gettext/runtime/locale_path.rb:56:in `_unmemoized_default_path_rules'
        from /var/lib/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:73:in `default_path_rules'
        from /var/lib/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:95:in `_memoize_dup'
        from /var/lib/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:87:in `_memoize'
        from /var/lib/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:95:in `_memoize_dup'
        from /var/lib/gems/1.8/gems/locale-2.0.5/lib/locale/util/memoizable.rb:72:in `default_path_rules'
        from /usr/lib/ruby/1.8/gettext/runtime/locale_path.rb:84:in `initialize'
        from /usr/lib/ruby/1.8/gettext/runtime/textdomain.rb:60:in `new'
        from /usr/lib/ruby/1.8/gettext/runtime/textdomain.rb:60:in `initialize'
        from /usr/lib/ruby/1.8/gettext/runtime/textdomain_manager.rb:208:in `new'
        from /usr/lib/ruby/1.8/gettext/runtime/textdomain_manager.rb:208:in `create_or_find_textdomain'
        from /usr/lib/ruby/1.8/gettext/runtime/textdomain_manager.rb:69:in `bind_to'
        from /usr/lib/ruby/1.8/gettext.rb:83:in `bindtextdomain_to'
        from /usr/lib/ruby/1.8/gettext.rb:64:in `bindtextdomain'
        from /home/ant/bin/rbot/lib/rbot/load-gettext.rb:46
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /home/ant/bin/rbot/lib/rbot/ircbot.rb:144
        from /home/ant/bin/rbot/bin/rbot:99:in `require'
        from /home/ant/bin/rbot/bin/rbot:99
        from ./launch_here.rb:68:in `load'
        from ./launch_here.rb:68

I tried to uninstall webrobots package to see if it would help, but it didn't:
# gem uninstall webrobots
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"

You have requested to uninstall the gem:
        webrobots-0.0.9
mechanize-2.0.1 depends on [webrobots (>= 0.0.9, ~> 0.0)]
mechanize-2.0 depends on [webrobots (>= 0.0.9, ~> 0.0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]  n
ERROR:  While executing gem ... (Gem::DependencyRemovalException)
    Uninstallation aborted due to dependent gem(s)
ANTian:/home/ant/bin/rbot# clear
ANTian:/home/ant/bin/rbot# gem uninstall webrobots
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"

You have requested to uninstall the gem:
        webrobots-0.0.9
mechanize-2.0.1 depends on [webrobots (>= 0.0.9, ~> 0.0)]
mechanize-2.0 depends on [webrobots (>= 0.0.9, ~> 0.0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]
Successfully uninstalled webrobots-0.0.9
# gem update
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
Updating installed gems
Nothing to update
ANTian:/home/ant/bin/rbot# gem uninstall webrobots
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec]: invalid date format in specification: "2011-07-01 00:00:00.000000000Z"
ERROR:  While executing gem ... (Gem::InstallError)
    cannot uninstall, check `gem list -d webrobots`

# cat /var/lib/gems/1.8/specifications/webrobots-0.0.10.gemspec
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
  s.name = %q{webrobots}
  s.version = "0.0.10"

  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  s.authors = ["Akinori MUSHA"]
  s.date = %q{2011-07-01 00:00:00.000000000Z}
  s.description = %q{This library helps write robots.txt compliant web robots in Ruby.
}
  s.email = %q{[email blocked]}
  s.extra_rdoc_files = ["LICENSE.txt", "README.rdoc"]
  s.files = ["LICENSE.txt", "README.rdoc"]
  s.licenses = ["2-clause BSDL"]
  s.require_paths = ["lib"]
  s.rubygems_version = %q{1.7.2}
  s.summary = %q{A Ruby library to help write robots.txt compliant web robots}

  if s.respond_to? :specification_version then
    s.specification_version = 3

    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
      s.add_runtime_dependency(%q, [">= 1.4.4"])
      s.add_development_dependency(%q, [">= 0"])
      s.add_development_dependency(%q, [">= 0"])
      s.add_development_dependency(%q, ["~> 1.0.0"])
      s.add_development_dependency(%q, ["~> 1.6.2"])
      s.add_development_dependency(%q, [">= 0"])
    else
      s.add_dependency(%q, [">= 1.4.4"])
      s.add_dependency(%q, [">= 0"])
      s.add_dependency(%q, [">= 0"])
      s.add_dependency(%q, ["~> 1.0.0"])
      s.add_dependency(%q, ["~> 1.6.2"])
      s.add_dependency(%q, [">= 0"])
    end
  else
    s.add_dependency(%q, [">= 1.4.4"])
    s.add_dependency(%q, [">= 0"])
    s.add_dependency(%q, [">= 0"])
    s.add_dependency(%q, ["~> 1.0.0"])
    s.add_dependency(%q, ["~> 1.6.2"])
    s.add_dependency(%q, [">= 0"])
  end
end

I am new to Ruby so I don't know how to fix this. It looks like a bug? How do I fix this? Thank you in advance. ;)

  1. 1 Posted by Ant on 10 Jul, 2011 04:43 PM

    Ant's Avatar

    No replies? :(

  2. Support Staff 2 Posted by Nick Quaranto on 23 Sep, 2011 03:15 PM

    Nick Quaranto's Avatar

    This one was buried in our spam filter, just unearthed it. Sorry.

    Is this still happening with the latest version of RubyGems?

  3. 3 Posted by ant on 23 Sep, 2011 05:17 PM

    ant's Avatar

    NQ: I saw it happened again a few days ago. I am still using the Ruby packages from Debian's apt-get:

    $ apt-cache show rubygems
    Package: rubygems
    Version: 1.7.2-1
    Installed-Size: 4064
    Maintainer: Daigo Moriwaki 
    Architecture: all
    Replaces: rubygems-doc (<< 1.7.2-1~), rubygems1.8 (<< 1.7.2-1~)
    Provides: rubygems-doc, rubygems1.8
    Depends: ruby1.8
    Recommends: ruby1.8-dev, build-essential
    Conflicts: rubygems-doc (<< 1.7.2-1~), rubygems1.8 (<< 1.7.2-1~)
    Description: package management framework for Ruby libraries/applications
     This is a way to package Ruby libraries/applications for distribution.
     RubyGems provides the ability to manage concurrent versions of libraries and
     dependencies between those libraries. Using RubyGems, you can:
       * download and install Ruby libraries easily
       * not worry about libraries A and B depending on different versions of
         library C
       * easily remove libraries you no longer use
     .
     This package provides Rubygems for Ruby 1.8. In Ruby 1.9.X, Rubygems is
     provided with the interpreter.
    Homepage: http://rubygems.org/
    Ruby-Versions: ruby1.8
    Tag: devel::lang:ruby, implemented-in::ruby, role::program
    Section: ruby
    Priority: optional
    Filename: pool/main/r/rubygems/rubygems_1.7.2-1_all.deb
    Size: 446258
    MD5sum: b84c9c97299baedec1d792ae30cd51c5
    SHA1: f20eb7b0aab2691817d0dd70c354778873b00b15
    SHA256: 8ed057610ecf416d7ce25d80260d83b8e815749a7a72b498d7c8cb2bffb68498
    
    Package: rubygems
    Source: libgems-ruby
    Version: 1.6.2-1
    Installed-Size: 52
    Maintainer: Daigo Moriwaki 
    Architecture: all
    Depends: rubygems1.8 (= 1.6.2-1)
    Recommends: ruby-dev
    Description: package management framework for Ruby libraries/applications
     This is a way to package Ruby libraries/applications for distribution.
     RubyGems provides the ability to manage concurrent versions of libraries and
     dependencies between those libraries. Using RubyGems, you can:
       * download and install Ruby libraries easily
       * not worry about libraries A and B depending on different versions of
         library C
       * easily remove libraries you no longer use
     .
     This is a dependency package which depends on Debian's default Ruby version
     (currently 1.8.x).
    Homepage: http://rubygems.org/
    Tag: devel::lang:ruby, implemented-in::ruby, role::program
    Section: ruby
    Priority: optional
    Filename: pool/main/libg/libgems-ruby/rubygems_1.6.2-1_all.deb
    Size: 23614
    MD5sum: 3ec0ba2e2aa82138f7d9c73ccf96a7d0
    SHA1: afa5a7e9194692d0d11c85b6803f72f8c082eebf
    SHA256: 6215aed01e484f1cf8b7932d4995c675fe8583b07613d8b3f6ae9e91c8be8e45
    
    Package: rubygems
    Priority: optional
    Section: ruby
    Installed-Size: 104
    Maintainer: Daigo Moriwaki 
    Architecture: all
    Source: libgems-ruby
    Version: 1.3.7-3
    Depends: rubygems1.8 (= 1.3.7-3)
    Filename: pool/main/libg/libgems-ruby/rubygems_1.3.7-3_all.deb
    Size: 66722
    MD5sum: 94cf1c43bc31a547d7b06efb5fb01804
    SHA1: 10fc0dc9f4d044a133471436f463eac704bae319
    SHA256: b3e9c52457c475f50cd97a2d1773db38d7aa52907b9a568af89c3c75e6ea1476
    Description: package management framework for Ruby libraries/applications
     This is a way to package Ruby libraries/applications for distribution.
     RubyGems provides the ability to manage concurrent versions of libraries and
     dependencies between those libraries. Using RubyGems, you can:
       * download and install Ruby libraries easily
       * not worry about libraries A and B depending on different versions of
         library C
       * easily remove libraries you no longer use
     .
     This is a dependency package which depends on Debian's default Ruby version
     (currently 1.8.x).
    Homepage: http://rubygems.org/
    Tag: devel::lang:ruby, implemented-in::ruby, role::program
    

    http://packages.debian.org/search?keywords=rubygems&amp;searchon=na... is still showing v1.7.2 as the latest versions. I have to wait for them to update. :(

  4. Support Staff 4 Posted by Nick Quaranto on 23 Sep, 2011 07:48 PM

    Nick Quaranto's Avatar

    Same deal, please update and let us know how it goes.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

30 Oct, 2014 04:34 PM
30 Oct, 2014 02:46 PM
28 Oct, 2014 09:51 AM
23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM