lib/fathom/import/yaml_import.rb in fathom-0.1.0 vs lib/fathom/import/yaml_import.rb in fathom-0.2.0

- old
+ new

@@ -1,7 +1,8 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'fathom')) require 'open-uri' +require 'yaml' class Fathom::YAMLImport < Import def import_plausible_ranges assert_yaml_content plausible_ranges = extract_plausible_ranges @@ -29,10 +30,11 @@ def extract_plausible_ranges @yaml_content.inject([]) do |list, array| name, value = array.first, array.last if value.is_a?(Hash) value = OptionsHash.new(value) - list << value.merge(:name => name) if value[:min] and value[:max] + # list << value.merge(:name => name) if value[:min] and value[:max] + list << value.merge(:name => name) end list end end