Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Pull request Compare This branch is 1 commit behind carwoo:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
Guardfile
README.md
retry_anything.gemspec

README.md

RetryAnything

Description and usage:

require 'retry_anything'

RetryAnything.perform(RuntimeError, :retries => 2, lambda { Logger.error 'Failed' }) do
  # Do something that fails intermittently
end

Bundle

gem 'retry_anything', :git => 'git@github.com:carwoo/retry_anything.git'

Installing from source

gem build retry_anything.gemspec
gem install retry_anything-0.0.1.gem

Running the tests

Install the rspec gem

bundle

Run the spec

rspec spec/retry_anything_spec.rb

Or automatically run the tests when any file changes

bundle exec guard
Something went wrong with that request. Please try again.