You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2012/05/04 01:50:35 UTC

svn commit: r1333688 - /buildr/trunk/Rakefile

Author: donaldp
Date: Thu May  3 23:50:35 2012
New Revision: 1333688

URL: http://svn.apache.org/viewvc?rev=1333688&view=rev
Log:
Only use psych yml library for ruby versions 1.9.2 or later

Modified:
    buildr/trunk/Rakefile

Modified: buildr/trunk/Rakefile
URL: http://svn.apache.org/viewvc/buildr/trunk/Rakefile?rev=1333688&r1=1333687&r2=1333688&view=diff
==============================================================================
--- buildr/trunk/Rakefile (original)
+++ buildr/trunk/Rakefile Thu May  3 23:50:35 2012
@@ -14,7 +14,7 @@
 # the License.
 
 # To work-around a bug with gemcutter: http://stackoverflow.com/questions/4932881/gemcutter-rake-build-now-throws-undefined-method-write-for-syckemitter
-require 'psych' unless RUBY_PLATFORM[/java/]
+require 'psych' if RUBY_VERSION >= '1.9.2' && !RUBY_PLATFORM[/java/]
 
 # We need JAVA_HOME for most things (setup, spec, etc).
 unless ENV['JAVA_HOME']