RubyGems Navigation menu

goran 0.6

Named after Goran Invanisevic, the tennis legend who won the Wimbledon after losing the final 3 times, Goran provides a simple syntax to run a block of code multiple times. E.g. * run block 'x' number of times * run until the block returns a non-nil value * run until the block does not raise an exception * run until the block returns a non-zero value, to a maximum of 3 times, and return nil if all runs return a 0 Goran is especially useful for running network calls which have unexpected outputs like 404, timeouts. It is an easy way to build in retry logic into these calls and handle cases where these calls do not succeed at all.

Versions:

  1. 0.6 - April 30, 2012 (6.5 KB)
  2. 0.5 - April 30, 2012 (4 KB)

Authors:

  • Nitesh

Owners:

E772970d92122f47fb8450b000698b5c

Sha 256 checksum:

32cf60745ed1fc9dc8f8e4fe1caf9a04f62aa9c38db037464fab6d8562095495

Total downloads 2,457

For this version 1,255

Required Ruby Version: None

Licenses:

N/A

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: