feed-normalizer 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/History.txt +5 -0
  2. data/Rakefile +1 -1
  3. data/lib/parsers/rss.rb +4 -2
  4. metadata +2 -2
@@ -1,4 +1,9 @@
1
+ 1.5.1
2
+
3
+ * Fix a bug that was breaking the parsing process for certain feeds. [reported by: Patrick Minton]
4
+
1
5
  1.5.0
6
+
2
7
  * Add support for new fields:
3
8
  * Atom 0.3: issued is now available through entry.date_published.
4
9
  * RSS: feed.skip_hours, feed.skip_days, feed.ttl [joshpeek]
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'hoe'
2
2
 
3
- Hoe.new("feed-normalizer", "1.5.0") do |s|
3
+ Hoe.new("feed-normalizer", "1.5.1") do |s|
4
4
  s.author = "Andrew A. Smith"
5
5
  s.email = "andy@tinnedfruit.org"
6
6
  s.url = "http://feed-normalizer.rubyforge.org/"
@@ -88,8 +88,10 @@ module FeedNormalizer
88
88
  when :skipHours: :hours
89
89
  when :skipDays: :days
90
90
  end
91
- channel = parser.channel
92
- channel.respond_to?(attribute) && channel.send(attribute).send(attributes).map { |e| e.content }
91
+ channel = parser.channel
92
+
93
+ return nil unless channel.respond_to?(attribute) && a = channel.send(attribute)
94
+ a.send(attributes).collect{|e| e.content}
93
95
  end
94
96
 
95
97
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: feed-normalizer
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.5.0
7
- date: 2008-02-05 00:00:00 -08:00
6
+ version: 1.5.1
7
+ date: 2008-02-06 00:00:00 -08:00
8
8
  summary: Extensible Ruby wrapper for Atom and RSS parsers
9
9
  require_paths:
10
10
  - lib