try-until 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +9 -9
- data/lib/try_until/repeatedly.rb +1 -1
- data/lib/try_until/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZDE5NGRlODRjYjAwZmU4OTcwMmIyZTcyZmIzZTQyZGI2ZDliMzg2Zg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
YTFlNjIxNjJiNTE3ZGJmNWJlNWIyNGRjMjk0NzgzYmY5MjVmYmJiMw==
|
|
7
|
+
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ODJlODY0MTNlNDMwNzU4NTYxYjM1MTg2NWZmODI4ZmYwNWY3NWNhM2MyMzc4
|
|
10
|
+
NDc5NTg2ZmVhZWFjMWE4ODVhMTAxZDM4NDZmYjE2NTJhYzQxZTRlYzIyMWIz
|
|
11
|
+
NzE0NzA1YTJkZjdjMDA3Y2QzODM4NGU0ODUwZmQ4OTI1N2YzOTY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NThjYjdmZTIzNDllNjAxZmNkYmRjNmUwMTYzNjg2ZGNkY2RhNTNlMWI2MDg4
|
|
14
|
+
MWVhOTg0ZjdhY2JkOGVmOGJlYjY4NTg5YmQ5ZWNiY2MxMDJlOTg1NGJjMjk5
|
|
15
|
+
NzA3NTE2ZmMzYzUxOTY4MmFlZDIxYjAxY2Q1OTc1YjMyMzY2ZGY=
|
data/lib/try_until/repeatedly.rb
CHANGED
|
@@ -78,7 +78,7 @@ module TryUntil
|
|
|
78
78
|
raise exception, "During final attempt (#{@attempts} configured) target returned #{exception}" if count == @attempts
|
|
79
79
|
ensure
|
|
80
80
|
unless condition_met
|
|
81
|
-
Kernel.sleep @interval if
|
|
81
|
+
Kernel.sleep @interval if count < @attempts && @interval > 0
|
|
82
82
|
count += 1
|
|
83
83
|
end
|
|
84
84
|
end
|
data/lib/try_until/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: try-until
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Markus Krogemann
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-12-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ~>
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.
|
|
33
|
+
version: 0.8.2
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - ~>
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.
|
|
40
|
+
version: 0.8.2
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: metric_fu
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
87
87
|
version: '0'
|
|
88
88
|
requirements: []
|
|
89
89
|
rubyforge_project:
|
|
90
|
-
rubygems_version: 2.
|
|
90
|
+
rubygems_version: 2.1.11
|
|
91
91
|
signing_key:
|
|
92
92
|
specification_version: 4
|
|
93
93
|
summary: Retry and matching logic
|