easybill 0.2.18 → 0.2.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18aed9fd911fb721123bef8409e5c6b4b82f4abf
4
- data.tar.gz: 785f4ef18fb4c089a99b7864c4dd92fc6c427494
3
+ metadata.gz: ca7d4b4cb8b866977579915e0e72d68cb4fe9460
4
+ data.tar.gz: f0bccb9e31b045141941c2ab0e5dc97dc772d005
5
5
  SHA512:
6
- metadata.gz: 51e4f72f81a81eca6f105e254412d26c1710e5318ba09b4effa61fed9810d601eed0cb701e2a0dcd81fa625741e583982b8e4fd7472cec496a1817325da4c02a
7
- data.tar.gz: 3ea58b28ab0616912cd69c486da2452d68325720c9048fecc5c6fbccac53d9f709d062f832d52703c003a186467abbfa437744f3bb9f74d95525cfcb27857ad4
6
+ metadata.gz: 9c5fa00d1dfd51119fed3f99f5606e3e2cf039b105cd9050c70281bca67d9094d6c25abe41242e75881463faaae4de469d31dd360450af77fb751940fe379a8f
7
+ data.tar.gz: fa3268bbfb3f3338b539479be787b8555c64e60ccb64e663a59f56db117898f4cb91b44274a494c08030ffc31dec4b92d7527ca2eb26ecc66e3490e4c9994d0c
data/easybill.gemspec CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.add_runtime_dependency 'sekken'
21
21
  gem.add_runtime_dependency 'php-serialize'
22
22
  gem.add_runtime_dependency 'local_copy'
23
+ gem.add_runtime_dependency 'retryable'
23
24
 
24
25
  gem.add_development_dependency 'pry'
25
26
  gem.add_development_dependency 'rspec', '>= 3.0.0'
@@ -1,4 +1,5 @@
1
1
  require 'local_copy'
2
+ require 'retryable'
2
3
 
3
4
  module Easybill
4
5
  class Client
@@ -60,7 +61,12 @@ module Easybill
60
61
  private
61
62
 
62
63
  def save_call
63
- response = yield
64
+ response = Retryable.retryable(
65
+ tries: 10, sleep: -> n { 2**n },
66
+ on: HTTPClient::ConnectTimeoutError
67
+ ) do
68
+ yield
69
+ end
64
70
 
65
71
  begin
66
72
  if response.body.is_a?(Hash) && response.body.key?(:fault)
@@ -1,3 +1,3 @@
1
1
  module Easybill
2
- VERSION = '0.2.18'
2
+ VERSION = '0.2.19'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easybill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.2.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-16 00:00:00.000000000 Z
11
+ date: 2015-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sekken
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: retryable
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: pry
57
71
  requirement: !ruby/object:Gem::Requirement