retry Refactor wrapper

This brings the wrapper class in line with the others.

The class is now constructed via the options passed to `#use`,
which means we don't need to change the signature of any methods,
which was not ideal.

stack = GH::Stack.build do
use GH::Retry, retries: 10
end

GH.with(stack) { GH['users/rkh] }

Also renames the `sleep` option to `wait`.

Joe Corcoran avatar Joe Corcoran

Push event #242 passed

  • Ran for
AMD64
no language set
Git

Sorry, we're having troubles fetching jobs. Please try again later.