ruby-changes:18526
From: nobu <ko1@a...>
Date: Sat, 15 Jan 2011 10:07:12 +0900 (JST)
Subject: [ruby-changes:18526] Ruby:r30549 (trunk): * ruby.c (process_options): autoload rubygems.
nobu 2011-01-15 10:04:16 +0900 (Sat, 15 Jan 2011) New Revision: 30549 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30549 Log: * ruby.c (process_options): autoload rubygems. Modified files: trunk/ChangeLog trunk/gem_prelude.rb trunk/ruby.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30548) +++ ChangeLog (revision 30549) @@ -1,5 +1,7 @@ -Sat Jan 15 10:00:07 2011 Nobuyoshi Nakada <nobu@r...> +Sat Jan 15 10:04:14 2011 Nobuyoshi Nakada <nobu@r...> + * ruby.c (process_options): autoload rubygems. + * tool/compile_prelude.rb (Prelude#initialize): ignore empty preludes. Index: gem_prelude.rb =================================================================== --- gem_prelude.rb (revision 30548) +++ gem_prelude.rb (revision 30549) @@ -1 +0,0 @@ -require 'rubygems.rb' if defined?(Gem) Index: ruby.c =================================================================== --- ruby.c (revision 30548) +++ ruby.c (revision 30549) @@ -1365,7 +1365,7 @@ } } if (!(opt->disable & DISABLE_BIT(gems))) { - rb_define_module("Gem"); + rb_autoload(rb_cObject, rb_intern("Gem"), "rubygems"); } ruby_init_prelude(); ruby_set_argv(argc, argv); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/