dennis-client 1.1.1 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/dennis/zone.rb +19 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5cc24c081e0f116f540b21297571db2085bd804ac7a02a0e47640ef67b98640
|
4
|
+
data.tar.gz: 40d4ea9f6c15e24205cf7efe24102d21a45a49a904f06fd1aa2a6cdf3f947478
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de0679c724335d2e79b888bafea3923093c1e8496f1878e9b8c27ad78ef2d1b194a8d57ec3dfd8ea1159045cac513247eb4e1b4ce0e393b3b564dfb684f7a24
|
7
|
+
data.tar.gz: 6a98a48071e3bf5afae1d82a0c1193fd6f5bf9da10116d0ef064b92fa3195bf0e10665fea57e8c36939885d4de3e8e55b809911e2f136fa5bfe0261348cc0697
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.1
|
data/lib/dennis/zone.rb
CHANGED
@@ -94,6 +94,10 @@ module Dennis
|
|
94
94
|
@hash['external_reference']
|
95
95
|
end
|
96
96
|
|
97
|
+
def txt_record_verification_token
|
98
|
+
@hash['txt_record_verification_token']
|
99
|
+
end
|
100
|
+
|
97
101
|
def nameservers_verified_at
|
98
102
|
parse_time(@hash['nameservers_verified_at'])
|
99
103
|
end
|
@@ -114,6 +118,10 @@ module Dennis
|
|
114
118
|
@hash['always_verified']
|
115
119
|
end
|
116
120
|
|
121
|
+
def verified_at
|
122
|
+
@hash['verified_at']
|
123
|
+
end
|
124
|
+
|
117
125
|
def reverse_dns?
|
118
126
|
@hash['reverse_dns']
|
119
127
|
end
|
@@ -201,6 +209,17 @@ module Dennis
|
|
201
209
|
true
|
202
210
|
end
|
203
211
|
|
212
|
+
def verify
|
213
|
+
req = @client.api.create_request(:post, 'zones/:zone/verify')
|
214
|
+
req.arguments['zone'] = { id: id }
|
215
|
+
@hash = req.perform.hash['zone']
|
216
|
+
verified?
|
217
|
+
rescue ApiaClient::RequestError => e
|
218
|
+
raise unless e.code == 'zone_already_verified'
|
219
|
+
|
220
|
+
true
|
221
|
+
end
|
222
|
+
|
204
223
|
private
|
205
224
|
|
206
225
|
def parse_time(time)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dennis-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apia-client
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
|
-
rubygems_version: 3.
|
70
|
+
rubygems_version: 3.5.22
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: A client library for talking to the Dennis DNS API.
|