pauldix-feedzirra 0.0.12 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -23,10 +23,12 @@ The final feature of Feedzirra is the ability to define custom parsing classes.
23
23
  h2. Installation
24
24
 
25
25
  For now Feedzirra exists only on github. It also has a few gem requirements that are only on github. Before you start you need to have "libcurl":http://curl.haxx.se/ and "libxml":http://xmlsoft.org/ installed. If you're on Leopard you have both. Otherwise, you'll need to grab them. Once you've got those libraries, these are the gems that get used: nokogiri, pauldix-sax-machine, taf2-curb (note that this is a fork that lives on github and not the Ruby Forge version of curb), and pauldix-feedzirra. The feedzirra gemspec has all the dependencies so you should be able to get up and running with the standard github gem install routine:
26
+
26
27
  <pre>
27
28
  gem sources -a http://gems.github.com # if you haven't already
28
29
  gem install pauldix-feedzirra
29
30
  </pre>
31
+
30
32
  <b>NOTE:</b>Some people have been reporting a few issues related to installation. First, the Ruby Forge version of curb is not what you want. It will not work. Nor will the curl-multi gem that lives on Ruby Forge. You have to get the "taf2-curb":http://github.com/taf2/curb/tree/master fork installed.
31
33
 
32
34
  If you see this error when doing a require:
@@ -89,6 +89,9 @@ module Feedzirra
89
89
  curl.headers["Accept-encoding"] = 'gzip, deflate' if options.has_key?(:compress)
90
90
  curl.follow_location = true
91
91
  curl.userpwd = options[:http_authentication].join(':') if options.has_key?(:http_authentication)
92
+
93
+ curl.max_redirects = options[:max_redirects] if options[:max_redirects]
94
+ curl.timeout = options[:timeout] if options[:timeout]
92
95
 
93
96
  curl.on_success do |c|
94
97
  responses[url] = decode_content(c)
@@ -205,6 +208,9 @@ module Feedzirra
205
208
  curl.headers["Accept-encoding"] = 'gzip, deflate' if options.has_key?(:compress)
206
209
  curl.follow_location = true
207
210
  curl.userpwd = options[:http_authentication].join(':') if options.has_key?(:http_authentication)
211
+
212
+ curl.max_redirects = options[:max_redirects] if options[:max_redirects]
213
+ curl.timeout = options[:timeout] if options[:timeout]
208
214
 
209
215
  curl.on_success do |c|
210
216
  add_url_to_multi(multi, url_queue.shift, url_queue, responses, options) unless url_queue.empty?
@@ -260,6 +266,9 @@ module Feedzirra
260
266
  curl.userpwd = options[:http_authentication].join(':') if options.has_key?(:http_authentication)
261
267
  curl.follow_location = true
262
268
 
269
+ curl.max_redirects = options[:max_redirects] if options[:max_redirects]
270
+ curl.timeout = options[:timeout] if options[:timeout]
271
+
263
272
  curl.on_success do |c|
264
273
  begin
265
274
  add_feed_to_multi(multi, feed_queue.shift, feed_queue, responses, options) unless feed_queue.empty?
@@ -19,10 +19,12 @@ module Feedzirra
19
19
  element :link, :as => :url
20
20
 
21
21
  element :"dc:creator", :as => :author
22
+ element :author, :as => :author
22
23
  element :"content:encoded", :as => :content
23
24
  element :description, :as => :summary
24
25
 
25
26
  element :pubDate, :as => :published
27
+ element :pubdate, :as => :published
26
28
  element :"dc:date", :as => :published
27
29
  element :"dc:Date", :as => :published
28
30
  element :"dcterms:created", :as => :published
data/lib/feedzirra.rb CHANGED
@@ -30,5 +30,5 @@ require 'feedzirra/parser/atom'
30
30
  require 'feedzirra/parser/atom_feed_burner'
31
31
 
32
32
  module Feedzirra
33
- VERSION = "0.0.12"
33
+ VERSION = "0.0.14"
34
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.12
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix