From b649cce68bb5628f02e324ada7fa72177c832a10 Mon Sep 17 00:00:00 2001 From: elijah Date: Sat, 27 Oct 2012 15:13:29 -0700 Subject: avoid KCODE error under ruby 1.9 --- lib/leap_cli/config/object.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3