zephyr 1.2.0 → 1.2.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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zephyr (1.1.9)
4
+ zephyr (1.2.1)
5
5
  typhoeus (~> 0.4.2)
6
6
  yajl-ruby
7
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -1,7 +1,15 @@
1
1
  module Typhoeus
2
2
  class Response
3
3
  def retryable_request?
4
- timed_out? || (500..599).include?(code)
4
+ timed_out? || connection_failed? || server_error?
5
+ end
6
+
7
+ def connection_failed?
8
+ curl_return_code == 7
9
+ end
10
+
11
+ def server_error?
12
+ (500..599).include?(code)
5
13
  end
6
14
  end
7
15
  end
data/zephyr.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "zephyr"
5
- s.version = "1.2.0"
5
+ s.version = "1.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Matt Knopp"]
9
- s.date = "2012-07-27"
9
+ s.date = "2012-12-11"
10
10
  s.description = "Battle-tested HTTP client using Typhoeus, derived from the Riak client"
11
11
  s.email = "matt.knopp@gmail.com"
12
12
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zephyr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-27 00:00:00.000000000 Z
12
+ date: 2012-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus