google-cloud-dns 0.29.4 → 0.30.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: 4fa4a9aaded6bffe7ff377dd607f4c2fde72c1f74deb02462b2565f058aa9098
4
- data.tar.gz: 24f7ddd743d1f48e13470bfc799cd5d83f7b10074f247faa358138adb6510a34
3
+ metadata.gz: 78f11d54b54463b7464622c3b43bafcac2bbd2f45dbb6fb0f14af392298a3d52
4
+ data.tar.gz: ee66e59ca1fb5cac4b244566420ca3a6850f00b0b24bbc3b73a0bd77731be74f
5
5
  SHA512:
6
- metadata.gz: 69b1ffbdf946409289765e2d415058b54fb11b658ccf3577eb2967c54942e2a0a9d4bc4716506e2069c39e2b14e09e692cc608c67e24efc68ed9771cf31436b7
7
- data.tar.gz: bd69cd78d288e77dcb64f69110bd2c188d372ac2bc5758146995b49fc345437d3cd2da829cf4c0bafe029ae2d171cfd0395a9010f5cd8ee73f089fc78f2048b4
6
+ metadata.gz: 59fd69d64b18c4f6fcc31dce7eb7571c59d0c9700444168d047e1e2b561f564ffedb710ce56ac7bd8ffe08780a4a1b84bc333a43ccc7d5cbc44a70a6dfd80293
7
+ data.tar.gz: 8d06e38a552d50997974a6d2890025b537f66935cfdbcc983e568654f56b56766ac014b7c107fe90397f236c7da564959eb78848047b39c3ed29f4a7f2b7a4db
@@ -1,5 +1,16 @@
1
1
  # Release History
2
2
 
3
+ ### 0.30.0 / 2019-02-01
4
+
5
+ * Make use of Credentials#project_id
6
+ * Use Credentials#project_id
7
+ If a project_id is not provided, use the value on the Credentials object.
8
+ This value was added in googleauth 0.7.0.
9
+ * Loosen googleauth dependency
10
+ Allow for new releases up to 0.10.
11
+ The googleauth devs have committed to maintanining the current API
12
+ and will not make backwards compatible changes before 0.10.:
13
+
3
14
  ### 0.29.4 / 2018-09-20
4
15
 
5
16
  * Update documentation.
@@ -74,19 +74,22 @@ module Google
74
74
  #
75
75
  def self.new project_id: nil, credentials: nil, scope: nil, retries: nil,
76
76
  timeout: nil, project: nil, keyfile: nil
77
- project_id ||= (project || default_project_id)
78
- project_id = project_id.to_s # Always cast to a string
79
- raise ArgumentError, "project_id is missing" if project_id.empty?
80
-
81
- scope ||= configure.scope
82
- retries ||= configure.retries
83
- timeout ||= configure.timeout
84
-
77
+ project_id ||= (project || default_project_id)
78
+ scope ||= configure.scope
79
+ retries ||= configure.retries
80
+ timeout ||= configure.timeout
85
81
  credentials ||= (keyfile || default_credentials(scope: scope))
82
+
86
83
  unless credentials.is_a? Google::Auth::Credentials
87
84
  credentials = Dns::Credentials.new credentials, scope: scope
88
85
  end
89
86
 
87
+ if credentials.respond_to? :project_id
88
+ project_id ||= credentials.project_id
89
+ end
90
+ project_id = project_id.to_s # Always cast to a string
91
+ raise ArgumentError, "project_id is missing" if project_id.empty?
92
+
90
93
  Dns::Project.new(
91
94
  Dns::Service.new(
92
95
  project_id, credentials, retries: retries, timeout: timeout
@@ -118,7 +118,7 @@ module Google
118
118
  ttls = zf_records.map do |zf_record|
119
119
  ttl_to_i(zf_record[:ttl])
120
120
  end
121
- min_ttl = ttls.compact.sort.first
121
+ min_ttl = ttls.compact.min
122
122
  min_ttl || ttl_to_i(@zonefile.ttl)
123
123
  end
124
124
 
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Dns
19
- VERSION = "0.29.4".freeze
19
+ VERSION = "0.30.0".freeze
20
20
  end
21
21
  end
22
22
  end
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.29.4
4
+ version: 0.30.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: 2018-09-21 00:00:00.000000000 Z
12
+ date: 2019-02-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -43,16 +43,22 @@ dependencies:
43
43
  name: googleauth
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: 0.6.2
49
+ - - "<"
50
+ - !ruby/object:Gem::Version
51
+ version: 0.10.0
49
52
  type: :runtime
50
53
  prerelease: false
51
54
  version_requirements: !ruby/object:Gem::Requirement
52
55
  requirements:
53
- - - "~>"
56
+ - - ">="
54
57
  - !ruby/object:Gem::Version
55
58
  version: 0.6.2
59
+ - - "<"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.10.0
56
62
  - !ruby/object:Gem::Dependency
57
63
  name: zonefile
58
64
  requirement: !ruby/object:Gem::Requirement
@@ -157,14 +163,14 @@ dependencies:
157
163
  requirements:
158
164
  - - "~>"
159
165
  - !ruby/object:Gem::Version
160
- version: 0.50.0
166
+ version: 0.61.0
161
167
  type: :development
162
168
  prerelease: false
163
169
  version_requirements: !ruby/object:Gem::Requirement
164
170
  requirements:
165
171
  - - "~>"
166
172
  - !ruby/object:Gem::Version
167
- version: 0.50.0
173
+ version: 0.61.0
168
174
  - !ruby/object:Gem::Dependency
169
175
  name: simplecov
170
176
  requirement: !ruby/object:Gem::Requirement
@@ -258,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
264
  version: '0'
259
265
  requirements: []
260
266
  rubyforge_project:
261
- rubygems_version: 2.7.7
267
+ rubygems_version: 2.7.6
262
268
  signing_key:
263
269
  specification_version: 4
264
270
  summary: API Client library for Google Cloud DNS