Upgrade Memoist (#165)
This commit is contained in:
parent
7e42656b1c
commit
3802390e70
|
@ -12,11 +12,11 @@ Gem::Specification.new do |s|
|
||||||
s.homepage = 'https://github.com/google/google-auth-library-ruby'
|
s.homepage = 'https://github.com/google/google-auth-library-ruby'
|
||||||
s.summary = 'Google Auth Library for Ruby'
|
s.summary = 'Google Auth Library for Ruby'
|
||||||
s.license = 'Apache-2.0'
|
s.license = 'Apache-2.0'
|
||||||
s.description = <<-eos
|
s.description = <<-DESCRIPTION
|
||||||
Allows simple authorization for accessing Google APIs.
|
Allows simple authorization for accessing Google APIs.
|
||||||
Provide support for Application Default Credentials, as described at
|
Provide support for Application Default Credentials, as described at
|
||||||
https://developers.google.com/accounts/docs/application-default-credentials
|
https://developers.google.com/accounts/docs/application-default-credentials
|
||||||
eos
|
DESCRIPTION
|
||||||
|
|
||||||
s.files = `git ls-files`.split("\n")
|
s.files = `git ls-files`.split("\n")
|
||||||
s.test_files = `git ls-files -- spec/*`.split("\n")
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
||||||
|
@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
||||||
|
|
||||||
s.add_dependency 'faraday', '~> 0.12'
|
s.add_dependency 'faraday', '~> 0.12'
|
||||||
s.add_dependency 'jwt', '>= 1.4', '< 3.0'
|
s.add_dependency 'jwt', '>= 1.4', '< 3.0'
|
||||||
s.add_dependency 'memoist', '~> 0.12'
|
s.add_dependency 'memoist', '~> 0.16'
|
||||||
s.add_dependency 'multi_json', '~> 1.11'
|
s.add_dependency 'multi_json', '~> 1.11'
|
||||||
s.add_dependency 'os', '>= 0.9', '< 2.0'
|
s.add_dependency 'os', '>= 0.9', '< 2.0'
|
||||||
s.add_dependency 'signet', '~> 0.7'
|
s.add_dependency 'signet', '~> 0.7'
|
||||||
|
|
|
@ -35,16 +35,16 @@ module Google
|
||||||
# Module Auth provides classes that provide Google-specific authorization
|
# Module Auth provides classes that provide Google-specific authorization
|
||||||
# used to access Google APIs.
|
# used to access Google APIs.
|
||||||
module Auth
|
module Auth
|
||||||
NO_METADATA_SERVER_ERROR = <<END.freeze
|
NO_METADATA_SERVER_ERROR = <<ERROR.freeze
|
||||||
Error code 404 trying to get security access token
|
Error code 404 trying to get security access token
|
||||||
from Compute Engine metadata for the default service account. This
|
from Compute Engine metadata for the default service account. This
|
||||||
may be because the virtual machine instance does not have permission
|
may be because the virtual machine instance does not have permission
|
||||||
scopes specified.
|
scopes specified.
|
||||||
END
|
ERROR
|
||||||
UNEXPECTED_ERROR_SUFFIX = <<END.freeze
|
UNEXPECTED_ERROR_SUFFIX = <<ERROR.freeze
|
||||||
trying to get security access token from Compute Engine metadata for
|
trying to get security access token from Compute Engine metadata for
|
||||||
the default service account
|
the default service account
|
||||||
END
|
ERROR
|
||||||
|
|
||||||
# Extends Signet::OAuth2::Client so that the auth token is obtained from
|
# Extends Signet::OAuth2::Client so that the auth token is obtained from
|
||||||
# the GCE metadata server.
|
# the GCE metadata server.
|
||||||
|
|
Loading…
Reference in New Issue