pauldix-feedzirra 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
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. I made the decision to not include guid parsing. However, you can
114
- # add that functionality in (or parsing for other elements) with a single line of code.
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.guid # => guid is now parsed!
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.7"
33
+ VERSION = "0.0.8"
36
34
  end
@@ -39,4 +39,7 @@ describe Feedzirra::AtomEntry do
39
39
  @entry.updated.to_s.should == "Fri Jan 16 18:21:00 UTC 2009"
40
40
  end
41
41
 
42
+ it "should parse the id" do
43
+ @entry.id.should == "tag:typepad.com,2003:post-61484736"
44
+ end
42
45
  end
@@ -34,4 +34,8 @@ describe Feedzirra::RSSEntry do
34
34
  it "should parse the categories" do
35
35
  @entry.categories.should == ['computadora', 'nokogiri', 'rails']
36
36
  end
37
+
38
+ it "should parse the guid as id" do
39
+ @entry.id.should == "http://tenderlovemaking.com/?p=198"
40
+ end
37
41
  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.7
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