lib/yaml_fix.rb in ruby_ext-0.4.16 vs lib/yaml_fix.rb in ruby_ext-0.4.17
- old
+ new
@@ -1,9 +1,9 @@
-# require 'yaml'
-#
-# begin
-# require 'psych'
-# YAML::ENGINE.yamler = 'psych'
-# rescue Exception
-# warn "can't load 'psych', the new YAML engine (probably the 'libyaml' is not installed), usng 'sych' a deprecated one, \
-# there may be some problems with encoding."
-# end
+require 'yaml'
+
+begin
+ require 'psych'
+ YAML::ENGINE.yamler = 'psych'
+rescue Exception
+ warn "can't load 'psych', the new YAML engine (probably the 'libyaml' is not installed), usng 'sych' a deprecated one, \
+there may be some problems with encoding."
+end
\ No newline at end of file