lib/html2rss/feed_builder.rb in html2rss-0.1.0 vs lib/html2rss/feed_builder.rb in html2rss-0.2.0

- old
+ new

@@ -38,12 +38,16 @@ return unless feed_item.valid? items.new_item do |rss_item| feed_item.available_attributes.each do |attribute_name| rss_item.send("#{attribute_name}=".to_sym, feed_item.send(attribute_name)) + end - rss_item.guid.content = Digest::SHA1.hexdigest(feed_item.title) + feed_item.categories.each do |category| + rss_item.categories.new_category.content = category end + + rss_item.guid.content = Digest::SHA1.hexdigest(feed_item.title) end end end end