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.
- data/History.txt +5 -0
- data/Rakefile +1 -1
- data/lib/parsers/rss.rb +4 -2
- metadata +2 -2
data/History.txt
CHANGED
@@ -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
data/lib/parsers/rss.rb
CHANGED
@@ -88,8 +88,10 @@ module FeedNormalizer
|
|
88
88
|
when :skipHours: :hours
|
89
89
|
when :skipDays: :days
|
90
90
|
end
|
91
|
-
channel = parser.channel
|
92
|
-
|
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.
|
7
|
-
date: 2008-02-
|
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
|