google-cloud-dns 0.36.1 → 0.37.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: 1305c3b89ff51bb2a9c83fd42ec5f838761b02761a8b3ab69e8df5b29004ac47
4
- data.tar.gz: 07e17745e554a6e95263fc033a7afe313a89acc3529c1c8a7e86ef1896a9df56
3
+ metadata.gz: bed94693b5c7f6e8563c796d34811ecefe88a11b8262717eed9918797130f3c1
4
+ data.tar.gz: 82da52f20afaf37eb9c068a76440d230eeeddeea74e71b58769fcddeba5020bf
5
5
  SHA512:
6
- metadata.gz: c7d61f2df750b3157cf32ae7c1916e5472c42a52b396a8219a3a033ea0c6e6d5fe4cce1c701191a9167ddf5fb4609f108de9b1077f0cfe54f6703d9da263afe8
7
- data.tar.gz: 9e453a50bdeda9ba11867dd3d1f0b7fe2fe2d789f1ede981269fc0068ece2e1214347fdcbc104cdb5fcad91f681d852551105445724477dc3e60db44bde9be70
6
+ metadata.gz: 37f08a8182b00fde0a20ce4ec7f5b82c9ed58c4efee96dbee8284367fa971beba8d23f51c65b1e88335a1a2bfc24c8371e80428b07d2c52362e47f4bd2298ee1
7
+ data.tar.gz: 28434d0da45f3104a62d83b4ac95d33a1e60ded9bf9b0c31f9b14d8a537ec338a37688a7f6f1e7803de8ea74cd45a25cfbba3e80004139b0d466e6298bef93d9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Release History
2
2
 
