summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index f38a95d..17e13af 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,5 +1,14 @@
# -*- ruby -*-
+if RUBY_PLATFORM =~ /java/
+ require './lib/psych.jar'
+ require 'jruby'
+
+ Java::psych.PsychLibrary.new.load(JRuby.runtime, true)
+ $LOADED_FEATURES << "psych.jar"
+end
+
+require 'psych'
require 'rubygems'
require 'hoe'