tddium_client 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -0,0 +1 @@
1
+ The tddium_client gem encapsulates common API access code.
@@ -120,7 +120,7 @@ module TddiumClient
120
120
 
121
121
  begin
122
122
  http = HTTParty.send(method, tddium_uri(api_path), :body => params, :headers => headers)
123
- rescue Errno::ETIMEDOUT, Timeout::Error, OpenSSL::SSL::SSLError, OpenSSL::SSL::Session::SessionError
123
+ rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT, Timeout::Error, OpenSSL::SSL::SSLError, OpenSSL::SSL::Session::SessionError
124
124
  tries += 1
125
125
  retry if retries > 0 && tries <= retries
126
126
  end
@@ -3,5 +3,5 @@ Copyright (c) 2011 Solano Labs All Rights Reserved
3
3
  =end
4
4
 
5
5
  module TddiumClient
6
- VERSION = "0.1.3"
6
+ VERSION = "0.1.4"
7
7
  end
@@ -295,6 +295,12 @@ describe "TddiumClient" do
295
295
  end
296
296
 
297
297
  context "raises a timeout error" do
298
+ it_behaves_like "retry on exception" do
299
+ let (:raised_exception) { Errno::ECONNREFUSED }
300
+ end
301
+ it_behaves_like "retry on exception" do
302
+ let (:raised_exception) { Errno::ETIMEDOUT }
303
+ end
298
304
  it_behaves_like "retry on exception" do
299
305
  let (:raised_exception) { Timeout::Error }
300
306
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tddium_client
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jay Moorthi
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-12-18 00:00:00 Z
13
+ date: 2012-01-03 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty