googleauth 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/lib/googleauth.rb +0 -72
- data/lib/googleauth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 325c457e30389be37d7d08f8e7da585780539fea
|
|
4
|
+
data.tar.gz: bd29ed6004d5bb99453d79b27680023330a4b3cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 54cbbef4fb2100cb155292f154643d7775eb9e073cdef3b0fc344c2c0da8b2d206310295ab8ce0b76fcdebe58e7923e85dfab0eec107f5edf0dd1c8813d55798
|
|
7
|
+
data.tar.gz: eda38cc1f6995453f176440a58c2a19fde48d651f8a9c9f9b896b9be5ba923679d1e33dd4488fb3a91eb5f2a8afe6727257b07f525ee6724d25ebe657397fd56
|
data/CHANGELOG.md
CHANGED
data/lib/googleauth.rb
CHANGED
|
@@ -33,75 +33,3 @@ require 'googleauth/credentials'
|
|
|
33
33
|
require 'googleauth/default_credentials'
|
|
34
34
|
require 'googleauth/user_authorizer'
|
|
35
35
|
require 'googleauth/web_user_authorizer'
|
|
36
|
-
|
|
37
|
-
module Google
|
|
38
|
-
# Module Auth provides classes that provide Google-specific authorization
|
|
39
|
-
# used to access Google APIs.
|
|
40
|
-
module Auth
|
|
41
|
-
# rubocop:disable MethodDefParentheses
|
|
42
|
-
|
|
43
|
-
# On March 31, 2019, set supported version to 2.4 and recommended to 2.6.
|
|
44
|
-
# Thereafter, follow the MRI support schedule: supported means non-EOL,
|
|
45
|
-
# and recommended means in normal (rather than security) maintenance.
|
|
46
|
-
# See https://www.ruby-lang.org/en/downloads/branches/
|
|
47
|
-
##
|
|
48
|
-
# Minimum "supported" Ruby version (non-EOL)
|
|
49
|
-
# @private
|
|
50
|
-
#
|
|
51
|
-
SUPPORTED_VERSION_THRESHOLD = '1.9'.freeze
|
|
52
|
-
##
|
|
53
|
-
# Minimum "recommended" Ruby version (normal maintenance)
|
|
54
|
-
# @private
|
|
55
|
-
#
|
|
56
|
-
RECOMMENDED_VERSION_THRESHOLD = '2.4'.freeze
|
|
57
|
-
##
|
|
58
|
-
# Check Ruby version and emit a warning if it is old
|
|
59
|
-
# @private
|
|
60
|
-
#
|
|
61
|
-
def self.warn_on_old_ruby_version
|
|
62
|
-
return if ENV['GOOGLE_CLOUD_SUPPRESS_RUBY_WARNINGS']
|
|
63
|
-
cur_version = Gem::Version.new RUBY_VERSION
|
|
64
|
-
if cur_version < Gem::Version.new(SUPPORTED_VERSION_THRESHOLD)
|
|
65
|
-
warn_unsupported_ruby cur_version, RECOMMENDED_VERSION_THRESHOLD
|
|
66
|
-
elsif cur_version < Gem::Version.new(RECOMMENDED_VERSION_THRESHOLD)
|
|
67
|
-
warn_nonrecommended_ruby cur_version, RECOMMENDED_VERSION_THRESHOLD
|
|
68
|
-
end
|
|
69
|
-
rescue ArgumentError
|
|
70
|
-
warn 'Unable to determine current Ruby version.'
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
##
|
|
74
|
-
# Print a warning for an EOL version of Ruby
|
|
75
|
-
# @private
|
|
76
|
-
#
|
|
77
|
-
def self.warn_unsupported_ruby cur_version, recommended_version
|
|
78
|
-
warn "WARNING: You are running Ruby #{cur_version}, which has reached" \
|
|
79
|
-
' end-of-life and is no longer supported by Ruby Core.'
|
|
80
|
-
warn 'The Google Cloud API clients work best on supported versions of' \
|
|
81
|
-
' Ruby. It is strongly recommended that you upgrade to Ruby' \
|
|
82
|
-
" #{recommended_version} or later."
|
|
83
|
-
warn 'See https://www.ruby-lang.org/en/downloads/branches/ for more' \
|
|
84
|
-
' info on the Ruby maintenance schedule.'
|
|
85
|
-
warn 'To suppress this message, set the' \
|
|
86
|
-
' GOOGLE_CLOUD_SUPPRESS_RUBY_WARNINGS environment variable.'
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
##
|
|
90
|
-
# Print a warning for a supported but nearing EOL version of Ruby
|
|
91
|
-
# @private
|
|
92
|
-
#
|
|
93
|
-
def self.warn_nonrecommended_ruby cur_version, recommended_version
|
|
94
|
-
warn "WARNING: You are running Ruby #{cur_version}, which is nearing" \
|
|
95
|
-
' end-of-life.'
|
|
96
|
-
warn 'The Google Cloud API clients work best on supported versions of' \
|
|
97
|
-
" Ruby. Consider upgrading to Ruby #{recommended_version} or later."
|
|
98
|
-
warn 'See https://www.ruby-lang.org/en/downloads/branches/ for more' \
|
|
99
|
-
' info on the Ruby maintenance schedule.'
|
|
100
|
-
warn 'To suppress this message, set the' \
|
|
101
|
-
' GOOGLE_CLOUD_SUPPRESS_RUBY_WARNINGS environment variable.'
|
|
102
|
-
end
|
|
103
|
-
# rubocop:enable MethodDefParentheses
|
|
104
|
-
end
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
Google::Auth.warn_on_old_ruby_version
|
data/lib/googleauth/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: googleauth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tim Emiola
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-08-
|
|
11
|
+
date: 2018-08-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
182
182
|
version: '0'
|
|
183
183
|
requirements: []
|
|
184
184
|
rubyforge_project:
|
|
185
|
-
rubygems_version: 2.
|
|
185
|
+
rubygems_version: 2.2.5
|
|
186
186
|
signing_key:
|
|
187
187
|
specification_version: 4
|
|
188
188
|
summary: Google Auth Library for Ruby
|