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 #243.1 passed

  • Ran for
AMD64
Ruby: 1.9.3
Git
This is the configuration for all of build #243, including this job
The .travis.yml file used for this job is not available
Build Config
{
  "rvm": [
    "1.9.3",
    "2.0.0",
    "2.1.0",
    "jruby-18mode",
    "jruby-19mode",
    "rbx",
    "jruby-head"
  ],
  "matrix": {
    "allow_failures": [
      {
        "rvm": "jruby-18mode"
      },
      {
        "rvm": "jruby-head"
      }
    ]
  },
  "language": "ruby",
  "before_install": [
    "gem update bundler"
  ]
}