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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 19a08019dd457c82108aec7727e59c7e98d4cac5
4
- data.tar.gz: d2071df16f4c7e1c937679174f0ab27d01a0be70
2
+ SHA256:
3
+ metadata.gz: b5deff02b2002d5dad960e5a1f817d14fe1cc1278810237e66dd6f235482b7b5
4
+ data.tar.gz: f17e4c4db3e017fd56839bb1ec97f8b2f871e0ad37150119c61bb26123f70924
5
5
  SHA512:
6
- metadata.gz: 8120f332cf3592e7cdc4224950890e2b0f6c93b68a24421ba451a0a14ba95dec5aa54565e9f0a87629a1d0b2e1d3c86a6fe696027890f8f74035e8f7c1fe746f
7
- data.tar.gz: 9a49bb037e1b50d7abee839cbbb28698c65cd48fa15eb938ff737845b20925cdd850ff5c781352b87e1193d3aeacd6de8bea7f7776088184558c268d9c1961d7
6
+ metadata.gz: 9a60d9a93136df41d80db54cca2ebc3891bc8770983977cbfacffbc1d79f2e5cb1456bd83b6829dc97337cf449e4b53201f739aee9e102db8ce56737f33482a8
7
+ data.tar.gz: 2b52cf2832a24c84260a437b723a7506ce1b4255c00725e4943e5fa62295321b78adaf3f53d4e19400dda1416b4eb8b2423c55968305c1f89dc03129b50adb4a
@@ -1,3 +1,3 @@
1
1
  module Belzebuth
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -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 = 1
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 = [@sleep_time +1, @max_sleep_time].min
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.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-05-12 00:00:00.000000000 Z
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.4.8
134
+ rubygems_version: 2.6.11
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Small wrapper for testing external process