Skip to content

Commit

Permalink
Revert "setup a convention to boot psych.rb (similar to MRI) wout loa…
Browse files Browse the repository at this point in the history
…ding JI"

This reverts commit 98e97ba.
  • Loading branch information
kares committed Jun 1, 2018
1 parent 5897275 commit a70ecc6
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions core/src/main/java/org/jruby/Ruby.java
Expand Up @@ -1761,21 +1761,13 @@ private void initBuiltins() {
addLazyBuiltin("net/protocol.rb", "net/protocol", "org.jruby.ext.net.protocol.NetProtocolBufferedIOLibrary");
}

addBuiltinIfAllowed("win32ole.jar", (runtime, wrap) -> runtime.getLoadService().require("jruby/win32ole/stub"));

addLazyBuiltin("cgi/escape.jar", "cgi/escape", "org.jruby.ext.cgi.escape.CGIEscape");

addBuiltinIfAllowed("2.5/psych.jar", (runtime, wrap) -> { // from psych.rb (-> booted by RGs)
runtime.getLoadService().require("psych_jars");
final Library library;
try {
library = (Library) Class.forName("org.jruby.ext.psych.PsychLibrary", true, runtime.getJRubyClassLoader()).newInstance();
addBuiltinIfAllowed("win32ole.jar", new Library() {
public void load(Ruby runtime, boolean wrap) throws IOException {
runtime.getLoadService().require("jruby/win32ole/stub");
}
catch (ClassNotFoundException|InstantiationException|IllegalAccessException ex) {
Helpers.throwException(ex); throw new AssertionError(); // not reached
}
library.load(runtime, false);
});

addLazyBuiltin("cgi/escape.jar", "cgi/escape", "org.jruby.ext.cgi.escape.CGIEscape");
}

private void initRubyKernel() {
Expand Down

0 comments on commit a70ecc6

Please sign in to comment.