pauldix-feedzirra 0.0.7 → 0.0.8
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/README.textile +3 -4
- data/lib/feedzirra.rb +1 -3
- data/spec/feedzirra/atom_entry_spec.rb +3 -0
- data/spec/feedzirra/rss_entry_spec.rb +4 -0
- metadata +1 -5
data/README.textile
CHANGED
@@ -110,12 +110,11 @@ feed = Feedzirra::Feed.fetch_and_parse("http://feeds.feedburner.com/PaulDixExpla
|
|
110
110
|
# the behavior for the handlers when using Feedzirra::Feed.update is slightly different. The feed passed into on_success will be
|
111
111
|
# the updated feed with the standard updated accessors. on failure it will be the original feed object passed into update
|
112
112
|
|
113
|
-
# You can add custom parsing to the feed entry classes.
|
114
|
-
|
115
|
-
Feedzirra::Feed.add_common_feed_entry_element(:id, :as => :guid)
|
113
|
+
# You can add custom parsing to the feed entry classes. Say you want the wfw:comments fields in an entry
|
114
|
+
Feedzirra::Feed.add_common_feed_entry_element("wfw:commentRss", :as => :comment_rss)
|
116
115
|
# The arguments are the same as the SAXMachine arguments for the element method. For more example usage look at the RSSEntry and
|
117
116
|
# AtomEntry classes. Now you can access those in an atom feed:
|
118
|
-
Feedzirra::Feed.parse(some_atom_xml).entries.first.
|
117
|
+
Feedzirra::Feed.parse(some_atom_xml).entries.first.comment_rss_ # => wfw:commentRss is now parsed!
|
119
118
|
|
120
119
|
# You can also access http basic auth feeds. Unfortunately, you can't get to these inside of a bulk get of a bunch of feeds.
|
121
120
|
# You'll have to do it on its own like so:
|
data/lib/feedzirra.rb
CHANGED
@@ -19,18 +19,16 @@ require 'feedzirra/feed_entry_utilities'
|
|
19
19
|
require 'feedzirra/feed'
|
20
20
|
|
21
21
|
require 'feedzirra/rss_entry'
|
22
|
-
require 'feedzirra/rdf_entry'
|
23
22
|
require 'feedzirra/itunes_rss_owner'
|
24
23
|
require 'feedzirra/itunes_rss_item'
|
25
24
|
require 'feedzirra/atom_entry'
|
26
25
|
require 'feedzirra/atom_feed_burner_entry'
|
27
26
|
|
28
27
|
require 'feedzirra/rss'
|
29
|
-
require 'feedzirra/rdf'
|
30
28
|
require 'feedzirra/itunes_rss'
|
31
29
|
require 'feedzirra/atom'
|
32
30
|
require 'feedzirra/atom_feed_burner'
|
33
31
|
|
34
32
|
module Feedzirra
|
35
|
-
VERSION = "0.0.
|
33
|
+
VERSION = "0.0.8"
|
36
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pauldix-feedzirra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Dix
|
@@ -92,8 +92,6 @@ files:
|
|
92
92
|
- lib/feedzirra/itunes_rss.rb
|
93
93
|
- lib/feedzirra/itunes_rss_item.rb
|
94
94
|
- lib/feedzirra/itunes_rss_owner.rb
|
95
|
-
- lib/feedzirra/rdf.rb
|
96
|
-
- lib/feedzirra/rdf_entry.rb
|
97
95
|
- lib/feedzirra/rss.rb
|
98
96
|
- lib/feedzirra/rss_entry.rb
|
99
97
|
- lib/feedzirra/feed_utilities.rb
|
@@ -110,8 +108,6 @@ files:
|
|
110
108
|
- spec/feedzirra/itunes_rss_spec.rb
|
111
109
|
- spec/feedzirra/itunes_rss_item_spec.rb
|
112
110
|
- spec/feedzirra/itunes_rss_owner_spec.rb
|
113
|
-
- spec/feedzirra/rdf_spec.rb
|
114
|
-
- spec/feedzirra/rdf_entry_spec.rb
|
115
111
|
- spec/feedzirra/rss_spec.rb
|
116
112
|
- spec/feedzirra/rss_entry_spec.rb
|
117
113
|
- spec/feedzirra/feed_utilities_spec.rb
|