lib/i18n-spec/models/locale_file.rb in i18n-spec-0.2.1 vs lib/i18n-spec/models/locale_file.rb in i18n-spec-0.2.2

- old
+ new

@@ -84,10 +84,10 @@ keys = data.keys.map(&:to_s) keys.any? {|k| PLURALIZATION_KEYS.include?(k) } end def yaml_load_content - if defined? Psych + if defined?(Psych) and defined?(Psych::VERSION) Psych.load(content) else YAML.load(content) end end