google-cloud-core 1.5.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +2 -2
- data/README.md +2 -2
- data/lib/google/cloud/config.rb +5 -5
- data/lib/google/cloud/core/version.rb +1 -1
- data/lib/google/cloud/credentials.rb +4 -3
- metadata +16 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a6aefd3a6bbe9a838df1ff38fe32d3a2ad62e2fadf6e7d220c0e77d0d3e5082
|
4
|
+
data.tar.gz: d917ec598609ecf1b60f3592a6013f313e1165f107f847351fcf651d1e6189f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea59ba9abcad4aacffb5125586db4aae24a091e9593a705398a95b1039385e42938620f4b9f6816e230e3ac5c2f0b15e4bcdafd2c20e5aef536785ef2f6a92e2
|
7
|
+
data.tar.gz: bf67a1ba3539e197df0cbdd15ee51c39e3dba9e31e27a1baa02253c826bb90ebec25ee28939776e22f1d2672f78d0f4f6935b2a5c0758bad98246ee7e88e9a57
|
data/CONTRIBUTING.md
CHANGED
@@ -24,7 +24,7 @@ be able to accept your pull requests.
|
|
24
24
|
In order to use the google-cloud console and run the project's tests,
|
25
25
|
there is a small amount of setup:
|
26
26
|
|
27
|
-
1. Install Ruby. google-cloud requires Ruby 2.
|
27
|
+
1. Install Ruby. google-cloud requires Ruby 2.5+. You may choose to
|
28
28
|
manage your Ruby and gem installations with [RVM](https://rvm.io/),
|
29
29
|
[rbenv](https://github.com/rbenv/rbenv), or
|
30
30
|
[chruby](https://github.com/postmodern/chruby).
|
@@ -45,7 +45,7 @@ there is a small amount of setup:
|
|
45
45
|
|
46
46
|
```sh
|
47
47
|
$ cd google-cloud-core/
|
48
|
-
$ bundle
|
48
|
+
$ bundle install
|
49
49
|
```
|
50
50
|
|
51
51
|
## Console
|
data/README.md
CHANGED
@@ -9,11 +9,11 @@ information about the individual google-cloud gems.
|
|
9
9
|
|
10
10
|
## Supported Ruby Versions
|
11
11
|
|
12
|
-
This library is supported on Ruby 2.
|
12
|
+
This library is supported on Ruby 2.5+.
|
13
13
|
|
14
14
|
Google provides official support for Ruby versions that are actively supported
|
15
15
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or in
|
16
|
-
security maintenance, and not end of life. Currently, this means Ruby 2.
|
16
|
+
security maintenance, and not end of life. Currently, this means Ruby 2.5 and
|
17
17
|
later. Older versions of Ruby _may_ still work, but are unsupported and not
|
18
18
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
19
19
|
about the Ruby support schedule.
|
data/lib/google/cloud/config.rb
CHANGED
@@ -434,10 +434,10 @@ module Google
|
|
434
434
|
str = data.strip
|
435
435
|
return str if ::File.file? str
|
436
436
|
json = begin
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
437
|
+
::JSON.parse str
|
438
|
+
rescue ::StandardError
|
439
|
+
nil
|
440
|
+
end
|
441
441
|
return json if json.is_a? ::Hash
|
442
442
|
end
|
443
443
|
nil
|
@@ -489,7 +489,7 @@ module Google
|
|
489
489
|
##
|
490
490
|
# @private A validator that allows all values
|
491
491
|
#
|
492
|
-
OPEN_VALIDATOR =
|
492
|
+
OPEN_VALIDATOR = proc { true }
|
493
493
|
|
494
494
|
##
|
495
495
|
# @private a list of key names that are technically illegal because
|
@@ -48,9 +48,10 @@ module Google
|
|
48
48
|
|
49
49
|
def initialize keyfile, scope: nil
|
50
50
|
verify_keyfile_provided! keyfile
|
51
|
-
|
51
|
+
case keyfile
|
52
|
+
when Signet::OAuth2::Client
|
52
53
|
@client = keyfile
|
53
|
-
|
54
|
+
when Hash
|
54
55
|
hash = stringify_hash_keys keyfile
|
55
56
|
hash["scope"] ||= scope
|
56
57
|
@client = init_client hash
|
@@ -114,7 +115,7 @@ module Google
|
|
114
115
|
##
|
115
116
|
# returns a new Hash with string keys instead of symbol keys.
|
116
117
|
def stringify_hash_keys hash
|
117
|
-
|
118
|
+
hash.transform_keys(&:to_s)
|
118
119
|
end
|
119
120
|
|
120
121
|
def client_options options
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,22 +9,28 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-env
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.0'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 3.a
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- - "
|
28
|
+
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '1.0'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.a
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: google-cloud-errors
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,28 +65,28 @@ dependencies:
|
|
59
65
|
requirements:
|
60
66
|
- - "~>"
|
61
67
|
- !ruby/object:Gem::Version
|
62
|
-
version: 1.
|
68
|
+
version: 1.25.1
|
63
69
|
type: :development
|
64
70
|
prerelease: false
|
65
71
|
version_requirements: !ruby/object:Gem::Requirement
|
66
72
|
requirements:
|
67
73
|
- - "~>"
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.
|
75
|
+
version: 1.25.1
|
70
76
|
- !ruby/object:Gem::Dependency
|
71
77
|
name: minitest
|
72
78
|
requirement: !ruby/object:Gem::Requirement
|
73
79
|
requirements:
|
74
80
|
- - "~>"
|
75
81
|
- !ruby/object:Gem::Version
|
76
|
-
version: '5.
|
82
|
+
version: '5.14'
|
77
83
|
type: :development
|
78
84
|
prerelease: false
|
79
85
|
version_requirements: !ruby/object:Gem::Requirement
|
80
86
|
requirements:
|
81
87
|
- - "~>"
|
82
88
|
- !ruby/object:Gem::Version
|
83
|
-
version: '5.
|
89
|
+
version: '5.14'
|
84
90
|
- !ruby/object:Gem::Dependency
|
85
91
|
name: minitest-autotest
|
86
92
|
requirement: !ruby/object:Gem::Requirement
|
@@ -209,14 +215,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
209
215
|
requirements:
|
210
216
|
- - ">="
|
211
217
|
- !ruby/object:Gem::Version
|
212
|
-
version: '2.
|
218
|
+
version: '2.5'
|
213
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
220
|
requirements:
|
215
221
|
- - ">="
|
216
222
|
- !ruby/object:Gem::Version
|
217
223
|
version: '0'
|
218
224
|
requirements: []
|
219
|
-
rubygems_version: 3.
|
225
|
+
rubygems_version: 3.4.19
|
220
226
|
signing_key:
|
221
227
|
specification_version: 4
|
222
228
|
summary: Internal shared library for google-cloud-ruby
|