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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0b557c72656343a1c1931542cd9cd3a3bd1fd5a82fb786c8c6468071cfefe41
4
- data.tar.gz: 620d60ecc70baba4ed88cbea048764ae4a47307b8d87f3e184aa3f0999970b60
3
+ metadata.gz: dbd2ea954800c84bbb3e72339d606dfe01d2aaeeb67d31adf894214ab45a53e2
4
+ data.tar.gz: 264ffede247b701716baff0fe40be8fbb31f3da188994d356c5338108a9e7e88
5
5
  SHA512:
6
- metadata.gz: 9fcf42cc101c71d111ad06b9f50af49715cff12264a42353edb64304dc4b54c8bec2d9f5069937eff73c21dc0f31ad03181ac42606a32266f1c7c5fb6bac2fe3
7
- data.tar.gz: 9f52bf6b7aa21cf5b14d03e5097eb389296943cdab0619f9596f1ba819ea10fadea3e940dabb82b0c3897010a0e7c54b7d0e4b53fa100ab5ed0558f75424ffd0
6
+ metadata.gz: 27a48ec70300d33c3b9fdb788273a32e8d64cab7b4ed02397f53bfa1f77e9d5c763a265fd164c6a2d706345f8fd421bc63ec4eb5d2fc59bc5ad2662ee1293c75
7
+ data.tar.gz: a891af116a638382cd08248d3c281eb0eb22533afc00a81ed2eeac4c6e773e11bb9b9fad74ce11a32e4da7de978d0eb036d0ba589adbbf75c0c668fd0cd0ab22
@@ -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
- auto_load_files = if Gem.respond_to? :find_latest_files
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
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Core
19
- VERSION = "1.2.1".freeze
19
+ VERSION = "1.2.2".freeze
20
20
  end
21
21
  end
22
22
  end
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.1
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-06-28 00:00:00.000000000 Z
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