ruby_ext 0.4.15 → 0.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/yaml_fix.rb +9 -9
- metadata +1 -1
data/lib/yaml_fix.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
require 'yaml'
|
|
2
|
-
|
|
3
|
-
begin
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
rescue Exception
|
|
7
|
-
|
|
8
|
-
there may be some problems with encoding."
|
|
9
|
-
end
|
|
1
|
+
# require 'yaml'
|
|
2
|
+
#
|
|
3
|
+
# begin
|
|
4
|
+
# require 'psych'
|
|
5
|
+
# YAML::ENGINE.yamler = 'psych'
|
|
6
|
+
# rescue Exception
|
|
7
|
+
# warn "can't load 'psych', the new YAML engine (probably the 'libyaml' is not installed), usng 'sych' a deprecated one, \
|
|
8
|
+
# there may be some problems with encoding."
|
|
9
|
+
# end
|