[Rubygems-developers] Please test for a 1.3.1

James M. Lawrence quixoticsycophant at gmail.com
Mon Oct 20 23:25:56 EDT 2008


On Mon, Oct 20, 2008 at 9:37 PM, Eric Hodel <drbrain at segment7.net> wrote:
> I will be including the current trunk on Thursday in Ruby for the upcoming
> 1.9.1.  Shortly afterward I will release RubyGems 1.3.1.

Would it be possible to apply this tiny patch to fix #20801

% ruby -r rubygems -e 'p "foo".require("socket")'
true

That's just bad.

http://rubyforge.org/tracker/index.php?func=detail&aid=20801&group_id=126&atid=575

Index: lib/rubygems.rb
===================================================================
--- lib/rubygems.rb	(revision 1904)
+++ lib/rubygems.rb	(working copy)
@@ -49,6 +49,7 @@
     Gem.activate(gem_name, *version_requirements)
   end

+  private :gem
 end

 ##
Index: lib/rubygems/custom_require.rb
===================================================================
--- lib/rubygems/custom_require.rb	(revision 1904)
+++ lib/rubygems/custom_require.rb	(working copy)
@@ -34,5 +34,7 @@
       raise load_error
     end
   end
+
+  private :require, :gem_original_require
 end  # module Kernel


More information about the Rubygems-developers mailing list