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 +4 -4
- data/easybill.gemspec +1 -0
- data/lib/easybill/client.rb +7 -1
- data/lib/easybill/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca7d4b4cb8b866977579915e0e72d68cb4fe9460
|
4
|
+
data.tar.gz: f0bccb9e31b045141941c2ab0e5dc97dc772d005
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
data/lib/easybill/client.rb
CHANGED
@@ -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 =
|
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)
|
data/lib/easybill/version.rb
CHANGED
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.
|
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-
|
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
|