google-apis-core 1.3.2 → 1.4.1

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: 1e8ec145745bfbe87e1747980fcb94d965c85129a0d44aa4e04fe308c263a508
4
- data.tar.gz: ca55fec0b063774de1dc181e40035c8f8114ceb3c8027e504d95af973b0a45b0
3
+ metadata.gz: b1c9da7b904255f5cfa7a7340b09680ad04e9b654cf0b9119a62d0d3f23785bb
4
+ data.tar.gz: dcb808f302b5a8432d7b71aac11d5eed7b57bbf84e27c759616e5f13bd3e65b8
5
5
  SHA512:
6
- metadata.gz: 0562d448f8789e089f75015af48037267ef2022cbad87b71479dbc1d230affe5b66ec8a23564a5abaa2e764d4cfde5051a47023e6cb8d5e1cb028c941940e7d1
7
- data.tar.gz: 4a57ea05752b7b7793583d8f6b766448ed49e6ff07f66e6f699ccc39a5b966ef78cca69cbe119e8c2af1cc0f3f1780f8218128dece2e1c55f18b8b2c7a2f32f4
6
+ metadata.gz: 9c591df50fe928a6edb03dba868becf61a918e9fa07173b8d8e4cbef540129c5985ad460252ce35ce6910eb7ba53c819663d94d231c9fbc8e92a842664ca7009
7
+ data.tar.gz: 1b191c3c847f9bda6e522160f6c5ff58862c534eacac8be8f708f2337cba4f2792438947bf2d243b5cc9208daf327fdf1ee17317e090b9aa8308b5f646a983a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release History
2
2
 
