README.md in patiently_try-0.1.0 vs README.md in patiently_try-0.1.1
- old
+ new
@@ -24,10 +24,11 @@
Without any options:
```ruby
require "net/http"
+include PatientlyTry
patiently_try do
Net::HTTP.get(URI("http://google.com"))
end
```
@@ -41,9 +42,10 @@
* `catch: [StandardError]` - If you want only specific errors to be caught (value can be an array or a single error).
* `logging: true` - If you do not want any output, set this to false.
```ruby
require "net/http"
+include PatientlyTry
patiently_try retries: 2, wait: 1, catch: [Timeout::Error, Errno::ECONNREFUSED] do
Net::HTTP.get(URI("http://10.0.0.0"))
end
```