lib/writer/fetcher-microdata/article_small.rb in fetcher-microdata-0.0.12 vs lib/writer/fetcher-microdata/article_small.rb in fetcher-microdata-0.0.13

- old
+ new

@@ -40,9 +40,15 @@ } } @attributes[:comments].each do |c| resp["properties"]["UserComments"].push c.to.hash end + + resp["properties"].keys.each do |att| + if resp["properties"]["#{att}"] == [nil] + resp["properties"].delete "#{att}" + end + end resp end end end