feedzirra 0.1.3 → 0.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +12 -0
- data/.travis.yml +7 -0
- data/Gemfile +9 -0
- data/Guardfile +6 -0
- data/HISTORY.md +19 -0
- data/{README.rdoc → README.md} +28 -26
- data/Rakefile +5 -50
- data/feedzirra.gemspec +29 -0
- data/lib/feedzirra.rb +3 -5
- data/lib/feedzirra/feed.rb +1 -3
- data/lib/feedzirra/feed_utilities.rb +14 -3
- data/lib/feedzirra/version.rb +1 -1
- data/spec/feedzirra/feed_entry_utilities_spec.rb +1 -1
- data/spec/feedzirra/feed_spec.rb +13 -11
- data/spec/feedzirra/feed_utilities_spec.rb +0 -2
- data/spec/feedzirra/parser/atom_entry_spec.rb +2 -2
- data/spec/feedzirra/parser/atom_feed_burner_entry_spec.rb +1 -1
- data/spec/feedzirra/parser/itunes_rss_item_spec.rb +1 -1
- data/spec/feedzirra/parser/rss_entry_spec.rb +1 -1
- data/spec/feedzirra/parser/rss_feed_burner_entry_spec.rb +1 -1
- data/spec/sample_feeds/AmazonWebServicesBlog.xml +796 -0
- data/spec/sample_feeds/AmazonWebServicesBlogFirstEntryContent.xml +63 -0
- data/spec/sample_feeds/FeedBurnerUrlNoAlternate.xml +27 -0
- data/spec/sample_feeds/GoogleDocsList.xml +187 -0
- data/spec/sample_feeds/HREFConsideredHarmful.xml +313 -0
- data/spec/sample_feeds/HREFConsideredHarmfulFirstEntry.xml +22 -0
- data/spec/sample_feeds/PaulDixExplainsNothing.xml +174 -0
- data/spec/sample_feeds/PaulDixExplainsNothingAlternate.xml +174 -0
- data/spec/sample_feeds/PaulDixExplainsNothingFirstEntryContent.xml +19 -0
- data/spec/sample_feeds/PaulDixExplainsNothingWFW.xml +174 -0
- data/spec/sample_feeds/TechCrunch.xml +1514 -0
- data/spec/sample_feeds/TechCrunchFirstEntry.xml +9 -0
- data/spec/sample_feeds/TechCrunchFirstEntryDescription.xml +3 -0
- data/spec/sample_feeds/TenderLovemaking.xml +515 -0
- data/spec/sample_feeds/TenderLovemakingFirstEntry.xml +66 -0
- data/spec/sample_feeds/TrotterCashionHome.xml +610 -0
- data/spec/sample_feeds/atom_with_link_tag_for_url_unmarked.xml +30 -0
- data/spec/sample_feeds/itunes.xml +60 -0
- data/spec/sample_feeds/top5kfeeds.dat +2170 -0
- data/spec/sample_feeds/trouble_feeds.txt +16 -0
- data/spec/spec_helper.rb +7 -18
- metadata +99 -63
@@ -0,0 +1,16 @@
|
|
1
|
+
http://www.forbes.com/news/index.xml
|
2
|
+
http://www.qarchive.org/feeds/lastreviews.rss
|
3
|
+
http://medallia.com/medallia/feeds/rss/full/
|
4
|
+
http://www.ecampus.com/rss/
|
5
|
+
http://bossip.com/feed/
|
6
|
+
http://www.christianpost.com.com/rss/feed.xml
|
7
|
+
http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/product-reviews
|
8
|
+
http://octanetv.com/episodes.rss
|
9
|
+
http://octanetv.com/piclens.rss
|
10
|
+
http://sk8rstv.com/rss/
|
11
|
+
http://www.sho.com/site/rss/schedule.do?schedule=primetime
|
12
|
+
http://www.plaxo.com/rss
|
13
|
+
http://emedtv.com/feed.rss
|
14
|
+
http://www.bankrate.com/brm/rss/entrypage1.asp
|
15
|
+
http://podcasts.odiogo.com/thats-phucked/podcasts-html.php
|
16
|
+
http://gallup.com/sitemaps/university.rss
|
data/spec/spec_helper.rb
CHANGED
@@ -1,13 +1,4 @@
|
|
1
|
-
require
|
2
|
-
require "rspec"
|
3
|
-
|
4
|
-
# gem install redgreen for colored test output
|
5
|
-
begin require "redgreen" unless ENV['TM_CURRENT_LINE']; rescue LoadError; end
|
6
|
-
|
7
|
-
path = File.expand_path(File.dirname(__FILE__) + "/../lib/")
|
8
|
-
$LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
|
9
|
-
|
10
|
-
require "feedzirra"
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../lib/feedzirra')
|
11
2
|
|
12
3
|
def load_sample(filename)
|
13
4
|
File.read("#{File.dirname(__FILE__)}/sample_feeds/#{filename}")
|
@@ -68,11 +59,9 @@ end
|
|
68
59
|
def sample_google_docs_list_feed
|
69
60
|
load_sample("GoogleDocsList.xml")
|
70
61
|
end
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
end
|
78
|
-
end
|
62
|
+
|
63
|
+
RSpec.configure do |config|
|
64
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
65
|
+
config.run_all_when_everything_filtered = true
|
66
|
+
config.filter_run :focus
|
67
|
+
end
|
metadata
CHANGED
@@ -1,31 +1,37 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feedzirra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0.rc1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Paul Dix
|
9
9
|
- Julien Kirch
|
10
|
+
- Ezekiel Templin
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date:
|
14
|
+
date: 2012-05-30 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: nokogiri
|
17
|
-
requirement:
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
18
19
|
none: false
|
19
20
|
requirements:
|
20
|
-
- -
|
21
|
+
- - ~>
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.
|
23
|
+
version: 1.5.2
|
23
24
|
type: :runtime
|
24
25
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ~>
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 1.5.2
|
26
32
|
- !ruby/object:Gem::Dependency
|
27
33
|
name: sax-machine
|
28
|
-
requirement:
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
29
35
|
none: false
|
30
36
|
requirements:
|
31
37
|
- - ~>
|
@@ -33,95 +39,76 @@ dependencies:
|
|
33
39
|
version: 0.1.0
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: curb
|
39
|
-
requirement: &70245154993700 !ruby/object:Gem::Requirement
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
43
|
none: false
|
41
44
|
requirements:
|
42
45
|
- - ~>
|
43
46
|
- !ruby/object:Gem::Version
|
44
|
-
version: 0.
|
45
|
-
type: :runtime
|
46
|
-
prerelease: false
|
47
|
-
version_requirements: *70245154993700
|
47
|
+
version: 0.1.0
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
50
|
-
requirement:
|
49
|
+
name: curb
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 0.8.0
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements:
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: activesupport
|
61
|
-
requirement: &70245154845640 !ruby/object:Gem::Requirement
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
59
|
none: false
|
63
60
|
requirements:
|
64
61
|
- - ~>
|
65
62
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
67
|
-
type: :runtime
|
68
|
-
prerelease: false
|
69
|
-
version_requirements: *70245154845640
|
63
|
+
version: 0.8.0
|
70
64
|
- !ruby/object:Gem::Dependency
|
71
65
|
name: loofah
|
72
|
-
requirement:
|
66
|
+
requirement: !ruby/object:Gem::Requirement
|
73
67
|
none: false
|
74
68
|
requirements:
|
75
69
|
- - ~>
|
76
70
|
- !ruby/object:Gem::Version
|
77
|
-
version: 1.2.
|
71
|
+
version: 1.2.1
|
78
72
|
type: :runtime
|
79
73
|
prerelease: false
|
80
|
-
version_requirements:
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: rdoc
|
83
|
-
requirement: &70245154844420 !ruby/object:Gem::Requirement
|
74
|
+
version_requirements: !ruby/object:Gem::Requirement
|
84
75
|
none: false
|
85
76
|
requirements:
|
86
77
|
- - ~>
|
87
78
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
89
|
-
type: :runtime
|
90
|
-
prerelease: false
|
91
|
-
version_requirements: *70245154844420
|
79
|
+
version: 1.2.1
|
92
80
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
94
|
-
requirement:
|
81
|
+
name: gorillib
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
95
83
|
none: false
|
96
84
|
requirements:
|
97
|
-
- -
|
85
|
+
- - ~>
|
98
86
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0.
|
87
|
+
version: 0.1.9
|
100
88
|
type: :runtime
|
101
89
|
prerelease: false
|
102
|
-
version_requirements:
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: i18n
|
105
|
-
requirement: &70245154843440 !ruby/object:Gem::Requirement
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
91
|
none: false
|
107
92
|
requirements:
|
108
|
-
- -
|
93
|
+
- - ~>
|
109
94
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
111
|
-
type: :runtime
|
112
|
-
prerelease: false
|
113
|
-
version_requirements: *70245154843440
|
95
|
+
version: 0.1.9
|
114
96
|
- !ruby/object:Gem::Dependency
|
115
97
|
name: rspec
|
116
|
-
requirement:
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
117
99
|
none: false
|
118
100
|
requirements:
|
119
101
|
- - ~>
|
120
102
|
- !ruby/object:Gem::Version
|
121
|
-
version: 2.
|
103
|
+
version: 2.10.0
|
122
104
|
type: :development
|
123
105
|
prerelease: false
|
124
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ~>
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 2.10.0
|
125
112
|
description: ! 'A feed fetching and parsing library that treats the internet like
|
126
113
|
Godzilla treats Japan: it dominates and eats all.'
|
127
114
|
email: feedzirra@googlegroups.com
|
@@ -129,12 +116,23 @@ executables: []
|
|
129
116
|
extensions: []
|
130
117
|
extra_rdoc_files: []
|
131
118
|
files:
|
119
|
+
- .gitignore
|
120
|
+
- .rspec
|
121
|
+
- .travis.yml
|
122
|
+
- Gemfile
|
123
|
+
- Guardfile
|
124
|
+
- HISTORY.md
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- feedzirra.gemspec
|
128
|
+
- lib/feedzirra.rb
|
129
|
+
- lib/feedzirra/core_ext.rb
|
132
130
|
- lib/feedzirra/core_ext/date.rb
|
133
131
|
- lib/feedzirra/core_ext/string.rb
|
134
|
-
- lib/feedzirra/core_ext.rb
|
135
132
|
- lib/feedzirra/feed.rb
|
136
133
|
- lib/feedzirra/feed_entry_utilities.rb
|
137
134
|
- lib/feedzirra/feed_utilities.rb
|
135
|
+
- lib/feedzirra/parser.rb
|
138
136
|
- lib/feedzirra/parser/atom.rb
|
139
137
|
- lib/feedzirra/parser/atom_entry.rb
|
140
138
|
- lib/feedzirra/parser/atom_feed_burner.rb
|
@@ -148,9 +146,7 @@ files:
|
|
148
146
|
- lib/feedzirra/parser/rss_entry.rb
|
149
147
|
- lib/feedzirra/parser/rss_feed_burner.rb
|
150
148
|
- lib/feedzirra/parser/rss_feed_burner_entry.rb
|
151
|
-
- lib/feedzirra/parser.rb
|
152
149
|
- lib/feedzirra/version.rb
|
153
|
-
- lib/feedzirra.rb
|
154
150
|
- spec/benchmarks/feed_benchmarks.rb
|
155
151
|
- spec/benchmarks/feedzirra_benchmarks.rb
|
156
152
|
- spec/benchmarks/fetching_benchmarks.rb
|
@@ -172,11 +168,28 @@ files:
|
|
172
168
|
- spec/feedzirra/parser/rss_feed_burner_entry_spec.rb
|
173
169
|
- spec/feedzirra/parser/rss_feed_burner_spec.rb
|
174
170
|
- spec/feedzirra/parser/rss_spec.rb
|
171
|
+
- spec/sample_feeds/AmazonWebServicesBlog.xml
|
172
|
+
- spec/sample_feeds/AmazonWebServicesBlogFirstEntryContent.xml
|
173
|
+
- spec/sample_feeds/FeedBurnerUrlNoAlternate.xml
|
174
|
+
- spec/sample_feeds/GoogleDocsList.xml
|
175
|
+
- spec/sample_feeds/HREFConsideredHarmful.xml
|
176
|
+
- spec/sample_feeds/HREFConsideredHarmfulFirstEntry.xml
|
177
|
+
- spec/sample_feeds/PaulDixExplainsNothing.xml
|
178
|
+
- spec/sample_feeds/PaulDixExplainsNothingAlternate.xml
|
179
|
+
- spec/sample_feeds/PaulDixExplainsNothingFirstEntryContent.xml
|
180
|
+
- spec/sample_feeds/PaulDixExplainsNothingWFW.xml
|
181
|
+
- spec/sample_feeds/TechCrunch.xml
|
182
|
+
- spec/sample_feeds/TechCrunchFirstEntry.xml
|
183
|
+
- spec/sample_feeds/TechCrunchFirstEntryDescription.xml
|
184
|
+
- spec/sample_feeds/TenderLovemaking.xml
|
185
|
+
- spec/sample_feeds/TenderLovemakingFirstEntry.xml
|
186
|
+
- spec/sample_feeds/TrotterCashionHome.xml
|
187
|
+
- spec/sample_feeds/atom_with_link_tag_for_url_unmarked.xml
|
188
|
+
- spec/sample_feeds/itunes.xml
|
175
189
|
- spec/sample_feeds/run_against_sample.rb
|
190
|
+
- spec/sample_feeds/top5kfeeds.dat
|
191
|
+
- spec/sample_feeds/trouble_feeds.txt
|
176
192
|
- spec/spec_helper.rb
|
177
|
-
- README.rdoc
|
178
|
-
- Rakefile
|
179
|
-
- .rspec
|
180
193
|
homepage: http://github.com/pauldix/feedzirra
|
181
194
|
licenses: []
|
182
195
|
post_install_message:
|
@@ -189,15 +202,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
202
|
- - ! '>='
|
190
203
|
- !ruby/object:Gem::Version
|
191
204
|
version: '0'
|
205
|
+
segments:
|
206
|
+
- 0
|
207
|
+
hash: 464130071679288273
|
192
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
209
|
none: false
|
194
210
|
requirements:
|
195
|
-
- - ! '
|
211
|
+
- - ! '>'
|
196
212
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
213
|
+
version: 1.3.1
|
198
214
|
requirements: []
|
199
215
|
rubyforge_project:
|
200
|
-
rubygems_version: 1.8.
|
216
|
+
rubygems_version: 1.8.24
|
201
217
|
signing_key:
|
202
218
|
specification_version: 3
|
203
219
|
summary: A feed fetching and parsing library
|
@@ -223,5 +239,25 @@ test_files:
|
|
223
239
|
- spec/feedzirra/parser/rss_feed_burner_entry_spec.rb
|
224
240
|
- spec/feedzirra/parser/rss_feed_burner_spec.rb
|
225
241
|
- spec/feedzirra/parser/rss_spec.rb
|
242
|
+
- spec/sample_feeds/AmazonWebServicesBlog.xml
|
243
|
+
- spec/sample_feeds/AmazonWebServicesBlogFirstEntryContent.xml
|
244
|
+
- spec/sample_feeds/FeedBurnerUrlNoAlternate.xml
|
245
|
+
- spec/sample_feeds/GoogleDocsList.xml
|
246
|
+
- spec/sample_feeds/HREFConsideredHarmful.xml
|
247
|
+
- spec/sample_feeds/HREFConsideredHarmfulFirstEntry.xml
|
248
|
+
- spec/sample_feeds/PaulDixExplainsNothing.xml
|
249
|
+
- spec/sample_feeds/PaulDixExplainsNothingAlternate.xml
|
250
|
+
- spec/sample_feeds/PaulDixExplainsNothingFirstEntryContent.xml
|
251
|
+
- spec/sample_feeds/PaulDixExplainsNothingWFW.xml
|
252
|
+
- spec/sample_feeds/TechCrunch.xml
|
253
|
+
- spec/sample_feeds/TechCrunchFirstEntry.xml
|
254
|
+
- spec/sample_feeds/TechCrunchFirstEntryDescription.xml
|
255
|
+
- spec/sample_feeds/TenderLovemaking.xml
|
256
|
+
- spec/sample_feeds/TenderLovemakingFirstEntry.xml
|
257
|
+
- spec/sample_feeds/TrotterCashionHome.xml
|
258
|
+
- spec/sample_feeds/atom_with_link_tag_for_url_unmarked.xml
|
259
|
+
- spec/sample_feeds/itunes.xml
|
226
260
|
- spec/sample_feeds/run_against_sample.rb
|
261
|
+
- spec/sample_feeds/top5kfeeds.dat
|
262
|
+
- spec/sample_feeds/trouble_feeds.txt
|
227
263
|
- spec/spec_helper.rb
|