RubyGems.org

attempt

0.2.0

The attempt library provides a thin wrapper for the typical begin/rescue/sleep/retry dance. Use this in order to robustly handle blocks of code that could briefly flake out, such as a socket or database connection, where it's often better to try again after a brief period rather than fail immediately.

installgem install attempt
Authors

Daniel J. Berger

15,296 total downloads 9,624 for this version
Owners

Aee77dba395ece0a04c688b05b07cd6318813f71506ebad74179bf8c5a136696

Gemfile
gem 'attempt', '~> 0.2.0'
Versions
  1. 0.2.0 September 26, 2009 (7 KB)
  2. 0.1.2 August 1, 2009 (6 KB)
  3. 0.1.1 July 31, 2007 (5.5 KB)
  4. 0.1.0 June 9, 2006 (5.5 KB)
Runtime Dependencies
  1. structured_warnings >= 0
Development Dependencies
  1. test-unit >= 2.0.3