lib/html2rss/config/selectors.rb in html2rss-0.12.0 vs lib/html2rss/config/selectors.rb in html2rss-0.13.0

- old
+ new

@@ -33,11 +33,11 @@ def selector(name) raise InvalidSelectorName, "invalid selector name: #{name}" unless selector?(name) keywords = config[name].slice(*available_keys) - if (additional_keys = available_keys - keywords.keys).any? - warn "additional keys (#{additional_keys.join(', ')}) present in selector #{name}" + if (additional_keys = keywords.keys - available_keys).any? + Log.warn "additional keys (#{additional_keys.join(', ')}) present in selector #{name}" end Selector.new(keywords) end