3
- ### 0.36.1 (2023-05-18)
3
+ ### 0.37.0 (2024-03-07)
4
+
5
+ #### Features
6
+
7
+ * Update minimum supported Ruby version to 2.7 ([#25298](https://github.com/googleapis/google-cloud-ruby/issues/25298))
8
+
9
+ ### 0.36.1 (2023-05-19)
4
10
 
5
11
  #### Documentation
6
12
 
@@ -127,10 +127,10 @@ module Google
127
127
  # change.done? #=> true
128
128
  #
129
129
  def wait_until_done!
130
- backoff = ->(retries) { sleep((2 * retries) + 5) }
131
130
  retries = 0
132
131
  until done?
133
- backoff.call retries
132
+ secs = (2 * retries) + 5
133
+ sleep secs
134
134
  retries += 1
135
135
  reload!
136
136
  end
@@ -38,15 +38,14 @@ module Google
38
38
  @project = project
39
39
  @credentials = credentials
40
40
  @service = API::DnsService.new
41
- @service.client_options.application_name = "gcloud-ruby"
42
- @service.client_options.application_version = \
43
- Google::Cloud::Dns::VERSION
41
+ @service.client_options.application_name = "gcloud-ruby"
42
+ @service.client_options.application_version = Google::Cloud::Dns::VERSION
44
43
  @service.client_options.open_timeout_sec = timeout
45
44
  @service.client_options.read_timeout_sec = timeout
46
45
  @service.client_options.send_timeout_sec = timeout
47
46
  @service.request_options.retries = retries || 3
48
47
  @service.request_options.header ||= {}
49
- @service.request_options.header["x-goog-api-client"] = \
48
+ @service.request_options.header["x-goog-api-client"] =
50
49
  "gl-ruby/#{RUBY_VERSION} gccl/#{Google::Cloud::Dns::VERSION}"
51
50
  @service.request_options.quota_project = quota_project if quota_project
52
51
  @service.authorization = @credentials.client
@@ -84,11 +83,12 @@ module Google
84
83
  # Returns Google::Apis::DnsV1::ManagedZone
85
84
  def create_zone zone_name, zone_dns, description: nil,
86
85
  name_server_set: nil
86
+ description ||= ""
87
87
  managed_zone = Google::Apis::DnsV1::ManagedZone.new(
88
88
  kind: "dns#managedZone",
89
89
  name: zone_name,
90
90
  dns_name: zone_dns,
91
- description: (description || ""),
91
+ description: description,
92
92
  name_server_set: name_server_set
93
93
  )
94
94
  execute { service.create_managed_zone @project, managed_zone }
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Dns
19
- VERSION = "0.36.1".freeze
19
+ VERSION = "0.37.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -80,7 +80,7 @@ module Google
80
80
  retries ||= configure.retries
81
81
  timeout ||= configure.timeout
82
82
  endpoint ||= configure.endpoint
83
- credentials ||= (keyfile || default_credentials(scope: scope))
83
+ credentials ||= keyfile || default_credentials(scope: scope)
84
84
 
85
85
  unless credentials.is_a? Google::Auth::Credentials
86
86
  credentials = Dns::Credentials.new credentials, scope: scope
@@ -64,9 +64,11 @@ module Google
64
64
  # dns = gcloud.dns scope: dns_readonly
65
65
  #
66
66
  def dns scope: nil, retries: nil, timeout: nil
67
+ retries ||= @retries
68
+ timeout ||= @timeout
67
69
  Google::Cloud.dns @project, @keyfile, scope: scope,
68
- retries: (retries || @retries),
69
- timeout: (timeout || @timeout)
70
+ retries: retries,
71
+ timeout: timeout
70
72
  end
71
73
 
72
74
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.1
4
+ version: 0.37.0
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: 2023-05-19 00:00:00.000000000 Z
12
+ date: 2024-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -73,146 +73,6 @@ dependencies:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.04'
76
- - !ruby/object:Gem::Dependency
77
- name: google-style
78
- requirement: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 1.26.1
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 1.26.1
90
- - !ruby/object:Gem::Dependency
91
- name: minitest
92
- requirement: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '5.16'
97
- type: :development
98
- prerelease: false
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '5.16'
104
- - !ruby/object:Gem::Dependency
105
- name: minitest-autotest
106
- requirement: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '1.0'
111
- type: :development
112
- prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '1.0'
118
- - !ruby/object:Gem::Dependency
119
- name: minitest-focus
120
- requirement: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '1.1'
125
- type: :development
126
- prerelease: false
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '1.1'
132
- - !ruby/object:Gem::Dependency
133
- name: minitest-rg
134
- requirement: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '5.2'
139
- type: :development
140
- prerelease: false
141
- version_requirements: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '5.2'
146
- - !ruby/object:Gem::Dependency
147
- name: autotest-suffix
148
- requirement: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '1.1'
153
- type: :development
154
- prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '1.1'
160
- - !ruby/object:Gem::Dependency
161
- name: redcarpet
162
- requirement: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '3.0'
167
- type: :development
168
- prerelease: false
169
- version_requirements: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '3.0'
174
- - !ruby/object:Gem::Dependency
175
- name: simplecov
176
- requirement: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '0.9'
181
- type: :development
182
- prerelease: false
183
- version_requirements: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '0.9'
188
- - !ruby/object:Gem::Dependency
189
- name: yard
190
- requirement: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: '0.9'
195
- type: :development
196
- prerelease: false
197
- version_requirements: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: '0.9'
202
- - !ruby/object:Gem::Dependency
203
- name: yard-doctest
204
- requirement: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: 0.1.13
209
- type: :development
210
- prerelease: false
211
- version_requirements: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - "~>"
214
- - !ruby/object:Gem::Version
215
- version: 0.1.13
216
76
  description: google-cloud-dns is the official library for Google Cloud DNS.
217
77
  email:
218
78
  - mike@blowmage.com
@@ -256,14 +116,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
256
116
  requirements:
257
117
  - - ">="
258
118
  - !ruby/object:Gem::Version
259
- version: '2.6'
119
+ version: '2.7'
260
120
  required_rubygems_version: !ruby/object:Gem::Requirement
261
121
  requirements:
262
122
  - - ">="
263
123
  - !ruby/object:Gem::Version
264
124
  version: '0'
265
125
  requirements: []
266
- rubygems_version: 3.4.2
126
+ rubygems_version: 3.5.6
267
127
  signing_key:
268
128
  specification_version: 4
269
129
  summary: API Client library for Google Cloud DNS