google-apis-core 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea35d9daac9481979c51a054b42778f861d4d3fa7d1a8a384e1d955d9c49e0e9
4
- data.tar.gz: 9aae36827cc936b1125aeacd887beee6ca92012e8e2c48b4a429aaac925aa775
3
+ metadata.gz: 4b72f0bd125a4b9a5bbefb344ca6906f60c2da97299f477a411f4174a5a1e125
4
+ data.tar.gz: f60c015250f7df95b17c06a13e30a038f02f63d964940fb35b1be3596b455226
5
5
  SHA512:
6
- metadata.gz: 4591582657b1d9f1ff151cc74379113bc11a591e943a1257ee1371051db844023e2906234b5af3c8f55b1bb7c0ec6115c83f0a3258a3001f251aeba5419669bd
7
- data.tar.gz: 2ca6704eb8a9f1c86def9c644bf5868e1fe3b5442d3e1d6da9b5408e989d908ff4eb2ba07af56268ff2022e531c80bd26db435abd0031877345b9e740f668d42
6
+ metadata.gz: 7a08ed2a45ee09dd772fe046fa7b245663d9c39c12f26aab8a15d836d78a5bd1b98d6d9b97d4b97fc86dfba57e068074c7f484555ff1acea1b9ecba7bf699a34
7
+ data.tar.gz: b7125709ef96626805cf00bd31638b628e1425964a73021c0efd0a62d488a01037a9055371dde53ebf54c64905526de682474d006ae68072e081f423b3954618
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History
2
2
 
3
+ ### 0.17.0 (2025-04-30)
4
+
5
+ #### Features
6
+
7
+ * ruby 3.1 minimum, 3.4 default ([#22594](https://github.com/googleapis/google-api-ruby-client/issues/22594))
8
+ #### Bug Fixes
9
+
10
+ * Fixed a method redefined warning ([#21572](https://github.com/googleapis/google-api-ruby-client/issues/21572))
11
+ * Ensure compatibility with frozen string literals ([#21648](https://github.com/googleapis/google-api-ruby-client/issues/21648))
12
+
3
13
  ### 0.16.0 (2025-01-12)
4
14
 
5
15
  #### Features
@@ -151,7 +151,7 @@ module Google
151
151
 
152
152
  # HTTP client
153
153
  # @return [HTTPClient]
154
- attr_accessor :client
154
+ attr_writer :client
155
155
 
156
156
  # General settings
157
157
  # @return [Google::Apis::ClientOptions]
@@ -42,7 +42,7 @@ module Google
42
42
  end
43
43
 
44
44
  def read(length = nil, buf = nil)
45
- buf = buf ? buf.replace('') : ''
45
+ buf = buf ? buf.replace('') : +''
46
46
 
47
47
  begin
48
48
  io = @ios[@index]
@@ -46,7 +46,7 @@ module Google
46
46
  @download_io = File.open(download_dest, 'wb')
47
47
  @close_io_on_finish = true
48
48
  else
49
- @download_io = StringIO.new('', 'wb')
49
+ @download_io = StringIO.new(+'', 'wb')
50
50
  @close_io_on_finish = false
51
51
  end
52
52
  super
@@ -283,7 +283,7 @@ module Google
283
283
  # @yield [nil, err] if block given
284
284
  # @raise [StandardError] if no block
285
285
  def error(err, rethrow: false, &block)
286
- logger.debug { sprintf('Error - %s', PP.pp(err, '')) }
286
+ logger.debug { sprintf('Error - %s', PP.pp(err, +'')) }
287
287
  if err.is_a?(HTTPClient::BadResponseError)
288
288
  begin
289
289
  res = err.res
@@ -385,7 +385,7 @@ module Google
385
385
  end
386
386
 
387
387
  def safe_pretty_representation obj
388
- out = ""
388
+ out = +""
389
389
  printer = RedactingPP.new out, 79
390
390
  printer.guard_inspect_key { printer.pp obj }
391
391
  printer.flush
@@ -393,7 +393,7 @@ module Google
393
393
  end
394
394
 
395
395
  def safe_single_line_representation obj
396
- out = ""
396
+ out = +""
397
397
  printer = RedactingSingleLine.new out
398
398
  printer.guard_inspect_key { printer.pp obj }
399
399
  printer.flush
@@ -31,7 +31,7 @@ module Google
31
31
  end
32
32
 
33
33
  def to_io(boundary)
34
- part = ''
34
+ part = +''
35
35
  part << "--#{boundary}\r\n"
36
36
  part << "Content-Type: application/json\r\n"
37
37
  @header.each do |(k, v)|
@@ -59,7 +59,7 @@ module Google
59
59
  end
60
60
 
61
61
  def to_io(boundary)
62
- head = ''
62
+ head = +''
63
63
  head << "--#{boundary}\r\n"
64
64
  @header.each do |(k, v)|
65
65
  head << "#{k}: #{v}\r\n"
@@ -67,7 +67,7 @@ module Google
67
67
  head << "Content-Length: #{@length}\r\n" unless @length.nil?
68
68
  head << "Content-Transfer-Encoding: binary\r\n"
69
69
  head << "\r\n"
70
- Google::Apis::Core::CompositeIO.new(StringIO.new(head), @io, StringIO.new("\r\n"))
70
+ Google::Apis::Core::CompositeIO.new(StringIO.new(head), @io, StringIO.new(+"\r\n"))
71
71
  end
72
72
  end
73
73
 
@@ -126,7 +126,7 @@ module Google
126
126
  # @return [IO]
127
127
  # IO stream
128
128
  def assemble
129
- @parts << StringIO.new("--#{@boundary}--\r\n\r\n")
129
+ @parts << StringIO.new(+"--#{@boundary}--\r\n\r\n")
130
130
  Google::Apis::Core::CompositeIO.new(*@parts)
131
131
  end
132
132
  end
@@ -16,7 +16,7 @@ module Google
16
16
  module Apis
17
17
  module Core
18
18
  # Core version
19
- VERSION = "0.16.0".freeze
19
+ VERSION = "0.17.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -43,7 +43,7 @@ module Google
43
43
  end
44
44
 
45
45
  def inspect
46
- extra = ""
46
+ extra = +""
47
47
  extra << " status_code: #{status_code.inspect}" unless status_code.nil?
48
48
  extra << " header: #{header.inspect}" unless header.nil?
49
49
  extra << " body: #{body.inspect}" unless body.nil?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-15 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: representable
@@ -164,7 +164,7 @@ licenses:
164
164
  metadata:
165
165
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
166
166
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core/CHANGELOG.md
167
- documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.16.0
167
+ documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.17.0
168
168
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core
169
169
  rdoc_options: []
170
170
  require_paths:
@@ -173,14 +173,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  requirements:
174
174
  - - ">="
175
175
  - !ruby/object:Gem::Version
176
- version: '2.7'
176
+ version: '3.1'
177
177
  required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  requirements:
179
179
  - - ">="
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.6.2
183
+ rubygems_version: 3.6.8
184
184
  specification_version: 4
185
185
  summary: Common utility and base classes for legacy Google REST clients
186
186
  test_files: []