google-cloud-core 1.6.1 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -5
- data/lib/google/cloud/config.rb +14 -8
- data/lib/google/cloud/core/version.rb +1 -1
- metadata +4 -144
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 500a161dbfd04537d19002ad0fe675eee039ebd270a9fe71e7ed541b0285b362
|
4
|
+
data.tar.gz: fe13c81581a4e68c175df7f33973bd7d80c84e6c7d527b8905a7cecd38f4cb23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f06f0e3019d700407b7f62f22d220d62aa861062ceda3a06b7d4f1d9a95b93dafd7ab08466b828af174896e187b3e1c2271321da9b7ed5b7043af7091a89a94
|
7
|
+
data.tar.gz: 79279005b064fb7ddfced51f5745701a139ea3b03886f314272564d733ef59149110c31bcc584e64bfca36b6ef56d2ef391a919e288c0f7c5f3a9740a703d09b
|
data/README.md
CHANGED
@@ -45,8 +45,6 @@ This library is licensed under Apache 2.0. Full license text is available in
|
|
45
45
|
|
46
46
|
## Support
|
47
47
|
|
48
|
-
Please
|
49
|
-
Github](https://github.com/googleapis/google-cloud-ruby/issues).
|
50
|
-
|
51
|
-
questions](http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby)
|
52
|
-
about the client or APIs on [StackOverflow](http://stackoverflow.com).
|
48
|
+
Please report bugs
|
49
|
+
[on Github](https://github.com/googleapis/google-cloud-ruby/issues).
|
50
|
+
You can also ask questions about the client or APIs on StackOverflow.
|
data/lib/google/cloud/config.rb
CHANGED
@@ -257,8 +257,7 @@ module Google
|
|
257
257
|
@values[key] = @defaults[key]
|
258
258
|
@values[key].reset! if @validators[key] == SUBCONFIG
|
259
259
|
elsif @values.key? key
|
260
|
-
warn! "Key #{key.inspect} has not been added, but has a value."
|
261
|
-
" Removing the value."
|
260
|
+
warn! "Key #{key.inspect} has not been added, but has a value. Removing the value."
|
262
261
|
@values.delete key
|
263
262
|
else
|
264
263
|
warn! "Key #{key.inspect} does not exist. Nothing to reset."
|
@@ -484,6 +483,16 @@ module Google
|
|
484
483
|
false
|
485
484
|
end
|
486
485
|
|
486
|
+
##
|
487
|
+
# @private
|
488
|
+
# Implement standard is_a check
|
489
|
+
#
|
490
|
+
# @return [boolean]
|
491
|
+
#
|
492
|
+
def is_a? klass
|
493
|
+
klass == Config
|
494
|
+
end
|
495
|
+
|
487
496
|
private
|
488
497
|
|
489
498
|
##
|
@@ -521,8 +530,7 @@ module Google
|
|
521
530
|
key_str = key.to_s
|
522
531
|
key = key.to_sym
|
523
532
|
if key_str !~ /^[a-zA-Z]\w*$/ || ILLEGAL_KEYS.include?(key)
|
524
|
-
warn! "Illegal key name: #{key_str.inspect}. Method dispatch will"
|
525
|
-
" not work for this key."
|
533
|
+
warn! "Illegal key name: #{key_str.inspect}. Method dispatch will not work for this key."
|
526
534
|
end
|
527
535
|
warn! "Key #{key.inspect} already exists. It will be replaced." if @validators.key? key
|
528
536
|
key
|
@@ -567,13 +575,11 @@ module Google
|
|
567
575
|
case validator
|
568
576
|
when ::Proc
|
569
577
|
unless validator.call value
|
570
|
-
warn! "Invalid value #{value.inspect} for key #{key.inspect}."
|
571
|
-
" Setting anyway."
|
578
|
+
warn! "Invalid value #{value.inspect} for key #{key.inspect}. Setting anyway."
|
572
579
|
end
|
573
580
|
when Config
|
574
581
|
if value != validator
|
575
|
-
warn! "Key #{key.inspect} refers to a subconfig and shouldn't"
|
576
|
-
" be changed. Setting anyway."
|
582
|
+
warn! "Key #{key.inspect} refers to a subconfig and shouldn't be changed. Setting anyway."
|
577
583
|
end
|
578
584
|
else
|
579
585
|
warn! "Key #{key.inspect} has not been added. Setting anyway."
|
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.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-env
|
@@ -45,146 +45,6 @@ dependencies:
|
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.0'
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: autotest-suffix
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.1'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.1'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: google-style
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.25.1
|
69
|
-
type: :development
|
70
|
-
prerelease: false
|
71
|
-
version_requirements: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 1.25.1
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: minitest
|
78
|
-
requirement: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '5.14'
|
83
|
-
type: :development
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '5.14'
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: minitest-autotest
|
92
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.0'
|
97
|
-
type: :development
|
98
|
-
prerelease: false
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '1.0'
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: minitest-focus
|
106
|
-
requirement: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1.1'
|
111
|
-
type: :development
|
112
|
-
prerelease: false
|
113
|
-
version_requirements: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '1.1'
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: minitest-rg
|
120
|
-
requirement: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '5.2'
|
125
|
-
type: :development
|
126
|
-
prerelease: false
|
127
|
-
version_requirements: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '5.2'
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: redcarpet
|
134
|
-
requirement: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '3.0'
|
139
|
-
type: :development
|
140
|
-
prerelease: false
|
141
|
-
version_requirements: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '3.0'
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: simplecov
|
148
|
-
requirement: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0.9'
|
153
|
-
type: :development
|
154
|
-
prerelease: false
|
155
|
-
version_requirements: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0.9'
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: yard
|
162
|
-
requirement: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0.9'
|
167
|
-
type: :development
|
168
|
-
prerelease: false
|
169
|
-
version_requirements: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0.9'
|
174
|
-
- !ruby/object:Gem::Dependency
|
175
|
-
name: yard-doctest
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: 0.1.13
|
181
|
-
type: :development
|
182
|
-
prerelease: false
|
183
|
-
version_requirements: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: 0.1.13
|
188
48
|
description: google-cloud-core is the internal shared library for google-cloud-ruby.
|
189
49
|
email:
|
190
50
|
- mike@blowmage.com
|
@@ -215,14 +75,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
215
75
|
requirements:
|
216
76
|
- - ">="
|
217
77
|
- !ruby/object:Gem::Version
|
218
|
-
version: '2.
|
78
|
+
version: '2.7'
|
219
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
80
|
requirements:
|
221
81
|
- - ">="
|
222
82
|
- !ruby/object:Gem::Version
|
223
83
|
version: '0'
|
224
84
|
requirements: []
|
225
|
-
rubygems_version: 3.
|
85
|
+
rubygems_version: 3.5.6
|
226
86
|
signing_key:
|
227
87
|
specification_version: 4
|
228
88
|
summary: Internal shared library for google-cloud-ruby
|