Bugs item #28906, was opened at 2011-02-03 11:42
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28906&group_id=126
Category: `gem install` command
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 3
Submitted By: Bernard Lambeau (blambeau)
Assigned to: Nobody (None)
Summary: Gems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly
with (1.5.0 / 1.8.7)
Initial Comment:
The build/install scenario below fails. It seems that the metadata generated by
1.9.2 is not properly loaded by 1.8.7. I've attached foo.gemspec.
blambeau@yemana foo % rvm use 1.9.2 && rm -rf pkg && gem build foo.gemspec
Successfully built RubyGem
Name: foo
Version: 1.0.0
File: foo-1.0.0.gem
blambeau@yemana foo % rvm use 1.8.7 && gem install foo-1.0.0.gem
ERROR: While executing gem ... (Gem::Exception)
ruby_code case not handled: YAML::PrivateType
I've made some investgations and here is what I've found:
* expection raise in ruby_code, which receives a YAML::PrivateType object
* called in Specification#to_ruby
* that the first entry that fails is autorequire: !!null
* I suspect !!null to behave differently in ruby 1.8.7 and 1.9.2, probably Syck
<> Psych
See also
http://help.rubygems.org/discussions/problems/483-gems-built-with-rubygems-150-ruby-192-do-not-install-properly-with-150-187
----------------------------------------------------------------------
>Comment By: Luis Lavena (luislavena)
Date: 2011-02-09 10:57
Message:
This is already fixed:
https://github.com/rubygems/rubygems/commit/6a896f356ef325d0357051fa962b6e3a835c04d2
Still things need to be wrapped for 1.5.1 release.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28906&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers