lib/pears/provider/base.rb in pears-0.1.1 vs lib/pears/provider/base.rb in pears-0.1.2

- old
+ new

@@ -21,10 +21,10 @@ private def parse_yaml(yaml_data) yaml_data = YAML.load(yaml_data) - raise Pears::InvalidProviderData if yaml_data.is_a? String + raise Pears::InvalidProviderData unless yaml_data.is_a? Hash yaml_data.with_indifferent_access rescue Psych::SyntaxError => e logger ||= defined?(Rails) ? Rails.logger : Logger.new(STDOUT) logger.warn "#{e.class} #{e.message}" raise Pears::InvalidProviderData