robertsosinski/retryable — pull request #2 by kamui (2012-02-09 09:05:54+00:00)
Title: Extend the Kernel module with the #retryable method

I'm not sure if you would be interested in my fork, but I'm sending you this pull request anyway.

I moved #retryable into the Kernel module so that you can use it as if it were a built in construct in Ruby. I feel like the capability it provides would be better suited without having to include it in your classes or having to call it with the Retryable namespace.

I also updated the gemspec, added a Gemfile and updated your Raketask file to what's generated from Bundler these days. I made sure all the tests pass and updated the README and CHANGELOG. I bumped the version to 1.2.0 too so you can release a new gem if you wanted to.

I renamed the lib/retryable.rb to lib/retryable-rb.rb and renamed references from Retryable to RetryableRB, because there's already a retryable gem and this name change allows you to do:

gem 'retryable-rb' # in your Gemfile without needing to add :require => 'retryable'

Thanks for a useful gem.