feedzirra 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +0 -14
- data/README.md +2 -241
- data/feedzirra.gemspec +2 -8
- data/lib/feedzirra.rb +2 -15
- data/lib/feedzirra/version.rb +1 -1
- metadata +7 -182
- data/.rspec +0 -1
- data/.travis.yml +0 -8
- data/Guardfile +0 -5
- data/Rakefile +0 -6
- data/benchmarks/README.md +0 -90
- data/benchmarks/basic.rb +0 -31
- data/benchmarks/feed_list.txt +0 -10
- data/benchmarks/feed_xml/apple.xml +0 -149
- data/benchmarks/feed_xml/cnn.xml +0 -278
- data/benchmarks/feed_xml/daring_fireball.xml +0 -1697
- data/benchmarks/feed_xml/engadget.xml +0 -604
- data/benchmarks/feed_xml/feedzirra_commits.xml +0 -370
- data/benchmarks/feed_xml/gizmodo.xml +0 -2
- data/benchmarks/feed_xml/loop.xml +0 -441
- data/benchmarks/feed_xml/rails.xml +0 -1938
- data/benchmarks/feed_xml/white_house.xml +0 -951
- data/benchmarks/feed_xml/xkcd.xml +0 -2
- data/benchmarks/fetching_systems.rb +0 -23
- data/benchmarks/other_libraries.rb +0 -73
- data/lib/feedzirra/core_ext.rb +0 -3
- data/lib/feedzirra/core_ext/date.rb +0 -19
- data/lib/feedzirra/core_ext/string.rb +0 -9
- data/lib/feedzirra/core_ext/time.rb +0 -31
- data/lib/feedzirra/feed.rb +0 -459
- data/lib/feedzirra/feed_entry_utilities.rb +0 -66
- data/lib/feedzirra/feed_utilities.rb +0 -103
- data/lib/feedzirra/parser.rb +0 -20
- data/lib/feedzirra/parser/atom.rb +0 -61
- data/lib/feedzirra/parser/atom_entry.rb +0 -34
- data/lib/feedzirra/parser/atom_feed_burner.rb +0 -22
- data/lib/feedzirra/parser/atom_feed_burner_entry.rb +0 -35
- data/lib/feedzirra/parser/google_docs_atom.rb +0 -28
- data/lib/feedzirra/parser/google_docs_atom_entry.rb +0 -29
- data/lib/feedzirra/parser/itunes_rss.rb +0 -50
- data/lib/feedzirra/parser/itunes_rss_item.rb +0 -41
- data/lib/feedzirra/parser/itunes_rss_owner.rb +0 -12
- data/lib/feedzirra/parser/rss.rb +0 -24
- data/lib/feedzirra/parser/rss_entry.rb +0 -37
- data/lib/feedzirra/parser/rss_feed_burner.rb +0 -23
- data/lib/feedzirra/parser/rss_feed_burner_entry.rb +0 -43
- data/spec/feedzirra/feed_entry_utilities_spec.rb +0 -62
- data/spec/feedzirra/feed_spec.rb +0 -762
- data/spec/feedzirra/feed_utilities_spec.rb +0 -273
- data/spec/feedzirra/parser/atom_entry_spec.rb +0 -86
- data/spec/feedzirra/parser/atom_feed_burner_entry_spec.rb +0 -47
- data/spec/feedzirra/parser/atom_feed_burner_spec.rb +0 -56
- data/spec/feedzirra/parser/atom_spec.rb +0 -76
- data/spec/feedzirra/parser/google_docs_atom_entry_spec.rb +0 -22
- data/spec/feedzirra/parser/google_docs_atom_spec.rb +0 -31
- data/spec/feedzirra/parser/itunes_rss_item_spec.rb +0 -63
- data/spec/feedzirra/parser/itunes_rss_owner_spec.rb +0 -18
- data/spec/feedzirra/parser/itunes_rss_spec.rb +0 -58
- data/spec/feedzirra/parser/rss_entry_spec.rb +0 -85
- data/spec/feedzirra/parser/rss_feed_burner_entry_spec.rb +0 -85
- data/spec/feedzirra/parser/rss_feed_burner_spec.rb +0 -57
- data/spec/feedzirra/parser/rss_spec.rb +0 -57
- data/spec/sample_feeds/AmazonWebServicesBlog.xml +0 -797
- data/spec/sample_feeds/AmazonWebServicesBlogFirstEntryContent.xml +0 -63
- data/spec/sample_feeds/AtomFeedWithSpacesAroundEquals.xml +0 -61
- data/spec/sample_feeds/FeedBurnerUrlNoAlternate.xml +0 -28
- data/spec/sample_feeds/GoogleDocsList.xml +0 -188
- data/spec/sample_feeds/HREFConsideredHarmful.xml +0 -314
- data/spec/sample_feeds/HREFConsideredHarmfulFirstEntry.xml +0 -22
- data/spec/sample_feeds/ITunesWithSpacesInAttributes.xml +0 -63
- data/spec/sample_feeds/PaulDixExplainsNothing.xml +0 -175
- data/spec/sample_feeds/PaulDixExplainsNothingAlternate.xml +0 -175
- data/spec/sample_feeds/PaulDixExplainsNothingFirstEntryContent.xml +0 -19
- data/spec/sample_feeds/PaulDixExplainsNothingWFW.xml +0 -174
- data/spec/sample_feeds/SamRuby.xml +0 -583
- data/spec/sample_feeds/TechCrunch.xml +0 -1515
- data/spec/sample_feeds/TechCrunchFirstEntry.xml +0 -9
- data/spec/sample_feeds/TechCrunchFirstEntryDescription.xml +0 -3
- data/spec/sample_feeds/TenderLovemaking.xml +0 -516
- data/spec/sample_feeds/TenderLovemakingFirstEntry.xml +0 -66
- data/spec/sample_feeds/TrotterCashionHome.xml +0 -611
- data/spec/sample_feeds/TypePadNews.xml +0 -368
- data/spec/sample_feeds/atom_with_link_tag_for_url_unmarked.xml +0 -31
- data/spec/sample_feeds/itunes.xml +0 -67
- data/spec/sample_feeds/pet_atom.xml +0 -497
- data/spec/spec_helper.rb +0 -88
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7a024c13b0e817265c7f0f2ba01e654c31f9dd9
|
4
|
+
data.tar.gz: dccc3fa8185d40a14a81ef73086ba7b3ef0ec5bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0695d57bacc215b6cd3672b21ab81232db6564870231d6df68c786b6205ee369da03dcb5a73c078264b011dc476056eceb018dfa0cce4ff56117fd7cd7a02af
|
7
|
+
data.tar.gz: 372cdcfcc31e39c867778467f4b41fd64ff1df351ddc705d7a37ece4f3b964b47837afe1f823ec13467f4ef0955f977ec730734837f2bc3883af2e450a03b06e
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,17 +1,3 @@
|
|
1
1
|
source 'https://rubygems.org/'
|
2
2
|
|
3
3
|
gemspec
|
4
|
-
|
5
|
-
group :development, :test do
|
6
|
-
gem 'rake'
|
7
|
-
end
|
8
|
-
|
9
|
-
group :tools do
|
10
|
-
gem 'guard-rspec'
|
11
|
-
gem 'simplecov', :require => false, :platforms => :mri_19
|
12
|
-
end
|
13
|
-
|
14
|
-
platforms :rbx do
|
15
|
-
gem 'racc'
|
16
|
-
gem 'rubysl'
|
17
|
-
end
|
data/README.md
CHANGED
@@ -1,242 +1,3 @@
|
|
1
|
-
# Feedzirra
|
1
|
+
# Feedzirra
|
2
2
|
|
3
|
-
|
4
|
-
[travis]: http://travis-ci.org/pauldix/feedzirra
|
5
|
-
[code-climate-badge]: https://codeclimate.com/github/pauldix/feedzirra.png
|
6
|
-
[code-climate]: https://codeclimate.com/github/pauldix/feedzirra
|
7
|
-
|
8
|
-
I'd like feedback on the api and any bugs encountered on feeds in the wild. I've
|
9
|
-
set up a [google group][].
|
10
|
-
|
11
|
-
[google group]: http://groups.google.com/group/feedzirra
|
12
|
-
|
13
|
-
## Description
|
14
|
-
|
15
|
-
Feedzirra is a feed library that is designed to get and update many feeds as
|
16
|
-
quickly as possible. This includes using libcurl-multi through the [curb][] gem
|
17
|
-
for faster http gets, and libxml through [nokogiri][] and [sax-machine][] for
|
18
|
-
faster parsing. Feedzirra requires at least Ruby 1.9.2.
|
19
|
-
|
20
|
-
[curb]: https://github.com/taf2/curb
|
21
|
-
[nokogiri]: https://github.com/sparklemotion/nokogiri
|
22
|
-
[sax-machine]: https://github.com/pauldix/sax-machine
|
23
|
-
|
24
|
-
Once you have fetched feeds using Feedzirra, they can be updated using the feed
|
25
|
-
objects. Feedzirra automatically inserts etag and last-modified information from
|
26
|
-
the http response headers to lower bandwidth usage, eliminate unnecessary
|
27
|
-
parsing, and make things speedier in general.
|
28
|
-
|
29
|
-
Another feature present in Feedzirra is the ability to create callback functions
|
30
|
-
that get called "on success" and "on failure" when getting a feed. This makes it
|
31
|
-
easy to do things like log errors or update data stores.
|
32
|
-
|
33
|
-
The fetching and parsing logic have been decoupled so that either of them can be
|
34
|
-
used in isolation if you'd prefer not to use everything that Feedzirra offers.
|
35
|
-
However, the code examples below use helper methods in the Feed class that put
|
36
|
-
everything together to make things as simple as possible.
|
37
|
-
|
38
|
-
The final feature of Feedzirra is the ability to define custom parsing classes.
|
39
|
-
In truth, Feedzirra could be used to parse much more than feeds. Microformats,
|
40
|
-
page scraping, and almost anything else are fair game.
|
41
|
-
|
42
|
-
## Speedup date parsing
|
43
|
-
|
44
|
-
In MRI before 1.9.3 the date parsing code was written in Ruby and was optimized
|
45
|
-
for readability over speed, to speed up this part you can install the
|
46
|
-
[home_run][] gem to replace it with an optimized C version. In most cases, if
|
47
|
-
you are using Ruby 1.9.3+, you will not need to use home\_run.
|
48
|
-
|
49
|
-
[home_run]: https://github.com/jeremyevans/home_run
|
50
|
-
|
51
|
-
## Usage
|
52
|
-
|
53
|
-
[A gist of the following code](http://gist.github.com/57285)
|
54
|
-
|
55
|
-
```ruby
|
56
|
-
require 'feedzirra'
|
57
|
-
|
58
|
-
# fetching a single feed
|
59
|
-
feed = Feedzirra::Feed.fetch_and_parse("http://feeds.feedburner.com/PaulDixExplainsNothing")
|
60
|
-
|
61
|
-
# feed and entries accessors
|
62
|
-
feed.title # => "Paul Dix Explains Nothing"
|
63
|
-
feed.url # => "http://www.pauldix.net"
|
64
|
-
feed.feed_url # => "http://feeds.feedburner.com/PaulDixExplainsNothing"
|
65
|
-
feed.etag # => "GunxqnEP4NeYhrqq9TyVKTuDnh0"
|
66
|
-
feed.last_modified # => Sat Jan 31 17:58:16 -0500 2009 # it's a Time object
|
67
|
-
|
68
|
-
entry = feed.entries.first
|
69
|
-
entry.title # => "Ruby Http Client Library Performance"
|
70
|
-
entry.url # => "http://www.pauldix.net/2009/01/ruby-http-client-library-performance.html"
|
71
|
-
entry.author # => "Paul Dix"
|
72
|
-
entry.summary # => "..."
|
73
|
-
entry.content # => "..."
|
74
|
-
entry.published # => Thu Jan 29 17:00:19 UTC 2009 # it's a Time object
|
75
|
-
entry.categories # => ["...", "..."]
|
76
|
-
|
77
|
-
# sanitizing an entry's content
|
78
|
-
entry.title.sanitize # => returns the title with harmful stuff escaped
|
79
|
-
entry.author.sanitize # => returns the author with harmful stuff escaped
|
80
|
-
entry.content.sanitize # => returns the content with harmful stuff escaped
|
81
|
-
entry.content.sanitize! # => returns content with harmful stuff escaped and replaces original (also exists for author and title)
|
82
|
-
entry.sanitize! # => sanitizes the entry's title, author, and content in place (as in, it changes the value to clean versions)
|
83
|
-
feed.sanitize_entries! # => sanitizes all entries in place
|
84
|
-
|
85
|
-
# updating a single feed
|
86
|
-
updated_feed = Feedzirra::Feed.update(feed)
|
87
|
-
|
88
|
-
# an updated feed has the following extra accessors
|
89
|
-
updated_feed.updated? # returns true if any of the feed attributes have been modified. will return false if no new entries
|
90
|
-
updated_feed.new_entries # a collection of the entry objects that are newer than the latest in the feed before update
|
91
|
-
|
92
|
-
# fetching multiple feeds
|
93
|
-
feed_urls = ["http://feeds.feedburner.com/PaulDixExplainsNothing", "http://feeds.feedburner.com/trottercashion"]
|
94
|
-
feeds = Feedzirra::Feed.fetch_and_parse(feed_urls)
|
95
|
-
|
96
|
-
# feeds is now a hash with the feed_urls as keys and the parsed feed objects as values. If an error was thrown
|
97
|
-
# there will be a Fixnum of the http response code instead of a feed object
|
98
|
-
|
99
|
-
# updating multiple feeds. it expects a collection of feed objects
|
100
|
-
updated_feeds = Feedzirra::Feed.update(feeds.values)
|
101
|
-
|
102
|
-
# defining custom behavior on failure or success. note that a return status of 304 (not updated) will call the on_success handler
|
103
|
-
feed = Feedzirra::Feed.fetch_and_parse("http://feeds.feedburner.com/PaulDixExplainsNothing",
|
104
|
-
:on_success => lambda {|url, feed| puts feed.title },
|
105
|
-
:on_failure => lambda {|curl, error| puts error })
|
106
|
-
|
107
|
-
# if a collection was passed into fetch_and_parse, the handlers will be called for each one
|
108
|
-
|
109
|
-
# the behavior for the handlers when using Feedzirra::Feed.update is slightly different. The feed passed into on_success will be
|
110
|
-
# the updated feed with the standard updated accessors. on failure it will be the original feed object passed into update
|
111
|
-
|
112
|
-
# fetching a feed via a proxy (optional)
|
113
|
-
feed = Feedzirra::Feed.fetch_and_parse("http://feeds.feedburner.com/PaulDixExplainsNothing", {:proxy_url => '10.0.0.1', :proxy_port => 3084})
|
114
|
-
```
|
115
|
-
|
116
|
-
## Extending
|
117
|
-
|
118
|
-
### Adding a feed parsing class
|
119
|
-
|
120
|
-
When determining which parser to use for a given XML document, the following
|
121
|
-
list of parser classes is used:
|
122
|
-
|
123
|
-
* `Feedzirra::Parser::RSSFeedBurner`
|
124
|
-
* `Feedzirra::Parser::GoogleDocsAtom`
|
125
|
-
* `Feedzirra::Parser::AtomFeedBurner`
|
126
|
-
* `Feedzirra::Parser::Atom`
|
127
|
-
* `Feedzirra::Parser::ITunesRSS`
|
128
|
-
* `Feedzirra::Parser::RSS`
|
129
|
-
|
130
|
-
You can insert your own parser at the front of this stack by calling
|
131
|
-
`add_feed_class`, like this:
|
132
|
-
|
133
|
-
```ruby
|
134
|
-
Feedzirra::Feed.add_feed_class MyAwesomeParser
|
135
|
-
```
|
136
|
-
|
137
|
-
Now when you `fetch_and_parse`, `MyAwesomeParser` will be the first one to get a
|
138
|
-
chance to parse the feed.
|
139
|
-
|
140
|
-
If you have the XML and just want to provide a parser class for one parse, you
|
141
|
-
can specify that using `parse_with`:
|
142
|
-
|
143
|
-
```ruby
|
144
|
-
Feedzirra::Feed.parse_with MyAwesomeParser, xml
|
145
|
-
```
|
146
|
-
|
147
|
-
### Adding attributes to all feeds types / all entries types
|
148
|
-
|
149
|
-
```ruby
|
150
|
-
# Add the generator attribute to all feed types
|
151
|
-
Feedzirra::Feed.add_common_feed_element('generator')
|
152
|
-
Feedzirra::Feed.fetch_and_parse("href="http://www.pauldix.net/atom.xml").generator # => 'TypePad'
|
153
|
-
|
154
|
-
# Add some GeoRss information
|
155
|
-
Feedzirra::Feed.add_common_feed_entry_element('geo:lat', :as => :lat)
|
156
|
-
Feedzirra::Feed.fetch_and_parse("http://www.earthpublisher.com/georss.php").entries.each do |e|
|
157
|
-
p "lat: #[e.lat}, long: #{e.long]"
|
158
|
-
end
|
159
|
-
```
|
160
|
-
|
161
|
-
### Adding attributes to only one class
|
162
|
-
|
163
|
-
If you want to add attributes for only one class you simply have to declare them
|
164
|
-
in the class
|
165
|
-
|
166
|
-
```ruby
|
167
|
-
# Add some GeoRss information
|
168
|
-
require 'lib/feedzirra/parser/rss_entry'
|
169
|
-
|
170
|
-
class Feedzirra::Parser::RSSEntry
|
171
|
-
element 'geo:lat', :as => :lat
|
172
|
-
element 'geo:long', :as => :long
|
173
|
-
end
|
174
|
-
|
175
|
-
# Fetch a feed containing GeoRss info and print them
|
176
|
-
Feedzirra::Feed.fetch_and_parse("http://www.earthpublisher.com/georss.php").entries.each do |e|
|
177
|
-
p "lat: #{e.lat}, long: #{e.long}"
|
178
|
-
end
|
179
|
-
```
|
180
|
-
|
181
|
-
## Testing
|
182
|
-
|
183
|
-
Feedzirra uses [curb][] to perform requests. `curb` provides bindings for
|
184
|
-
[libcurl][] and supports numerous protocols, including FILE. To test Feedzirra
|
185
|
-
with local file use `file://` protocol:
|
186
|
-
|
187
|
-
[libcurl]: http://curl.haxx.se/libcurl/
|
188
|
-
|
189
|
-
```ruby
|
190
|
-
feed = Feedzirra::Feed.fetch_and_parse('file:///home/feedzirra/examples/feed.rss')
|
191
|
-
```
|
192
|
-
|
193
|
-
## Benchmarks
|
194
|
-
|
195
|
-
Since a major goal of Feedzirra is speed, benchmarks are provided--see the
|
196
|
-
[Benchmark README][benchmark_readme] for more details.
|
197
|
-
|
198
|
-
[benchmark_readme]: https://github.com/pauldix/feedzirra/blob/master/benchmarks/README.md
|
199
|
-
|
200
|
-
## TODO
|
201
|
-
|
202
|
-
This thing needs to hammer on many different feeds in the wild. I'm sure there
|
203
|
-
will be bugs. I want to find them and crush them. I didn't bother using the test
|
204
|
-
suite for feedparser. i wanted to start fresh.
|
205
|
-
|
206
|
-
Here are some more specific TODOs.
|
207
|
-
|
208
|
-
* Make a feedzirra-rails gem to integrate feedzirra seamlessly with Rails and ActiveRecord.
|
209
|
-
* Add support for authenticated feeds.
|
210
|
-
* Create a super sweet DSL for defining new parsers.
|
211
|
-
* I'm not keeping track of modified on entries. Should I add this?
|
212
|
-
* Clean up the fetching code inside feed.rb so it doesn't suck so hard.
|
213
|
-
* Make the feed_spec actually mock stuff out so it doesn't hit the net.
|
214
|
-
* Readdress how feeds determine if they can parse a document. Maybe I should use namespaces instead?
|
215
|
-
|
216
|
-
## LICENSE
|
217
|
-
|
218
|
-
(The MIT License)
|
219
|
-
|
220
|
-
Copyright (c) 2009-2013:
|
221
|
-
|
222
|
-
- [Paul Dix](http://pauldix.net)
|
223
|
-
- [Julien Kirch](http://archiloque.net/)
|
224
|
-
- [Ezekiel Templin](http://zeke.templ.in/)
|
225
|
-
- [Jon Allured](http://jonallured.com/)
|
226
|
-
|
227
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
228
|
-
this software and associated documentation files (the 'Software'), to deal in
|
229
|
-
the Software without restriction, including without limitation the rights to
|
230
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
231
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
232
|
-
subject to the following conditions:
|
233
|
-
|
234
|
-
The above copyright notice and this permission notice shall be included in all
|
235
|
-
copies or substantial portions of the Software.
|
236
|
-
|
237
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
238
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
239
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
240
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
241
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
242
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
3
|
+
This project has been renamed Feedjira, find out more at feedjira.com.
|
data/feedzirra.gemspec
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
require File.expand_path('../lib/feedzirra/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
|
+
s.post_install_message = 'This project has been renamed to Feedjira, find out more at feedjira.com.'
|
5
6
|
s.name = 'feedzirra'
|
6
7
|
s.version = Feedzirra::VERSION
|
7
8
|
s.license = 'MIT'
|
@@ -11,17 +12,10 @@ Gem::Specification.new do |s|
|
|
11
12
|
s.homepage = 'http://github.com/pauldix/feedzirra'
|
12
13
|
|
13
14
|
s.summary = 'A feed fetching and parsing library'
|
14
|
-
s.description = '
|
15
|
+
s.description = 'This project has been renamed to Feedjira, find out more at feedjira.com.'
|
15
16
|
|
16
17
|
s.files = `git ls-files`.split("\n")
|
17
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
18
|
s.require_paths = ['lib']
|
19
19
|
|
20
20
|
s.platform = Gem::Platform::RUBY
|
21
|
-
|
22
|
-
s.add_dependency 'sax-machine', '~> 0.2.1'
|
23
|
-
s.add_dependency 'curb', '~> 0.8.1'
|
24
|
-
s.add_dependency 'loofah', '~> 1.2.1'
|
25
|
-
|
26
|
-
s.add_development_dependency 'rspec', '~> 2.14.0'
|
27
21
|
end
|
data/lib/feedzirra.rb
CHANGED
@@ -1,16 +1,3 @@
|
|
1
|
-
require 'zlib'
|
2
|
-
require 'curb'
|
3
|
-
require 'sax-machine'
|
4
|
-
require 'loofah'
|
5
|
-
|
6
|
-
require 'feedzirra/core_ext'
|
7
1
|
require 'feedzirra/version'
|
8
|
-
|
9
|
-
module Feedzirra
|
10
|
-
autoload :FeedEntryUtilities, 'feedzirra/feed_entry_utilities'
|
11
|
-
autoload :FeedUtilities, 'feedzirra/feed_utilities'
|
12
|
-
autoload :Feed, 'feedzirra/feed'
|
13
|
-
autoload :Parser, 'feedzirra/parser'
|
14
|
-
|
15
|
-
class NoParserAvailable < StandardError; end
|
16
|
-
end
|
2
|
+
raise 'This project has been renamed Feedjira, find out more at feedjira.com.'
|
3
|
+
module Feedzirra; end
|
data/lib/feedzirra/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feedzirra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Dix
|
@@ -11,162 +11,27 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-
|
15
|
-
dependencies:
|
16
|
-
|
17
|
-
name: sax-machine
|
18
|
-
requirement: !ruby/object:Gem::Requirement
|
19
|
-
requirements:
|
20
|
-
- - ~>
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.2.1
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.2.1
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: curb
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
requirements:
|
34
|
-
- - ~>
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
version: 0.8.1
|
37
|
-
type: :runtime
|
38
|
-
prerelease: false
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 0.8.1
|
44
|
-
- !ruby/object:Gem::Dependency
|
45
|
-
name: loofah
|
46
|
-
requirement: !ruby/object:Gem::Requirement
|
47
|
-
requirements:
|
48
|
-
- - ~>
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 1.2.1
|
51
|
-
type: :runtime
|
52
|
-
prerelease: false
|
53
|
-
version_requirements: !ruby/object:Gem::Requirement
|
54
|
-
requirements:
|
55
|
-
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: 1.2.1
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: rspec
|
60
|
-
requirement: !ruby/object:Gem::Requirement
|
61
|
-
requirements:
|
62
|
-
- - ~>
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 2.14.0
|
65
|
-
type: :development
|
66
|
-
prerelease: false
|
67
|
-
version_requirements: !ruby/object:Gem::Requirement
|
68
|
-
requirements:
|
69
|
-
- - ~>
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: 2.14.0
|
72
|
-
description: A library designed to retrieve and parse feeds as quickly as possible
|
14
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
15
|
+
dependencies: []
|
16
|
+
description: This project has been renamed to Feedjira, find out more at feedjira.com.
|
73
17
|
email: feedzirra@googlegroups.com
|
74
18
|
executables: []
|
75
19
|
extensions: []
|
76
20
|
extra_rdoc_files: []
|
77
21
|
files:
|
78
22
|
- .gitignore
|
79
|
-
- .rspec
|
80
|
-
- .travis.yml
|
81
23
|
- CHANGELOG.md
|
82
24
|
- Gemfile
|
83
|
-
- Guardfile
|
84
25
|
- README.md
|
85
|
-
- Rakefile
|
86
|
-
- benchmarks/README.md
|
87
|
-
- benchmarks/basic.rb
|
88
|
-
- benchmarks/feed_list.txt
|
89
|
-
- benchmarks/feed_xml/apple.xml
|
90
|
-
- benchmarks/feed_xml/cnn.xml
|
91
|
-
- benchmarks/feed_xml/daring_fireball.xml
|
92
|
-
- benchmarks/feed_xml/engadget.xml
|
93
|
-
- benchmarks/feed_xml/feedzirra_commits.xml
|
94
|
-
- benchmarks/feed_xml/gizmodo.xml
|
95
|
-
- benchmarks/feed_xml/loop.xml
|
96
|
-
- benchmarks/feed_xml/rails.xml
|
97
|
-
- benchmarks/feed_xml/white_house.xml
|
98
|
-
- benchmarks/feed_xml/xkcd.xml
|
99
|
-
- benchmarks/fetching_systems.rb
|
100
|
-
- benchmarks/other_libraries.rb
|
101
26
|
- feedzirra.gemspec
|
102
27
|
- lib/feedzirra.rb
|
103
|
-
- lib/feedzirra/core_ext.rb
|
104
|
-
- lib/feedzirra/core_ext/date.rb
|
105
|
-
- lib/feedzirra/core_ext/string.rb
|
106
|
-
- lib/feedzirra/core_ext/time.rb
|
107
|
-
- lib/feedzirra/feed.rb
|
108
|
-
- lib/feedzirra/feed_entry_utilities.rb
|
109
|
-
- lib/feedzirra/feed_utilities.rb
|
110
|
-
- lib/feedzirra/parser.rb
|
111
|
-
- lib/feedzirra/parser/atom.rb
|
112
|
-
- lib/feedzirra/parser/atom_entry.rb
|
113
|
-
- lib/feedzirra/parser/atom_feed_burner.rb
|
114
|
-
- lib/feedzirra/parser/atom_feed_burner_entry.rb
|
115
|
-
- lib/feedzirra/parser/google_docs_atom.rb
|
116
|
-
- lib/feedzirra/parser/google_docs_atom_entry.rb
|
117
|
-
- lib/feedzirra/parser/itunes_rss.rb
|
118
|
-
- lib/feedzirra/parser/itunes_rss_item.rb
|
119
|
-
- lib/feedzirra/parser/itunes_rss_owner.rb
|
120
|
-
- lib/feedzirra/parser/rss.rb
|
121
|
-
- lib/feedzirra/parser/rss_entry.rb
|
122
|
-
- lib/feedzirra/parser/rss_feed_burner.rb
|
123
|
-
- lib/feedzirra/parser/rss_feed_burner_entry.rb
|
124
28
|
- lib/feedzirra/version.rb
|
125
|
-
- spec/feedzirra/feed_entry_utilities_spec.rb
|
126
|
-
- spec/feedzirra/feed_spec.rb
|
127
|
-
- spec/feedzirra/feed_utilities_spec.rb
|
128
|
-
- spec/feedzirra/parser/atom_entry_spec.rb
|
129
|
-
- spec/feedzirra/parser/atom_feed_burner_entry_spec.rb
|
130
|
-
- spec/feedzirra/parser/atom_feed_burner_spec.rb
|
131
|
-
- spec/feedzirra/parser/atom_spec.rb
|
132
|
-
- spec/feedzirra/parser/google_docs_atom_entry_spec.rb
|
133
|
-
- spec/feedzirra/parser/google_docs_atom_spec.rb
|
134
|
-
- spec/feedzirra/parser/itunes_rss_item_spec.rb
|
135
|
-
- spec/feedzirra/parser/itunes_rss_owner_spec.rb
|
136
|
-
- spec/feedzirra/parser/itunes_rss_spec.rb
|
137
|
-
- spec/feedzirra/parser/rss_entry_spec.rb
|
138
|
-
- spec/feedzirra/parser/rss_feed_burner_entry_spec.rb
|
139
|
-
- spec/feedzirra/parser/rss_feed_burner_spec.rb
|
140
|
-
- spec/feedzirra/parser/rss_spec.rb
|
141
|
-
- spec/sample_feeds/AmazonWebServicesBlog.xml
|
142
|
-
- spec/sample_feeds/AmazonWebServicesBlogFirstEntryContent.xml
|
143
|
-
- spec/sample_feeds/AtomFeedWithSpacesAroundEquals.xml
|
144
|
-
- spec/sample_feeds/FeedBurnerUrlNoAlternate.xml
|
145
|
-
- spec/sample_feeds/GoogleDocsList.xml
|
146
|
-
- spec/sample_feeds/HREFConsideredHarmful.xml
|
147
|
-
- spec/sample_feeds/HREFConsideredHarmfulFirstEntry.xml
|
148
|
-
- spec/sample_feeds/ITunesWithSpacesInAttributes.xml
|
149
|
-
- spec/sample_feeds/PaulDixExplainsNothing.xml
|
150
|
-
- spec/sample_feeds/PaulDixExplainsNothingAlternate.xml
|
151
|
-
- spec/sample_feeds/PaulDixExplainsNothingFirstEntryContent.xml
|
152
|
-
- spec/sample_feeds/PaulDixExplainsNothingWFW.xml
|
153
|
-
- spec/sample_feeds/SamRuby.xml
|
154
|
-
- spec/sample_feeds/TechCrunch.xml
|
155
|
-
- spec/sample_feeds/TechCrunchFirstEntry.xml
|
156
|
-
- spec/sample_feeds/TechCrunchFirstEntryDescription.xml
|
157
|
-
- spec/sample_feeds/TenderLovemaking.xml
|
158
|
-
- spec/sample_feeds/TenderLovemakingFirstEntry.xml
|
159
|
-
- spec/sample_feeds/TrotterCashionHome.xml
|
160
|
-
- spec/sample_feeds/TypePadNews.xml
|
161
|
-
- spec/sample_feeds/atom_with_link_tag_for_url_unmarked.xml
|
162
|
-
- spec/sample_feeds/itunes.xml
|
163
|
-
- spec/sample_feeds/pet_atom.xml
|
164
|
-
- spec/spec_helper.rb
|
165
29
|
homepage: http://github.com/pauldix/feedzirra
|
166
30
|
licenses:
|
167
31
|
- MIT
|
168
32
|
metadata: {}
|
169
|
-
post_install_message:
|
33
|
+
post_install_message: This project has been renamed to Feedjira, find out more at
|
34
|
+
feedjira.com.
|
170
35
|
rdoc_options: []
|
171
36
|
require_paths:
|
172
37
|
- lib
|
@@ -186,44 +51,4 @@ rubygems_version: 2.1.11
|
|
186
51
|
signing_key:
|
187
52
|
specification_version: 4
|
188
53
|
summary: A feed fetching and parsing library
|
189
|
-
test_files:
|
190
|
-
- spec/feedzirra/feed_entry_utilities_spec.rb
|
191
|
-
- spec/feedzirra/feed_spec.rb
|
192
|
-
- spec/feedzirra/feed_utilities_spec.rb
|
193
|
-
- spec/feedzirra/parser/atom_entry_spec.rb
|
194
|
-
- spec/feedzirra/parser/atom_feed_burner_entry_spec.rb
|
195
|
-
- spec/feedzirra/parser/atom_feed_burner_spec.rb
|
196
|
-
- spec/feedzirra/parser/atom_spec.rb
|
197
|
-
- spec/feedzirra/parser/google_docs_atom_entry_spec.rb
|
198
|
-
- spec/feedzirra/parser/google_docs_atom_spec.rb
|
199
|
-
- spec/feedzirra/parser/itunes_rss_item_spec.rb
|
200
|
-
- spec/feedzirra/parser/itunes_rss_owner_spec.rb
|
201
|
-
- spec/feedzirra/parser/itunes_rss_spec.rb
|
202
|
-
- spec/feedzirra/parser/rss_entry_spec.rb
|
203
|
-
- spec/feedzirra/parser/rss_feed_burner_entry_spec.rb
|
204
|
-
- spec/feedzirra/parser/rss_feed_burner_spec.rb
|
205
|
-
- spec/feedzirra/parser/rss_spec.rb
|
206
|
-
- spec/sample_feeds/AmazonWebServicesBlog.xml
|
207
|
-
- spec/sample_feeds/AmazonWebServicesBlogFirstEntryContent.xml
|
208
|
-
- spec/sample_feeds/AtomFeedWithSpacesAroundEquals.xml
|
209
|
-
- spec/sample_feeds/FeedBurnerUrlNoAlternate.xml
|
210
|
-
- spec/sample_feeds/GoogleDocsList.xml
|
211
|
-
- spec/sample_feeds/HREFConsideredHarmful.xml
|
212
|
-
- spec/sample_feeds/HREFConsideredHarmfulFirstEntry.xml
|
213
|
-
- spec/sample_feeds/ITunesWithSpacesInAttributes.xml
|
214
|
-
- spec/sample_feeds/PaulDixExplainsNothing.xml
|
215
|
-
- spec/sample_feeds/PaulDixExplainsNothingAlternate.xml
|
216
|
-
- spec/sample_feeds/PaulDixExplainsNothingFirstEntryContent.xml
|
217
|
-
- spec/sample_feeds/PaulDixExplainsNothingWFW.xml
|
218
|
-
- spec/sample_feeds/SamRuby.xml
|
219
|
-
- spec/sample_feeds/TechCrunch.xml
|
220
|
-
- spec/sample_feeds/TechCrunchFirstEntry.xml
|
221
|
-
- spec/sample_feeds/TechCrunchFirstEntryDescription.xml
|
222
|
-
- spec/sample_feeds/TenderLovemaking.xml
|
223
|
-
- spec/sample_feeds/TenderLovemakingFirstEntry.xml
|
224
|
-
- spec/sample_feeds/TrotterCashionHome.xml
|
225
|
-
- spec/sample_feeds/TypePadNews.xml
|
226
|
-
- spec/sample_feeds/atom_with_link_tag_for_url_unmarked.xml
|
227
|
-
- spec/sample_feeds/itunes.xml
|
228
|
-
- spec/sample_feeds/pet_atom.xml
|
229
|
-
- spec/spec_helper.rb
|
54
|
+
test_files: []
|