kete-feedzirra 0.0.16.1 → 0.0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,7 +96,7 @@ module Feedzirra
96
96
  curl.on_success do |c|
97
97
  responses[url] = decode_content(c)
98
98
  end
99
- curl.on_failure do |c|
99
+ curl.on_failure do |c, err|
100
100
  responses[url] = c.response_code
101
101
  end
102
102
  end
@@ -235,7 +235,7 @@ module Feedzirra
235
235
  end
236
236
  end
237
237
 
238
- curl.on_failure do |c|
238
+ curl.on_failure do |c, err|
239
239
  add_url_to_multi(multi, url_queue.shift, url_queue, responses, options) unless url_queue.empty?
240
240
  responses[url] = c.response_code
241
241
  options[:on_failure].call(url, c.response_code, c.header_str, c.body_str) if options.has_key?(:on_failure)
@@ -284,7 +284,7 @@ module Feedzirra
284
284
  end
285
285
  end
286
286
 
287
- curl.on_failure do |c|
287
+ curl.on_failure do |c, err|
288
288
  add_feed_to_multi(multi, feed_queue.shift, feed_queue, responses, options) unless feed_queue.empty?
289
289
  response_code = c.response_code
290
290
  if response_code == 304 # it's not modified. this isn't an error condition
@@ -31,7 +31,7 @@ module Feedzirra
31
31
  attr_accessor :feed_url
32
32
 
33
33
  def self.able_to_parse?(xml) #:nodoc:
34
- xml =~ /\<rss|rdf/
34
+ xml =~ /\<rss|\<rdf/
35
35
  end
36
36
  end
37
37
 
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.16"
33
+ VERSION = "0.0.18.1"
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kete-feedzirra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16.1
4
+ version: 0.0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix