[Rubygems-developers] Gems built on 1.8.3 fail to install using 1.8.2.

Eric Hodel drbrain at segment7.net
Thu Sep 22 20:38:37 EDT 2005


Something in YAML has changed, apparently, and rubygems on 1.8.2  
can't parse the gemspec anymore.

The source (gem building) machine is:

$ uname -a
Darwin kaa.coop.robotcoop.com 8.2.0 Darwin Kernel Version 8.2.0: Fri  
Jun 24 17:46:54 PDT 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power  
Macintosh powerpc
$ ruby -v
ruby 1.8.3 (2005-09-21) [powerpc-darwin8.2.0]
$ gem --version
0.8.11

The installing machine is:

$ uname -a
FreeBSD RUR-5.coop.robotcoop.com 5.4-RELEASE-p1 FreeBSD 5.4-RELEASE- 
p1 #1: Tue May 17 12:34:03 PDT 2005      
root at RUR-5.coop.robotcoop.com:/usr/obj/usr/src/sys/RUR  i386
$ ruby -v
ruby 1.8.2 (2004-12-25) [i386-freebsd5]
$ gem --version
0.8.11

Attempting to install the gem does this:

$ sudo gem install rails_analyzer_tools-1.1.0.gem
Attempting local installation of 'rails_analyzer_tools-1.1.0.gem'
ERROR:  Error installing gem rails_analyzer_tools-1.1.0.gem[.gem]:  
parse error on line 0, col 31: `!ruby/object:Gem::Specification '

The gem installs just fine when built from the 1.8.2 machine.

A Rakefile using Rake 0.6.0 was used to generate the gem on both  
machines.  (Slightly hacked to work around 1.8.3 breakage of Rake.)

The two gems can be found here:

http://segment7.net/temp/bad-rails_analyzer_tools-1.1.0.gem - 1.8.3
http://segment7.net/temp/good-rails_analyzer_tools-1.1.0.gem - 1.8.2

-- 
Eric Hodel - drbrain at segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04



More information about the Rubygems-developers mailing list