tag:help.rubygems.org,2010-01-19:/discussions/problems/483-gems-built-with-rubygems-150-ruby-192-do-not-install-properly-with-150-187RubyGems.org: Discussion 2012-07-10T03:40:23Ztag:help.rubygems.org,2010-01-19:Comment/51088432011-02-03T13:50:16Z2011-02-03T13:50:16ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>Please provide the contents of foo.gemspec, as gemspec are
serialized<br>
to YAML and adding something there that is not meant to be
supported<br>
by Gem::Specification generates this error.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/51088432011-02-03T14:08:05Z2011-02-03T14:08:08ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>I've tried to keep the simplest .gemspec that looks natural to
me. It is in attachement.</p>
<pre>
<code>blambeau@yemana foo % rvm use 1.9.2 && rm -rf pkg && gem build foo.gemspec
Using /Users/blambeau/.rvm/gems/ruby-1.9.2-p136
WARNING: no homepage specified
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
Using /Users/blambeau/.rvm/gems/ruby-1.8.7-p330
ruby_code case not handled: YAML::PrivateType
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/specification.rb:1068:in `ruby_code'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/specification.rb:781:in `to_ruby'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/specification.rb:776:in `each'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/specification.rb:776:in `to_ruby'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/installer.rb:232:in `write_spec'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/installer.rb:172:in `install'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:284:in `install'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:254:in `each'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:254:in `install'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:120:in `execute'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:115:in `each'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:115:in `execute'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/command.rb:278:in `invoke'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:133:in `process_args'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:103:in `run'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:63:in `run'
/Users/blambeau/.rvm/rubies/ruby-1.8.7-p330/bin/gem:25
ERROR: While executing gem ... (Gem::Exception)
ruby_code case not handled: YAML::PrivateType</code>
</pre></div>blambeautag:help.rubygems.org,2010-01-19:Comment/51088432011-02-03T14:22:26Z2011-02-03T14:22:26ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>Well, seems you're correct, it is clear that the metadata
generated by 1.9.2 is not properly loaded by 1.8.7.</p>
<p>I noticed the following differences:<br>
<a href=
"https://gist.github.com/809520">https://gist.github.com/809520</a></p>
<p>But can't determine all the details.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/51088432011-02-03T14:25:05Z2011-02-03T14:25:05ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>Please report this to RubyGems bug tracker so the developers can
keep track of it:</p>
<p><a href=
"http://rubyforge.org/tracker/?atid=575&group_id=126&func=browse">
http://rubyforge.org/tracker/?atid=575&amp;group_id=126&amp;func=br...</a></p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/51088432011-02-09T03:23:01Z2011-02-09T03:23:25ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>It's also the other way around it looks like. Gems built with
rubygems < 1.5.0 won't install with 1.5.0. It shows this
error:</p>
<pre>
<code>ruby_code case not handled: Syck::PrivateType</code>
</pre></div>travistag:help.rubygems.org,2010-01-19:Comment/51088432011-02-09T06:58:04Z2011-02-09T06:58:05ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>Actually, I'm getting issues all over the place now after
upgrading to 1.5.0.</p>
<p>Seeing this on one particular gem that is trying to update:</p>
<pre>
<code>ERROR: While executing gem ... (ArgumentError)
undefined class/module YAML::PrivateType undefined class/module YAML::PrivateType (ArgumentError)</code>
</pre>
<p>Bundler also fails with the same undefined class/module.</p>
<pre>
<code>
C:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:289:in `load': undefined class/module YAML::PrivateType (ArgumentError)
from C:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:289:in `_load'
from C:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:124:in `load'
from C:/ruby/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:124:in `fetch_spec'
from C:/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/remote_specification.rb:47:in `_remote_specification'</code>
</pre></div>travistag:help.rubygems.org,2010-01-19:Comment/51088432011-02-09T13:47:17Z2011-02-09T13:47:18ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>I can't install any of my own gems since upgrading to Rubygems
1.5.0 :(</p>
<p>gem install pkg/roles_generic-0.3.7.3.gem<br>
ERROR: While executing gem ... (ArgumentError)<br></p>
<pre>
<code>undefined class/module YAML::PrivateType</code>
</pre>
<p>And same using jeweler 1.5.2</p>
<p>** Execute install Executing "ruby -S gem install
./pkg/roles_generic-0.3.7.3.gem":<br>
ruby -S gem install ./pkg/roles_generic-0.3.7.3.gem<br>
ERROR: While executing gem ... (ArgumentError)<br></p>
<p>rake aborted!<br>
Command failed with status (1): [ruby -S gem install
./pkg/roles_generic-0....]<br>
/Users/kristianconsult/.rvm/gems/ruby-1.9.2-p136/gems/rake-0.8.7/lib/rake.rb:995:in
<code>block in sh'
/Users/kristianconsult/.rvm/gems/ruby-1.9.2-p136/gems/rake-0.8.7/lib/rake.rb:1010:in</code>call'
/Users/kristianconsult/.rvm/gems/ruby-1.9.2-p136/gems/rake-0.8.7/lib/rake.rb:1010:in
<code>sh'
/Users/kristianconsult/.rvm/gems/ruby-1.9.2-p136/gems/rake-0.8.7/lib/rake.rb:1094:in</code>sh'
/Users/kristianconsult/.rvm/gems/ruby-1.9.2-p136/gems/jeweler-1.5.2/lib/jeweler/commands/install_gem.rb:14:in
<code>run'
/Users/kristianconsult/.rvm/gems/ruby-1.9.2-p136/gems/jeweler-1.5.2/lib/jeweler.rb:92:in</code>install_gem'</p></div>Kristian Mandruptag:help.rubygems.org,2010-01-19:Comment/51088432011-02-09T13:59:09Z2011-02-09T13:59:09ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>This has already been fixed in RubyGems, but still things need
to be wrapped for 1.5.1 release:</p>
<p><a href=
"https://github.com/rubygems/rubygems/commit/6a896f356ef325d0357051fa962b6e3a835c04d2">
https://github.com/rubygems/rubygems/commit/6a896f356ef325d0357051f...</a></p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/51088432011-02-09T19:07:16Z2011-02-09T19:07:18ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>Any idea what the timeframe is for a 1.5.1 release?</p></div>travistag:help.rubygems.org,2010-01-19:Comment/51088432011-05-23T21:46:52Z2011-05-23T21:46:52ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>Hello travis,</p>
<p>I believe RubyGems >= 1.6.x already provided the fixes you
required.</p>
<p>Please let us know if that is not the case, but I can mention
that gems generated with RubyGems 1.8.x can be safely installed by
RubyGems 1.3.5 inclusive.</p>
<p>Going to close this in a few days if we don't hear from you.</p>
<p>Thank you.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/51088432011-05-23T21:49:21Z2011-05-23T21:49:21ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>Ya, haven't seen this recently.</p></div>travistag:help.rubygems.org,2010-01-19:Comment/51088432011-05-24T14:26:05Z2011-05-24T14:26:05ZGems built with (rubygems 1.5.0 / ruby 1.9.2) do not install properly with (1.5.0 / 1.8.7)<div><p>Great, thank you. Closing this out.</p></div>Luis Lavena