tag:help.rubygems.org,2010-01-19:/discussions/problems/657-invalid-gemspec-in-varlibgems18specificationswebrobots-0010gemspec-invalid-date-format-in-specification-2011-07-01-000000000000000zRubyGems.org: Discussion 2011-09-23T19:48:06Ztag:help.rubygems.org,2010-01-19:Comment/83495622011-07-02T13:02:51Z2011-09-23T15:14:59ZInvalid 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"<div><p>Hello.</p>
<p>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
(<a href="http://ruby-rbot.org/">http://ruby-rbot.org/</a> ):</p>
<pre>
# 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{knu@idaemons.org}
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
</pre>
<p>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. ;)</p></div>anttag:help.rubygems.org,2010-01-19:Comment/83495622011-07-10T16:43:03Z2011-09-23T14:58:39ZInvalid 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"<div><p>No replies? :(</p></div>Anttag:help.rubygems.org,2010-01-19:Comment/83495622011-09-23T15:15:24Z2011-09-23T15:15:24ZInvalid 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"<div><p>This one was buried in our spam filter, just unearthed it.
Sorry.</p>
<p>Is this still happening with the latest version of RubyGems?</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/83495622011-09-23T17:17:19Z2011-09-23T19:47:46ZInvalid 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"<div><p>NQ: I saw it happened again a few days ago. I am still using the
Ruby packages from Debian's apt-get:</p>
<pre>
$ 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
</pre>
<p><a href=
"http://packages.debian.org/search?keywords=rubygems&searchon=names&suite=all&section=all">
http://packages.debian.org/search?keywords=rubygems&amp;searchon=na...</a>
is still showing v1.7.2 as the latest versions. I have to wait for
them to update. :(</p></div>anttag:help.rubygems.org,2010-01-19:Comment/83495622011-09-23T19:48:03Z2011-09-23T19:48:03ZInvalid 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"<div><p>Same deal, please update and let us know how it goes.</p></div>Nick Quaranto