Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ok, maybe that wasn't such a good idea.

  • Loading branch information...
commit 08d0f17266b18c07e435847286d2d6177037fd3b 1 parent cb2ec47
@headius headius authored yokolet committed
Showing with 3 additions and 8 deletions.
  1. +3 −8 src/org/jruby/Ruby.java
View
11 src/org/jruby/Ruby.java
@@ -1535,11 +1535,9 @@ public void load(Ruby runtime, boolean wrap) throws IOException {
if(is1_9()) {
// see ruby.c's ruby_init_gems function
- if (LOAD_PRELUDE) {
- defineModule("Gem"); // dummy Gem module for prelude
- loadFile("builtin/prelude.rb", getJRubyClassLoader().getResourceAsStream("builtin/prelude.rb"), false);
- loadFile("builtin/gem_prelude.rb", getJRubyClassLoader().getResourceAsStream("builtin/gem_prelude.rb"), false);
- }
+ defineModule("Gem"); // dummy Gem module for prelude
+ loadFile("builtin/prelude.rb", getJRubyClassLoader().getResourceAsStream("builtin/prelude.rb"), false);
+ loadFile("builtin/gem_prelude.rb", getJRubyClassLoader().getResourceAsStream("builtin/gem_prelude.rb"), false);
}
getLoadService().require("enumerator");
@@ -4102,7 +4100,4 @@ public void addProfiledMethod(String name, DynamicMethod method) {
// The method objects for serial numbers
public DynamicMethod[] profiledMethods = new DynamicMethod[0];
-
- // whether to load prelude and gem_prelude. Disable to skip them for debugging.
- public static final boolean LOAD_PRELUDE = false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.