Skip to content

Commit

Permalink
Bump version to 3.0.5 - idiomatic infinity retrying
Browse files Browse the repository at this point in the history
  • Loading branch information
nfedyashev committed Nov 11, 2019
1 parent 16f60bb commit f957b84
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Retryable 3.0.5 ##

Instead of :infinite magic constant from now on you can just use Ruby's native infinity data type e.g. Float::INFINITY.
See https://github.com/nfedyashev/retryable/commit/16f60bb09560c9470266dca8cd47c934594a67c5
This version is backwards compatible with older versions, no changes needed in your code.

## Retryable 3.0.4 ##

Fixed typo in exception message given invalid :matching argument type https://github.com/nfedyashev/retryable/pull/29
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ end

Try the block forever.
```ruby
Retryable.retryable(tries: :infinite) do
# For ruby versions prior to 1.9.2 use :infinite symbol instead
Retryable.retryable(tries: Float::INFINITY) do
# code here
end

```

Do something, retry up to four times for either `ArgumentError` or
Expand Down
2 changes: 1 addition & 1 deletion lib/retryable/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def minor

# @return [Integer]
def patch
4
5
end

# @return [Hash]
Expand Down

0 comments on commit f957b84

Please sign in to comment.