diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-04-28 15:19:42 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-04-28 15:24:54 -0700 |
commit | 99f1ba0be53c3784560a6341453f4c0c69cfa678 (patch) | |
tree | e9cd0038b2d6c1891885b6e2e12536fe54563839 /Rakefile | |
parent | 8a6672544ab9b3c96f01a8d2d1fc5344db3cc194 (diff) | |
download | psych-99f1ba0be53c3784560a6341453f4c0c69cfa678.zip |
add jruby psych loading hacks to the Rakefile
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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' |