]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
avoid KCODE error under ruby 1.9
authorelijah <elijah@riseup.net>
Sat, 27 Oct 2012 22:13:29 +0000 (15:13 -0700)
committerelijah <elijah@riseup.net>
Sat, 27 Oct 2012 22:13:29 +0000 (15:13 -0700)
lib/leap_cli/config/object.rb

index 4f993bb31106b25f8d687e7bb00e65543a59c7b1..e04435361cc0311e437a31dabc8a2140f54fcf67 100644 (file)
@@ -1,7 +1,7 @@
 require 'erb'
 require 'json/pure'  # pure ruby implementation is required for our sorted trick to work.
 
-$KCODE = 'UTF8'
+$KCODE = 'UTF8' unless RUBY_VERSION > "1.9.0"
 require 'ya2yaml' # pure ruby yaml
 
 module LeapCli