zephyr 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/typhoeus_ext/response.rb +9 -1
- data/zephyr.gemspec +2 -2
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.1
|
@@ -1,7 +1,15 @@
|
|
1
1
|
module Typhoeus
|
2
2
|
class Response
|
3
3
|
def retryable_request?
|
4
|
-
timed_out? ||
|
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.
|
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-
|
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.
|
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-
|
12
|
+
date: 2012-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|