belzebuth 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/belzebuth/version.rb +1 -1
- data/lib/belzebuth/wait_condition/api.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b5deff02b2002d5dad960e5a1f817d14fe1cc1278810237e66dd6f235482b7b5
|
4
|
+
data.tar.gz: f17e4c4db3e017fd56839bb1ec97f8b2f871e0ad37150119c61bb26123f70924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a60d9a93136df41d80db54cca2ebc3891bc8770983977cbfacffbc1d79f2e5cb1456bd83b6829dc97337cf449e4b53201f739aee9e102db8ce56737f33482a8
|
7
|
+
data.tar.gz: 2b52cf2832a24c84260a437b723a7506ce1b4255c00725e4943e5fa62295321b78adaf3f53d4e19400dda1416b4eb8b2423c55968305c1f89dc03129b50adb4a
|
data/lib/belzebuth/version.rb
CHANGED
@@ -9,7 +9,7 @@ module Belzebuth module WaitCondition
|
|
9
9
|
|
10
10
|
def initialize(uri, max_sleep_time = MAX_SLEEP_TIME)
|
11
11
|
@uri = URI(uri)
|
12
|
-
@sleep_time =
|
12
|
+
@sleep_time = 0
|
13
13
|
@max_sleep_time = max_sleep_time
|
14
14
|
end
|
15
15
|
|
@@ -17,7 +17,8 @@ module Belzebuth module WaitCondition
|
|
17
17
|
Net::HTTP.get(@uri)
|
18
18
|
true
|
19
19
|
rescue => e
|
20
|
-
@sleep_time
|
20
|
+
@sleep_time += 1
|
21
|
+
@sleep_time = [@sleep_time, @max_sleep_time].min
|
21
22
|
false
|
22
23
|
end
|
23
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: belzebuth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pier-Hugues Pellerin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.
|
134
|
+
rubygems_version: 2.6.11
|
135
135
|
signing_key:
|
136
136
|
specification_version: 4
|
137
137
|
summary: Small wrapper for testing external process
|