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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8335e0770899a3b55e53c76dd3d971f44aa00609b25131147063f86a27cef04d
4
- data.tar.gz: fb986a63f272e2f6071e477bcedaa6e4d9cc01b7750b3164dce7f83404fb2e90
3
+ metadata.gz: 0a6aefd3a6bbe9a838df1ff38fe32d3a2ad62e2fadf6e7d220c0e77d0d3e5082
4
+ data.tar.gz: d917ec598609ecf1b60f3592a6013f313e1165f107f847351fcf651d1e6189f5
5
5
  SHA512:
6
- metadata.gz: 5c1666693b48cedae86d152f695249a3ca0d793aaea0fac53321c45743e49ff98d1fe13334b49fae3e1edbd7efdb4742f3919ca47cb242d18364e5ca0c6794ac
7
- data.tar.gz: c5986aba8797b57094a9cf7129175c61f4e02d07364141ffd2fdc1c93b0738edc315bfc4dd9c8dc7e344b146d180f46ffcf7c7297324e3137042d2135e8f7929
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.4+. You may choose to
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 exec rake bundleupdate
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.4+.
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.4 and
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.
@@ -434,10 +434,10 @@ module Google
434
434
  str = data.strip
435
435
  return str if ::File.file? str
436
436
  json = begin
437
- ::JSON.parse str
438
- rescue ::StandardError
439
- nil
440
- end
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 = ::Proc.new { true }
492
+ OPEN_VALIDATOR = proc { true }
493
493
 
494
494
  ##
495
495
  # @private a list of key names that are technically illegal because
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Core
19
- VERSION = "1.5.0".freeze
19
+ VERSION = "1.6.1".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -48,9 +48,10 @@ module Google
48
48
 
49
49
  def initialize keyfile, scope: nil
50
50
  verify_keyfile_provided! keyfile
51
- if keyfile.is_a? Signet::OAuth2::Client
51
+ case keyfile
52
+ when Signet::OAuth2::Client
52
53
  @client = keyfile
53
- elsif keyfile.is_a? Hash
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
- Hash[hash.map { |k, v| [k.to_s, v] }]
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.5.0
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: 2020-01-09 00:00:00.000000000 Z
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.24.0
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.24.0
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.10'
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.10'
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.4'
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.0.6
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