google-cloud-core 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud.rb +26 -9
- data/lib/google/cloud/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbd2ea954800c84bbb3e72339d606dfe01d2aaeeb67d31adf894214ab45a53e2
|
4
|
+
data.tar.gz: 264ffede247b701716baff0fe40be8fbb31f3da188994d356c5338108a9e7e88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27a48ec70300d33c3b9fdb788273a32e8d64cab7b4ed02397f53bfa1f77e9d5c763a265fd164c6a2d706345f8fd421bc63ec4eb5d2fc59bc5ad2662ee1293c75
|
7
|
+
data.tar.gz: a891af116a638382cd08248d3c281eb0eb22533afc00a81ed2eeac4c6e773e11bb9b9fad74ce11a32e4da7de978d0eb036d0ba589adbbf75c0c668fd0cd0ab22
|
data/lib/google/cloud.rb
CHANGED
@@ -186,6 +186,31 @@ module Google
|
|
186
186
|
warn "To suppress this message, set the" \
|
187
187
|
" GOOGLE_CLOUD_SUPPRESS_RUBY_WARNINGS environment variable."
|
188
188
|
end
|
189
|
+
|
190
|
+
##
|
191
|
+
# Safely load all google-cloud-* gems.
|
192
|
+
# @private
|
193
|
+
#
|
194
|
+
def self.auto_load_gems
|
195
|
+
original_verbosity = $VERBOSE
|
196
|
+
$VERBOSE = nil
|
197
|
+
|
198
|
+
auto_load_files.each { |auto_load_file| require auto_load_file }
|
199
|
+
|
200
|
+
$VERBOSE = original_verbosity
|
201
|
+
end
|
202
|
+
|
203
|
+
##
|
204
|
+
# Find all google-cloud-* files for available gems.
|
205
|
+
# @private
|
206
|
+
#
|
207
|
+
def self.auto_load_files
|
208
|
+
if Gem.respond_to? :find_latest_files
|
209
|
+
return Gem.find_latest_files "google-cloud-*.rb"
|
210
|
+
end
|
211
|
+
# Ruby 2.0 does not have Gem.find_latest_files
|
212
|
+
Gem.find_files "google-cloud-*.rb"
|
213
|
+
end
|
189
214
|
end
|
190
215
|
end
|
191
216
|
|
@@ -196,12 +221,4 @@ Google::Cloud.init_configuration
|
|
196
221
|
Google::Cloud.warn_on_old_ruby_version
|
197
222
|
|
198
223
|
# Auto-load all Google Cloud service gems.
|
199
|
-
|
200
|
-
Gem.find_latest_files "google-cloud-*.rb"
|
201
|
-
else
|
202
|
-
# Ruby 2.0 does not have Gem.find_latest_files
|
203
|
-
Gem.find_files "google-cloud-*.rb"
|
204
|
-
end
|
205
|
-
auto_load_files.each do |google_cloud_service|
|
206
|
-
require google_cloud_service
|
207
|
-
end
|
224
|
+
Google::Cloud.auto_load_gems
|
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.2.
|
4
|
+
version: 1.2.2
|
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: 2018-
|
12
|
+
date: 2018-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-env
|