mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* ruby.c (process_options): autoload rubygems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2ec4b694cb
commit
ca6a75cd38
3 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,6 @@
|
|||
Sat Jan 15 10:00:07 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sat Jan 15 10:04:14 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ruby.c (process_options): autoload rubygems.
|
||||
|
||||
* tool/compile_prelude.rb (Prelude#initialize): ignore empty
|
||||
preludes.
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
require 'rubygems.rb' if defined?(Gem)
|
2
ruby.c
2
ruby.c
|
@ -1365,7 +1365,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
|
|||
}
|
||||
}
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue