Commit Graph

12 Commits

Author SHA1 Message Date
Tim Emiola 1463e5f5f9 Merge pull request #33 from mr-salty/add-system-default-creds-path
Add support for a system default credentials file.
2015-07-10 15:08:19 +02:00
Tim Emiola caed076711 Merge pull request #34 from mr-salty/fix-raise-error
Fix 'raise_error' WARNINGs.
2015-07-07 15:25:14 +01:00
Todd Derr b31df0caaa Fix rubocop errors (long line wrapping). 2015-06-30 17:47:16 -04:00
Todd Derr f0de3295fc Fix some issues discovered by rubocop.
fix failures due to:
- misformatting of wrapped lines
- a superflous block (and temp dir creation) due to overzealous cut & paste.
2015-06-30 17:42:30 -04:00
Todd Derr c04e91569d Eliminate a new 'raise_error' WARNING.
I have another outstanding PR to fix these; so avoid introducing
another one here.
2015-06-29 16:56:42 -04:00
Todd Derr 60a079a41e Fix 'raise_error' WARNINGs.
rspec spews a warning when using raise_error without a specific error;
add "RuntimeError" to all of these occurrences.
2015-06-29 16:50:55 -04:00
Todd Derr 86de5fe13b Add support for a system default credentials file.
The path is:
  - windows: %ProgramData%\Google\Auth\application_default_credentials.json
  - other: /etc/google/auth/application_default_credentials.json
2015-06-29 16:35:45 -04:00
David Wilkie 15fbf92199 Fix bug where loading credentials from ENV doesn't set the credentials in the UserRefreshCredentials 2015-06-26 14:31:09 +07:00
Herbert Siojo 5061fb5add Enables reading credentials from env vars.
- ServiceAccountCredentials, ServiceAccountJwtHeaderCredentials
and UserRefreshCredentials initializers now take keyword args
via options hash.

- In `credentials_loader.rb`, refactored env var checking into
private methods

- Updated tests & added new tests.

- Fixed existing test for #from_well_known_path 'fails if
the file is invalid', where `from_env` was called instead of
`from_well_known_path`.

- Fixed rubocop errors I introduced, but two existing ones remain.

- Added entry to changelog.

- Fixed rubocop errors from code containing parallel assignments

- Updated rubocop_todo.yml to ignore parallel assignments and
trailing underscore assignments.
2015-05-21 13:38:19 -07:00
Tim Emiola 5f4cc99347 updates gem dependencies to the latest version 2015-03-23 16:36:46 -07:00
Tim Emiola bd97c23d9f Make the scope optional 2015-03-17 16:46:55 -07:00
Tim Emiola 3bd8751519 Adds a credential class that supports User Refresh Tokens 2015-03-06 15:46:59 -08:00