aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-10-27 15:13:29 -0700
committerelijah <elijah@riseup.net>2012-10-27 15:13:29 -0700
commitb649cce68bb5628f02e324ada7fa72177c832a10 (patch)
treed3bd0b5f81cc5e4ce06f4d8ed846553149e4435d /lib
parentb2cf2a761e29311a5d33c6ff2761e97931667d33 (diff)
downloadleap_cli-b649cce68bb5628f02e324ada7fa72177c832a10.tar.gz
leap_cli-b649cce68bb5628f02e324ada7fa72177c832a10.tar.bz2
avoid KCODE error under ruby 1.9
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/object.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb
index 4f993bb..e044353 100644
--- a/lib/leap_cli/config/object.rb
+++ b/lib/leap_cli/config/object.rb
@@ -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