commit 5ac548e8fabe6df18a55f2b26e07568d84561f4a parent 90670b3b3516ded63caca6e4907c22273a6c18c5 Author: Whyme Lyu <callme5long@gmail.com> Date: Mon, 22 Apr 2013 22:17:03 +0800 Don't set yamler for 1.8 Diffstat:
| M | lib/sup.rb | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/sup.rb b/lib/sup.rb @@ -2,7 +2,9 @@ require 'rubygems' require 'syck' require 'yaml' -YAML::ENGINE.yamler = 'syck' +if YAML.const_defined? :ENGINE + YAML::ENGINE.yamler = 'syck' +end require 'zlib' require 'thread'