nfedyashev/retryable — pull request #5 by toddsifleet (2013-07-02 17:31:51+00:00)
Title: Allow the user to supply a lambda/Proc as the :matching paramater

Allow the user to supply a lambda/Proc as the :matching paramater. If
this function returns true then catch the error, false raise the error.

I thought this was a useful addition to retryable because I ran into a problem where if I wanted to supply a regex for one exception type it was applied to all exception types. This change allows the user to supply a lambda/proc that can contain all the logic to decide if they want to retry a specific exception.