gapic-common 0.21.1 → 0.23.0

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: b7c5286b152666f59249b7c1ba16867d494b934f2252bff17b68f1135ef47e97
4
- data.tar.gz: 14bbbc1179570401141d6f62520bc2ff00b27f21f55431f0e3db2d3f4e7220e1
3
+ metadata.gz: a2024379257fb476ddc9d24c767c78625a18e00ea07ddeabafa58130d1fa2185
4
+ data.tar.gz: cb1daa2c812ca07c9ba5dd8e4a8985b1f770538ef4051ef52ff2b9ce513d9527
5
5
  SHA512:
6
- metadata.gz: f7e29a779c1fb17a88336b5c99c5635a9f196b275f9f381d56e25e8a5edc9ccf2e5ff9096500ab8bc33725489b793c2e1593bb38671da48b83529bba379562e0
7
- data.tar.gz: ceb55e48e017ba629c0b583ebb9145d541a309998b29d5b47d40ef0819b0befde3659f39e37a4362691a248070042cd86a34f104100587b76ee742a6edec9565
6
+ metadata.gz: aaf2ce7ebb30a22733a7e75124439d3bda7c07e06865f812f69881ff90206103325ed853c6853f70befbaa89c2de288f6ad1b642ff73ac72d59fe9917cc745a9
7
+ data.tar.gz: a4bf7f9d40eb38a5891701ffcb0d6779c72ca970908ad5fe3b3c312f091fd504c9ec865fdff01a81576e57a1b725197645e8a535351a17221a0e046508e8baca
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Release History
2
2
 
3
+ ### 0.23.0 (2024-10-15)
4
+
5
+ #### Features
6
+
7
+ * Disable universe domain check if credentials include an explicit request to do so ([#1119](https://github.com/googleapis/gapic-generator-ruby/issues/1119))
8
+
9
+ ### 0.22.0 (2024-07-17)
10
+
11
+ #### Features
12
+
13
+ * Support for google-protobuf 4.x
14
+ * Requires at least Ruby 3.0
15
+
16
+ ### 0.21.2 (2024-07-02)
17
+
18
+ #### Bug Fixes
19
+
20
+ * Start requiring ostruct in generated test helper files ([#1065](https://github.com/googleapis/gapic-generator-ruby/issues/1065))
21
+
3
22
  ### 0.21.1 (2023-12-14)
4
23
 
5
24
  #### Bug Fixes
@@ -14,6 +14,6 @@
14
14
 
15
15
  module Gapic
16
16
  module Common
17
- VERSION = "0.21.1".freeze
17
+ VERSION = "0.23.0".freeze
18
18
  end
19
19
  end
data/lib/gapic/headers.rb CHANGED
@@ -19,6 +19,8 @@ require "gapic/common/version"
19
19
  module Gapic
20
20
  # A collection of common header values.
21
21
  module Headers
22
+ # rubocop:disable Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
23
+
22
24
  ##
23
25
  # @param ruby_version [String] The ruby version. Defaults to `RUBY_VERSION`.
24
26
  # @param lib_name [String] The client library name.
@@ -32,6 +34,7 @@ module Gapic
32
34
  # `:grpc` to send the GRPC library version (if defined)
33
35
  # `:rest` to send the REST library version (if defined)
34
36
  # Defaults to `[:grpc]`
37
+ #
35
38
  def self.x_goog_api_client ruby_version: nil, lib_name: nil, lib_version: nil, gax_version: nil,
36
39
  gapic_version: nil, grpc_version: nil, rest_version: nil, protobuf_version: nil,
37
40
  transports_version_send: [:grpc]
@@ -52,4 +55,6 @@ module Gapic
52
55
  x_goog_api_client_header.join " ".freeze
53
56
  end
54
57
  end
58
+
59
+ # rubocop:enable Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
55
60
  end
@@ -60,11 +60,11 @@ module Gapic
60
60
  raise ArgumentError, "endpoint or endpoint_template is required" if endpoint.nil? && endpoint_template.nil?
61
61
  raise ArgumentError, "credentials is required" if credentials.nil?
62
62
 
63
- # TODO: The env logic should live in google-cloud-env
64
63
  universe_domain ||= ENV["GOOGLE_CLOUD_UNIVERSE_DOMAIN"] || "googleapis.com"
65
64
  endpoint ||= endpoint_template.sub ENDPOINT_SUBSTITUTION, universe_domain
66
65
 
67
- if credentials.respond_to?(:universe_domain) && credentials.universe_domain != universe_domain
66
+ if !(credentials.respond_to?(:disable_universe_domain_check) && credentials.disable_universe_domain_check) &&
67
+ credentials.respond_to?(:universe_domain) && credentials.universe_domain != universe_domain
68
68
  raise UniverseDomainMismatch,
69
69
  "Universe domain is #{universe_domain} but credentials are in #{credentials.universe_domain}"
70
70
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gapic-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.1
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google API Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-14 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -54,84 +54,78 @@ dependencies:
54
54
  name: googleapis-common-protos
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: 1.4.0
60
- - - "<"
57
+ - - "~>"
61
58
  - !ruby/object:Gem::Version
62
- version: 2.a
59
+ version: '1.6'
63
60
  type: :runtime
64
61
  prerelease: false
65
62
  version_requirements: !ruby/object:Gem::Requirement
66
63
  requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: 1.4.0
70
- - - "<"
64
+ - - "~>"
71
65
  - !ruby/object:Gem::Version
72
- version: 2.a
66
+ version: '1.6'
73
67
  - !ruby/object:Gem::Dependency
74
68
  name: googleapis-common-protos-types
75
69
  requirement: !ruby/object:Gem::Requirement
76
70
  requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: 1.11.0
80
- - - "<"
71
+ - - "~>"
81
72
  - !ruby/object:Gem::Version
82
- version: 2.a
73
+ version: '1.15'
83
74
  type: :runtime
84
75
  prerelease: false
85
76
  version_requirements: !ruby/object:Gem::Requirement
86
77
  requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: 1.11.0
90
- - - "<"
78
+ - - "~>"
91
79
  - !ruby/object:Gem::Version
92
- version: 2.a
80
+ version: '1.15'
93
81
  - !ruby/object:Gem::Dependency
94
82
  name: googleauth
95
83
  requirement: !ruby/object:Gem::Requirement
96
84
  requirements:
97
85
  - - "~>"
98
86
  - !ruby/object:Gem::Version
99
- version: '1.9'
87
+ version: '1.11'
100
88
  type: :runtime
101
89
  prerelease: false
102
90
  version_requirements: !ruby/object:Gem::Requirement
103
91
  requirements:
104
92
  - - "~>"
105
93
  - !ruby/object:Gem::Version
106
- version: '1.9'
94
+ version: '1.11'
107
95
  - !ruby/object:Gem::Dependency
108
96
  name: google-protobuf
109
97
  requirement: !ruby/object:Gem::Requirement
110
98
  requirements:
111
- - - "~>"
99
+ - - ">="
112
100
  - !ruby/object:Gem::Version
113
- version: '3.18'
101
+ version: '3.25'
102
+ - - "<"
103
+ - !ruby/object:Gem::Version
104
+ version: 5.a
114
105
  type: :runtime
115
106
  prerelease: false
116
107
  version_requirements: !ruby/object:Gem::Requirement
117
108
  requirements:
118
- - - "~>"
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '3.25'
112
+ - - "<"
119
113
  - !ruby/object:Gem::Version
120
- version: '3.18'
114
+ version: 5.a
121
115
  - !ruby/object:Gem::Dependency
122
116
  name: grpc
123
117
  requirement: !ruby/object:Gem::Requirement
124
118
  requirements:
125
119
  - - "~>"
126
120
  - !ruby/object:Gem::Version
127
- version: '1.59'
121
+ version: '1.65'
128
122
  type: :runtime
129
123
  prerelease: false
130
124
  version_requirements: !ruby/object:Gem::Requirement
131
125
  requirements:
132
126
  - - "~>"
133
127
  - !ruby/object:Gem::Version
134
- version: '1.59'
128
+ version: '1.65'
135
129
  description:
136
130
  email:
137
131
  - googleapis-packages@google.com
@@ -195,14 +189,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
189
  requirements:
196
190
  - - ">="
197
191
  - !ruby/object:Gem::Version
198
- version: '2.7'
192
+ version: '3.0'
199
193
  required_rubygems_version: !ruby/object:Gem::Requirement
200
194
  requirements:
201
195
  - - ">="
202
196
  - !ruby/object:Gem::Version
203
197
  version: '0'
204
198
  requirements: []
205
- rubygems_version: 3.4.19
199
+ rubygems_version: 3.5.21
206
200
  signing_key:
207
201
  specification_version: 4
208
202
  summary: Common code for GAPIC-generated API clients