holdon 0.1.2 → 0.1.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.
Files changed (3) hide show
  1. checksums.yaml +13 -5
  2. data/lib/holdon.rb +2 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f5f83fe4bbab6dee13e541d24541794117099e9d
4
- data.tar.gz: 7027f5cdb73faab93ef436e141ed698c8393c6c7
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZjFkY2RmYmZhODQ5NDVhNDk1ZGEzZWZlN2NmZjM5ZTI1NmMxNjIyZQ==
5
+ data.tar.gz: !binary |-
6
+ MTRmNzRjYzIyMjBlMzM4N2RmOTE4NDNhMWM1NDdkNjUyMWIxMWExZQ==
5
7
  SHA512:
6
- metadata.gz: dfff215ed5c62cdf7c91c9d8f94152b9f633f4c1d625aa7444ebf9abc617f436757e4e03efb619711c360ba3a16dddffd235ff88511f392d0520197e7477fd4e
7
- data.tar.gz: eb646f533dc57347bbf32c87915ad73493bfee3e2852c12909024a55fb1ed74cc77abf07eb6aab32e85cc4b58912c729393651f0af42e05d9f1c91d3095031a0
8
+ metadata.gz: !binary |-
9
+ OGUxOGU4M2M1MmNhZDEzNDc4OTJhYWJhYzgyNmRjZjBkYjUzMDlkYTI4ZDA3
10
+ ZGRhMGEwOWJlODYwZTNkZjA5NjkzYmQyNzM0NTQ2ZGU2MWNhOTU4ZWU0NzE0
11
+ ZTJlMTlhYmEyZDhjNGVhOTZhOTQ4YmYzOWVkZDJmNmY4ODQwNDY=
12
+ data.tar.gz: !binary |-
13
+ NGUzYjg0OTBjNTRjMmMyNmVkZTI2YmI3ZWE3Nzg3NzNjZTM0YzNmM2VhZDlm
14
+ NTk5OTBmZWFjZjllNGQ2MTZkOGY5YzYzYzVlZTk5OTQ0Y2UwODIxOGExY2Qy
15
+ MTMwNjQxYjA5OGQ2MTUwZmI0YzBjNjM2NmQ0Y2I4NjAyYjljMjA=
@@ -24,6 +24,7 @@ module HoldOn
24
24
  def self.breaker(options = {})
25
25
  timeout = options.fetch(:timeout, 30)
26
26
  interval = options.fetch(:interval, 1)
27
+ message = options.fetch(:message, '')
27
28
 
28
29
  start = Time.now
29
30
  loop do
@@ -35,7 +36,7 @@ module HoldOn
35
36
  if inv > 0
36
37
  sleep inv
37
38
  else
38
- raise Timeout
39
+ raise Timeout, message
39
40
  end
40
41
 
41
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: holdon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Lauber
@@ -27,17 +27,17 @@ require_paths:
27
27
  - lib
28
28
  required_ruby_version: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - '>='
30
+ - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0'
33
33
  required_rubygems_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - '>='
35
+ - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  requirements: []
39
39
  rubyforge_project:
40
- rubygems_version: 2.0.3
40
+ rubygems_version: 2.1.11
41
41
  signing_key:
42
42
  specification_version: 4
43
43
  summary: HoldOn until a condition is true