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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTQ3ZDA3YmRlZDlhMjYwNjhmYjJhMWU4ZTI3ZDJlODdjMmIzOTA1NA==
4
+ ZDE5NGRlODRjYjAwZmU4OTcwMmIyZTcyZmIzZTQyZGI2ZDliMzg2Zg==
5
5
  data.tar.gz: !binary |-
6
- N2U0ZWI4N2M5MWZlMDY2MmYxZmI4OTY1YzM0YTc3ZjJlZjBjNDc1ZA==
7
- !binary "U0hBNTEy":
6
+ YTFlNjIxNjJiNTE3ZGJmNWJlNWIyNGRjMjk0NzgzYmY5MjVmYmJiMw==
7
+ SHA512:
8
8
  metadata.gz: !binary |-
9
- NmFlNWRhNjlmN2E1NTQ4ZDIwN2JlMjc4NjU0N2MxOGY0YTc4OTNiOGQ5ZGMw
10
- Mzg1NzdlYjAwZmE5N2I3M2ZkMGJlOTMzNDdmZGMxOWZkMTA5Y2YzNmY5YTNk
11
- NmIwMTQ5NzBhZWU3NzdlZGY1ZGU2NTEwNzZkNmUyZDMxNjZlNDI=
9
+ ODJlODY0MTNlNDMwNzU4NTYxYjM1MTg2NWZmODI4ZmYwNWY3NWNhM2MyMzc4
10
+ NDc5NTg2ZmVhZWFjMWE4ODVhMTAxZDM4NDZmYjE2NTJhYzQxZTRlYzIyMWIz
11
+ NzE0NzA1YTJkZjdjMDA3Y2QzODM4NGU0ODUwZmQ4OTI1N2YzOTY=
12
12
  data.tar.gz: !binary |-
13
- NDY4ZmE2YmIzM2FhZWNkMjc5NzNlZTYxNzRlMjU2MzI4OGZhNGNhMzRlNjM1
14
- MDIyYTk1MmJmYTU5MjcxZDc2NzRjMjg5NTkyNTRiYWU1OTdhMDFkOGE2OTcx
15
- MmRjNmZlMDFkMGEwNmYwODkzMjgwY2Y5MjZhMjVjNTM4ZGE5Mzg=
13
+ NThjYjdmZTIzNDllNjAxZmNkYmRjNmUwMTYzNjg2ZGNkY2RhNTNlMWI2MDg4
14
+ MWVhOTg0ZjdhY2JkOGVmOGJlYjY4NTg5YmQ5ZWNiY2MxMDJlOTg1NGJjMjk5
15
+ NzA3NTE2ZmMzYzUxOTY4MmFlZDIxYjAxY2Q1OTc1YjMyMzY2ZGY=
@@ -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 @interval > 0 && count < @attempts
81
+ Kernel.sleep @interval if count < @attempts && @interval > 0
82
82
  count += 1
83
83
  end
84
84
  end
@@ -1,3 +1,3 @@
1
1
  module TryUntil
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
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.2
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-09-27 00:00:00.000000000 Z
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.7.1
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.7.1
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.0.3
90
+ rubygems_version: 2.1.11
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Retry and matching logic