logophobia-feedzirra 0.0.22 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
data/lib/feedzirra.rb
CHANGED
@@ -17,6 +17,7 @@ module Feedzirra
|
|
17
17
|
include FeedEntryUtilities
|
18
18
|
element :title
|
19
19
|
element :link, :as => :url, :value => :href, :with => {:type => "text/html", :rel => "alternate"}
|
20
|
+
element :"feedburner:origLink", :as => :url
|
20
21
|
element :name, :as => :author
|
21
22
|
element :content
|
22
23
|
element :summary
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logophobia-feedzirra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Dix
|
@@ -85,7 +85,6 @@ files:
|
|
85
85
|
- lib/feedzirra/feed.rb
|
86
86
|
- lib/feedzirra/feed_utilities.rb
|
87
87
|
- lib/feedzirra/parser/rss_entry.rb
|
88
|
-
- lib/feedzirra/parser/atom_feed_burner.rb
|
89
88
|
- lib/feedzirra/parser/mrss_hash.rb
|
90
89
|
- lib/feedzirra/parser/atom_entry.rb
|
91
90
|
- lib/feedzirra/parser/rss.rb
|
@@ -95,7 +94,6 @@ files:
|
|
95
94
|
- lib/feedzirra/parser/mrss_group.rb
|
96
95
|
- lib/feedzirra/parser/rss_image.rb
|
97
96
|
- lib/feedzirra/parser/atom.rb
|
98
|
-
- lib/feedzirra/parser/atom_feed_burner_entry.rb
|
99
97
|
- lib/feedzirra/parser/mrss_thumbnail.rb
|
100
98
|
- lib/feedzirra/parser/mrss_credit.rb
|
101
99
|
- lib/feedzirra/parser/itunes_category.rb
|
@@ -128,6 +126,7 @@ files:
|
|
128
126
|
- spec/spec_helper.rb
|
129
127
|
has_rdoc: true
|
130
128
|
homepage: http://github.com/pauldix/feedzirra
|
129
|
+
licenses:
|
131
130
|
post_install_message:
|
132
131
|
rdoc_options: []
|
133
132
|
|
@@ -148,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
147
|
requirements: []
|
149
148
|
|
150
149
|
rubyforge_project:
|
151
|
-
rubygems_version: 1.
|
150
|
+
rubygems_version: 1.3.5
|
152
151
|
signing_key:
|
153
152
|
specification_version: 2
|
154
153
|
summary: "A feed fetching and parsing library that treats the internet like Godzilla treats Japan: it dominates and eats all."
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module Feedzirra
|
2
|
-
|
3
|
-
module Parser
|
4
|
-
# == Summary
|
5
|
-
# Parser for dealing with Feedburner Atom feeds.
|
6
|
-
#
|
7
|
-
# == Attributes
|
8
|
-
# * title
|
9
|
-
# * feed_url
|
10
|
-
# * url
|
11
|
-
# * entries
|
12
|
-
class AtomFeedBurner
|
13
|
-
include SAXMachine
|
14
|
-
include FeedUtilities
|
15
|
-
element :title
|
16
|
-
element :link, :as => :url, :value => :href, :with => {:type => "text/html"}
|
17
|
-
element :link, :as => :feed_url, :value => :href, :with => {:type => "application/atom+xml"}
|
18
|
-
elements :entry, :as => :entries, :class => AtomFeedBurnerEntry
|
19
|
-
|
20
|
-
def self.able_to_parse?(xml) #:nodoc:
|
21
|
-
(xml =~ /Atom/ && xml =~ /feedburner/) || false
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
module Feedzirra
|
2
|
-
|
3
|
-
module Parser
|
4
|
-
# == Summary
|
5
|
-
# Parser for dealing with Feedburner Atom feed entries.
|
6
|
-
#
|
7
|
-
# == Attributes
|
8
|
-
# * title
|
9
|
-
# * url
|
10
|
-
# * author
|
11
|
-
# * content
|
12
|
-
# * summary
|
13
|
-
# * published
|
14
|
-
# * categories
|
15
|
-
class AtomFeedBurnerEntry
|
16
|
-
include SAXMachine
|
17
|
-
include FeedEntryUtilities
|
18
|
-
element :title
|
19
|
-
element :name, :as => :author
|
20
|
-
element :link, :as => :url, :value => :href, :with => {:type => "text/html", :rel => "alternate"}
|
21
|
-
element :"feedburner:origLink", :as => :url
|
22
|
-
element :summary
|
23
|
-
element :content
|
24
|
-
element :published
|
25
|
-
element :id
|
26
|
-
element :issued, :as => :published
|
27
|
-
element :created, :as => :published
|
28
|
-
element :updated
|
29
|
-
element :modified, :as => :updated
|
30
|
-
elements :category, :as => :categories, :value => :term
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|