3
+ ### 1.4.1 (2026-11-01)
4
+
5
+ #### Bug Fixes
6
+
7
+ * bump dependencies representable to ~> 3.3, >= 3.3.1 and multi_json to ~> 1.21, >= 1.21.2 ([#28003](https://github.com/googleapis/google-api-ruby-client/issues/28003)) ([6e0759d](https://github.com/googleapis/google-api-ruby-client/commit/6e0759d7ccbc753ea04793cb991486d7b99faccd)), refs [#26611](https://github.com/googleapis/google-api-ruby-client/issues/26611)
8
+
9
+ ### 1.4.0 (2026-10-22)
10
+
11
+ #### Features
12
+
13
+ * allow setting the faraday adapter to use ([#27337](https://github.com/googleapis/google-api-ruby-client/issues/27337)) ([370d8ae](https://github.com/googleapis/google-api-ruby-client/commit/370d8ae750e125066f3c1204b3ceb561d3aca1dd)), refs [#27339](https://github.com/googleapis/google-api-ruby-client/issues/27339)
14
+
15
+ #### Documentation
16
+
17
+ * document ClientOptions#adapter requirements and caveats ([#28298](https://github.com/googleapis/google-api-ruby-client/issues/28298)) ([96bd38f](https://github.com/googleapis/google-api-ruby-client/commit/96bd38fcceccfe20f0713545611911604d673f94)), refs [#27337](https://github.com/googleapis/google-api-ruby-client/issues/27337)
18
+
3
19
  ### 1.3.2 (2026-10-15)
4
20
 
5
21
  #### Bug Fixes
data/OVERVIEW.md CHANGED
@@ -22,6 +22,14 @@ should pin `google-apis-core` to a 0.x version in your Gemfile. For example:
22
22
 
23
23
  gem "google-apis-core", "~> 0.18"
24
24
 
25
+ google-apis-core uses Faraday's default adapter, which wraps [net-http](https://github.com/ruby/net-http), and is tested only against it. You can change the adapter by setting the `:adapter` client option:
26
+
27
+ ```ruby
28
+ Google::Apis::ClientOptions.default.adapter = :net_http_persistent # or :httpx, or...
29
+ ```
30
+
31
+ There's a caveat, though: downloading media requires a `faraday` adapter which [implements the `on_data` streaming API](https://lostisland.github.io/faraday/#/advanced/streaming-responses?id=streaming-responses). See {Google::Apis::ClientOptions#adapter} for the full requirements.
32
+
25
33
  ## Documentation
26
34
 
27
35
  More detailed descriptions of the Google legacy REST clients are available in two documents.
@@ -567,6 +567,7 @@ module Google
567
567
  Faraday.new options do |faraday|
568
568
  faraday.response :logger, Google::Apis.logger if client_options.log_http_requests
569
569
  faraday.response :follow_redirects_google_apis_core, limit: 5
570
+ faraday.adapter client_options.adapter if client_options.adapter
570
571
  end
571
572
  end
572
573
 
@@ -16,7 +16,7 @@ module Google
16
16
  module Apis
17
17
  module Core
18
18
  # Core version
19
- VERSION = "1.3.2".freeze
19
+ VERSION = "1.4.1".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -23,7 +23,8 @@ module Google
23
23
  :read_timeout_sec,
24
24
  :send_timeout_sec,
25
25
  :log_http_requests,
26
- :transparent_gzip_decompression)
26
+ :transparent_gzip_decompression,
27
+ :adapter)
27
28
 
28
29
  RequestOptions = Struct.new(
29
30
  :authorization,
@@ -50,6 +51,30 @@ module Google
50
51
  # @return [String] Name of the application, for identification in the User-Agent header
51
52
  # @!attribute [rw] application_version
52
53
  # @return [String] Version of the application, for identification in the User-Agent header
54
+ # @!attribute [rw] adapter
55
+ # @return [Symbol, Class, nil] The Faraday adapter for HTTP connections, either a registered
56
+ # adapter name ([Faraday adapters](https://lostisland.github.io/faraday/#/adapters/index?id=adapters),
57
+ # for example `:net_http_persistent`) or an adapter class. If `nil` (the
58
+ # default), Faraday uses `Faraday.default_adapter`, which is `:net_http` unless changed.
59
+ #
60
+ # Only the default `:net_http` adapter is tested with google-apis-core. Any other adapter
61
+ # is used at your own risk. It must:
62
+ #
63
+ # * support response streaming with `on_data`, which media downloads require;
64
+ # * honor the `open_timeout_sec`, `read_timeout_sec`, `send_timeout_sec` and `proxy_url`
65
+ # settings;
66
+ # * raise `Faraday::Error` subclasses for network failures, so that requests are retried;
67
+ # * be safe to use from several threads at once, because each service shares a single
68
+ # connection.
69
+ #
70
+ # If the adapter keeps connections open, don't reuse them across `fork`. Create services
71
+ # in each process after forking.
72
+ #
73
+ # Load the adapter (for example `require "faraday/net_http_persistent"`) before the
74
+ # connection is created. An unregistered name raises `Faraday::Error` at that point.
75
+ # A service creates its connection once, on first use, so set this option before then.
76
+ # Each service copies `ClientOptions.default` when it's created, so changing the default
77
+ # only affects services created afterwards.
53
78
  # @!attribute [rw] proxy_url
54
79
  # @return [String] URL of a proxy server
55
80
  # @!attribute [rw] log_http_requests
@@ -82,7 +107,7 @@ module Google
82
107
  # @!attribute [rw] max_interval
83
108
  # @return [Integer] The maximum interval in seconds that any individual retry can reach.
84
109
  # @!attribute [rw] multiplier
85
- # @return [Numeric] Each successive interval grows by this factor. A multipler of 1.5 means the next interval
110
+ # @return [Numeric] Each successive interval grows by this factor. A multipler of 1.5 means the next interval
86
111
  # will be 1.5x the current interval.
87
112
  # @!attribute [rw] header
88
113
  # @return [Hash<String,String>] Additional HTTP headers to include in requests.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -85,28 +85,40 @@ dependencies:
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '1.11'
88
+ version: '1.21'
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: 1.21.2
89
92
  type: :runtime
90
93
  prerelease: false
91
94
  version_requirements: !ruby/object:Gem::Requirement
92
95
  requirements:
93
96
  - - "~>"
94
97
  - !ruby/object:Gem::Version
95
- version: '1.11'
98
+ version: '1.21'
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: 1.21.2
96
102
  - !ruby/object:Gem::Dependency
97
103
  name: representable
98
104
  requirement: !ruby/object:Gem::Requirement
99
105
  requirements:
100
106
  - - "~>"
101
107
  - !ruby/object:Gem::Version
102
- version: '3.0'
108
+ version: '3.3'
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: 3.3.1
103
112
  type: :runtime
104
113
  prerelease: false
105
114
  version_requirements: !ruby/object:Gem::Requirement
106
115
  requirements:
107
116
  - - "~>"
108
117
  - !ruby/object:Gem::Version
109
- version: '3.0'
118
+ version: '3.3'
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: 3.3.1
110
122
  - !ruby/object:Gem::Dependency
111
123
  name: retriable
112
124
  requirement: !ruby/object:Gem::Requirement
@@ -167,7 +179,7 @@ licenses:
167
179
  metadata:
168
180
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
169
181
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core/CHANGELOG.md
170
- documentation_uri: https://googleapis.dev/ruby/google-apis-core/v1.3.2
182
+ documentation_uri: https://googleapis.dev/ruby/google-apis-core/v1.4.1
171
183
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core
172
184
  rdoc_options: []
173
185
  require_paths: