Bugs item #27035, was opened at 2009-09-01 12:41 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=575&aid=27035&group_id=126
Category: None Group: None >Status: Closed Resolution: None Priority: 3 Submitted By: Thomas Enebo (enebo) Assigned to: Nobody (None) Summary: JRuby hooks need one-line change for --1.9 mode Initial Comment: gemdir is an object now in 1.9, but if we to_s the object then this works for us in both 1.8 and 1.9 modes on JRuby. Sorry that I am showing a diff from our installed version of rubygems, but it is only a 5 character patch :| -Tom diff --git a/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb b/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb index 7f32229..b676586 100644 --- a/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb +++ b/lib/ruby/site_ruby/1.8/rubygems/defaults/jruby.rb @@ -9,7 +9,7 @@ module Gem class << self alias_method :original_ensure_gem_subdirectories, :ensure_gem_subdirectories def ensure_gem_subdirectories(gemdir) - original_ensure_gem_subdirectories(gemdir) if writable_path? gemdir + original_ensure_gem_subdirectories(gemdir) if writable_path? gemdir.to_s end alias_method :original_set_paths, :set_paths ---------------------------------------------------------------------- Comment By: Thomas Enebo (enebo) Date: 2009-09-01 14:08 Message: Sorry, this is not your bug at all. I was under the impression we rolled defaults/jruby.rb into rubygems source. I would just close this bug, but I don't want to screw up anyones process... ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=575&aid=27035&group_id=126 _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers