retry_block 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module RetryBlock
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
data/lib/retry_block.rb CHANGED
@@ -3,7 +3,7 @@ require "retry_block/version"
3
3
  module Kernel
4
4
  def retry_block (opts={}, &block)
5
5
  opts = {
6
- :attempts => 1, # Number of times to try block. Nil means to retry forever until success
6
+ :attempts => nil, # Number of times to try block. Nil means to retry forever until success
7
7
  :sleep => 0, # Seconds to sleep between attempts
8
8
  :catch => Exception, # An exception or array of exceptions to listen for
9
9
  :fail_callback => nil # Proc/lambda that gets executed between attempts
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: retry_block
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alfred J. Fazio