Commit Graph

7 Commits

Author SHA1 Message Date
nicholas shook 82a4f8520c added ruby 2.3 compatability
also:

* updated rubocop and applied styling
* made small test refactorings (using the expect block notation)
* made a small refactor to remove an unnecessary ``return credentials``
* bumped the version
2016-07-13 15:45:46 -07:00
Tim Emiola 194128d220 Updates conditional logic to use a case clause 2015-04-23 11:19:16 -07:00
Tim Emiola 98816f7b67 Adds more robust checking of the status code during compute engine auth.
Currently the implementation does not verify that a 200 response is received
before attempting to parse the JSON response.

This PR updates the behaviour to fail with an authorization error, similar to
how other auth library implementations.
2015-04-23 09:50:11 -07:00
Tim Emiola f8fd5fa519 Corrects the rescue clause 2015-02-12 16:58:48 -08:00
Tim Emiola b01737abe2 Adds an explicit short timeout to on_gce?
- uses the current timeout in oauth2client/client.py
- includes the comments from that file as well
2015-02-11 21:03:37 -08:00
Tim Emiola e01b14cba8 Memoizes on_gce?
- also fixes an error in the gemspec.
2015-02-11 20:52:47 -08:00
Tim Emiola 3e60a713c5 Extract the auth library into its own project
- adds no new functionality beyond the initial attempt at providing
  Usable Auth constructors.

- adds enough packaging metadata to be able to export this library as a gem.

- next steps:
  complete usable auth implemntation of Application Default Credentials.
2015-02-11 19:23:34 -08:00