dnsimple 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_dnsimple.yml +15 -0
- data/CHANGELOG.md +3 -0
- data/CONTRIBUTING.md +6 -0
- data/Gemfile +1 -1
- data/lib/dnsimple/client/domains.rb +1 -1
- data/lib/dnsimple/struct/domain.rb +22 -3
- data/lib/dnsimple/version.rb +1 -1
- data/spec/dnsimple/client/domains_spec.rb +14 -13
- data/spec/dnsimple/client/registrar_spec.rb +16 -16
- data/spec/fixtures.http/cancelDomainTransfer/success.http +19 -30
- data/spec/fixtures.http/createDomain/created.http +21 -16
- data/spec/fixtures.http/getDomain/success.http +14 -9
- data/spec/fixtures.http/getDomainTransfer/success.http +21 -30
- data/spec/fixtures.http/listDomains/success.http +21 -16
- data/spec/fixtures.http/registerDomain/success.http +2 -2
- data/spec/fixtures.http/renewDomain/success.http +2 -2
- data/spec/fixtures.http/transferDomain/success.http +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 740c15a07bacc12086f2c0c3282e78150735247a9e85b6be0c84019a9a1a4de3
|
4
|
+
data.tar.gz: 4caef1a3ce2d61bcb59f882f5195990e64eeef2fe17294afe68ec31922460c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 365c3a046910052fdc92c0c7a9f014f8dee87766097fcb00a182fe15b87916de86fe9649c9ec491cb9095237ee5e91cdda660142a1dccc72777b3f017ceb1351
|
7
|
+
data.tar.gz: a55e3f6c772e4667086d4b007c2af15618f8555564fca8a548d3eafcfd5fe8067e06f47057c19b981aeaf55086f32019f7a9055d4b7ae51eb11715e015e3d58c
|
data/.rubocop_dnsimple.yml
CHANGED
@@ -383,6 +383,7 @@ Layout/SpaceInsidePercentLiteralDelimiters:
|
|
383
383
|
# We'll remove them once they become defaults.
|
384
384
|
# See https://docs.rubocop.org/en/latest/versioning/
|
385
385
|
|
386
|
+
|
386
387
|
Layout/SpaceAroundMethodCallOperator:
|
387
388
|
Enabled: true
|
388
389
|
|
@@ -400,3 +401,17 @@ Layout/EmptyLinesAroundAttributeAccessor:
|
|
400
401
|
|
401
402
|
Style/SlicingWithRange:
|
402
403
|
Enabled: true
|
404
|
+
|
405
|
+
# Introduced in rubocop 0.84.0
|
406
|
+
Lint/DeprecatedOpenSSLConstant:
|
407
|
+
Enabled: true
|
408
|
+
|
409
|
+
# Introduced in rubocop 0.85.0
|
410
|
+
Lint/MixedRegexpCaptureTypes:
|
411
|
+
Enabled: true
|
412
|
+
|
413
|
+
Style/RedundantRegexpCharacterClass:
|
414
|
+
Enabled: true
|
415
|
+
|
416
|
+
Style/RedundantRegexpEscape:
|
417
|
+
Enabled: true
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
data/Gemfile
CHANGED
@@ -16,7 +16,7 @@ module Dnsimple
|
|
16
16
|
# client.domains.list(1010, page: 2)
|
17
17
|
#
|
18
18
|
# @example List domains, provide a sorting policy
|
19
|
-
# client.domains.list(1010, sort: "
|
19
|
+
# client.domains.list(1010, sort: "expiration:asc")
|
20
20
|
#
|
21
21
|
# @example List domains, provide a filtering policy
|
22
22
|
# client.domains.list(1010, filter: { name_like: "example" })
|
@@ -4,6 +4,13 @@ module Dnsimple
|
|
4
4
|
module Struct
|
5
5
|
|
6
6
|
class Domain < Base
|
7
|
+
|
8
|
+
def initialize(attributes = {})
|
9
|
+
attributes.delete("expires_on")
|
10
|
+
super
|
11
|
+
@expires_on = Date.parse(expires_at).to_s if expires_at
|
12
|
+
end
|
13
|
+
|
7
14
|
# @return [Integer] The domain ID in DNSimple.
|
8
15
|
attr_accessor :id
|
9
16
|
|
@@ -28,15 +35,27 @@ module Dnsimple
|
|
28
35
|
# @return [Bool] True if the domain WHOIS privacy is enabled, false otherwise.
|
29
36
|
attr_accessor :private_whois
|
30
37
|
|
31
|
-
# @return [String] The
|
32
|
-
attr_accessor :
|
38
|
+
# @return [String] The timestamp when domain will expire.
|
39
|
+
attr_accessor :expires_at
|
33
40
|
|
34
41
|
# @return [String] When the domain was created in DNSimple.
|
35
42
|
attr_accessor :created_at
|
36
43
|
|
37
44
|
# @return [String] When the domain was last updated in DNSimple.
|
38
45
|
attr_accessor :updated_at
|
39
|
-
end
|
40
46
|
|
47
|
+
# @deprecated Please use #expires_at instead.
|
48
|
+
# @return [String] The date the domain will expire.
|
49
|
+
def expires_on
|
50
|
+
warn "[DEPRECATION] Domain#expires_on is deprecated. Please use `expires_at` instead."
|
51
|
+
@expires_on
|
52
|
+
end
|
53
|
+
|
54
|
+
def expires_on=(expiration_date)
|
55
|
+
warn "[DEPRECATION] Domain#expires_on= is deprecated. Please use `expires_at=` instead."
|
56
|
+
@expires_on = expiration_date
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
41
60
|
end
|
42
61
|
end
|
data/lib/dnsimple/version.rb
CHANGED
@@ -35,9 +35,9 @@ describe Dnsimple::Client, ".domains" do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
it "supports sorting" do
|
38
|
-
subject.domains(account_id, sort: "
|
38
|
+
subject.domains(account_id, sort: "expiration:asc")
|
39
39
|
|
40
|
-
expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/domains?sort=
|
40
|
+
expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/domains?sort=expiration:asc")
|
41
41
|
end
|
42
42
|
|
43
43
|
it "supports filtering" do
|
@@ -84,9 +84,9 @@ describe Dnsimple::Client, ".domains" do
|
|
84
84
|
end
|
85
85
|
|
86
86
|
it "supports sorting" do
|
87
|
-
subject.all_domains(account_id, sort: "
|
87
|
+
subject.all_domains(account_id, sort: "expiration:asc")
|
88
88
|
|
89
|
-
expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/domains?page=1&per_page=100&sort=
|
89
|
+
expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/domains?page=1&per_page=100&sort=expiration:asc")
|
90
90
|
end
|
91
91
|
|
92
92
|
it "supports filtering" do
|
@@ -133,28 +133,29 @@ describe Dnsimple::Client, ".domains" do
|
|
133
133
|
end
|
134
134
|
|
135
135
|
it "builds the correct request" do
|
136
|
-
subject.domain(account_id, domain = "example.com")
|
136
|
+
subject.domain(account_id, domain = "example-alpha.com")
|
137
137
|
|
138
138
|
expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/domains/#{domain}")
|
139
139
|
.with(headers: { 'Accept' => 'application/json' })
|
140
140
|
end
|
141
141
|
|
142
142
|
it "returns the domain" do
|
143
|
-
response = subject.domain(account_id, "example.com")
|
143
|
+
response = subject.domain(account_id, "example-alpha.com")
|
144
144
|
expect(response).to be_a(Dnsimple::Response)
|
145
145
|
|
146
146
|
result = response.data
|
147
147
|
expect(result).to be_a(Dnsimple::Struct::Domain)
|
148
|
-
expect(result.id).to eq(
|
149
|
-
expect(result.account_id).to eq(
|
150
|
-
expect(result.registrant_id).to eq(
|
148
|
+
expect(result.id).to eq(181984)
|
149
|
+
expect(result.account_id).to eq(1385)
|
150
|
+
expect(result.registrant_id).to eq(2715)
|
151
151
|
expect(result.name).to eq("example-alpha.com")
|
152
|
-
expect(result.state).to eq("
|
152
|
+
expect(result.state).to eq("registered")
|
153
153
|
expect(result.auto_renew).to be(false)
|
154
154
|
expect(result.private_whois).to be(false)
|
155
|
-
expect(result.
|
156
|
-
expect(result.
|
157
|
-
expect(result.
|
155
|
+
expect(result.expires_at).to eq("2021-06-05T02:15:00Z")
|
156
|
+
expect(result.expires_on).to eq("2021-06-05")
|
157
|
+
expect(result.created_at).to eq("2020-06-04T19:15:14Z")
|
158
|
+
expect(result.updated_at).to eq("2020-06-04T19:15:21Z")
|
158
159
|
end
|
159
160
|
|
160
161
|
context "when the domain does not exist" do
|
@@ -39,7 +39,7 @@ describe Dnsimple::Client, ".registrar" do
|
|
39
39
|
|
40
40
|
context "when premium price" do
|
41
41
|
before do
|
42
|
-
stub_request(:get, %r{/v2/#{account_id}/registrar/domains/.+/premium_price[
|
42
|
+
stub_request(:get, %r{/v2/#{account_id}/registrar/domains/.+/premium_price[?action]*})
|
43
43
|
.to_return(read_http_fixture("getDomainPremiumPrice/success.http"))
|
44
44
|
end
|
45
45
|
|
@@ -223,27 +223,27 @@ describe Dnsimple::Client, ".registrar" do
|
|
223
223
|
end
|
224
224
|
|
225
225
|
it "builds the correct request" do
|
226
|
-
subject.get_domain_transfer(account_id, domain_name = "example.com", transfer_id =
|
226
|
+
subject.get_domain_transfer(account_id, domain_name = "example.com", transfer_id = 361)
|
227
227
|
|
228
228
|
expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/registrar/domains/#{domain_name}/transfers/#{transfer_id}")
|
229
229
|
.with(headers: { "Accept" => "application/json" })
|
230
230
|
end
|
231
231
|
|
232
232
|
it "returns the domain transfer" do
|
233
|
-
response = subject.get_domain_transfer(account_id, "example.com",
|
233
|
+
response = subject.get_domain_transfer(account_id, "example.com", 361)
|
234
234
|
expect(response).to be_a(Dnsimple::Response)
|
235
235
|
|
236
236
|
result = response.data
|
237
237
|
expect(result).to be_a(Dnsimple::Struct::DomainTransfer)
|
238
|
-
expect(result.id).to eq(
|
239
|
-
expect(result.domain_id).to eq(
|
240
|
-
expect(result.registrant_id).to eq(
|
238
|
+
expect(result.id).to eq(361)
|
239
|
+
expect(result.domain_id).to eq(182245)
|
240
|
+
expect(result.registrant_id).to eq(2715)
|
241
241
|
expect(result.state).to eq("cancelled")
|
242
242
|
expect(result.auto_renew).to be(false)
|
243
243
|
expect(result.whois_privacy).to be(false)
|
244
244
|
expect(result.status_description).to eq("Canceled by customer")
|
245
|
-
expect(result.created_at).to eq("2020-
|
246
|
-
expect(result.updated_at).to eq("2020-
|
245
|
+
expect(result.created_at).to eq("2020-06-05T18:08:00Z")
|
246
|
+
expect(result.updated_at).to eq("2020-06-05T18:10:01Z")
|
247
247
|
end
|
248
248
|
end
|
249
249
|
|
@@ -256,27 +256,27 @@ describe Dnsimple::Client, ".registrar" do
|
|
256
256
|
end
|
257
257
|
|
258
258
|
it "builds the correct request" do
|
259
|
-
subject.cancel_domain_transfer(account_id, domain_name = "example.com", transfer_id =
|
259
|
+
subject.cancel_domain_transfer(account_id, domain_name = "example.com", transfer_id = 361)
|
260
260
|
|
261
261
|
expect(WebMock).to have_requested(:delete, "https://api.dnsimple.test/v2/#{account_id}/registrar/domains/#{domain_name}/transfers/#{transfer_id}")
|
262
262
|
.with(headers: { "Accept" => "application/json" })
|
263
263
|
end
|
264
264
|
|
265
265
|
it "returns the domain transfer" do
|
266
|
-
response = subject.cancel_domain_transfer(account_id, "example.com",
|
266
|
+
response = subject.cancel_domain_transfer(account_id, "example.com", 361)
|
267
267
|
expect(response).to be_a(Dnsimple::Response)
|
268
268
|
|
269
269
|
result = response.data
|
270
270
|
expect(result).to be_a(Dnsimple::Struct::DomainTransfer)
|
271
|
-
expect(result.id).to eq(
|
272
|
-
expect(result.domain_id).to eq(
|
273
|
-
expect(result.registrant_id).to eq(
|
271
|
+
expect(result.id).to eq(361)
|
272
|
+
expect(result.domain_id).to eq(182245)
|
273
|
+
expect(result.registrant_id).to eq(2715)
|
274
274
|
expect(result.state).to eq("transferring")
|
275
|
-
expect(result.auto_renew).to be(
|
275
|
+
expect(result.auto_renew).to be(false)
|
276
276
|
expect(result.whois_privacy).to be(false)
|
277
277
|
expect(result.status_description).to eq(nil)
|
278
|
-
expect(result.created_at).to eq("2020-
|
279
|
-
expect(result.updated_at).to eq("2020-
|
278
|
+
expect(result.created_at).to eq("2020-06-05T18:08:00Z")
|
279
|
+
expect(result.updated_at).to eq("2020-06-05T18:08:04Z")
|
280
280
|
end
|
281
281
|
end
|
282
282
|
|
@@ -1,30 +1,19 @@
|
|
1
|
-
HTTP/1.1 202 Accepted
|
2
|
-
Server: nginx
|
3
|
-
Date:
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
6
|
-
Connection: keep-alive
|
7
|
-
|
8
|
-
X-RateLimit-
|
9
|
-
X-RateLimit-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
X-
|
14
|
-
X-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
"domain_id": 6,
|
21
|
-
"registrant_id": 1,
|
22
|
-
"state": "transferring",
|
23
|
-
"auto_renew": true,
|
24
|
-
"whois_privacy": false,
|
25
|
-
"premium_price": null,
|
26
|
-
"status_description": null,
|
27
|
-
"created_at": "2020-04-24T19:19:03Z",
|
28
|
-
"updated_at": "2020-04-24T19:19:15Z"
|
29
|
-
}
|
30
|
-
}
|
1
|
+
HTTP/1.1 202 Accepted
|
2
|
+
Server: nginx
|
3
|
+
Date: Fri, 05 Jun 2020 18:09:42 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: identity
|
6
|
+
Connection: keep-alive
|
7
|
+
X-RateLimit-Limit: 2400
|
8
|
+
X-RateLimit-Remaining: 2394
|
9
|
+
X-RateLimit-Reset: 1591384034
|
10
|
+
Cache-Control: no-cache
|
11
|
+
X-Request-Id: 3cf6dcfa-0bb5-439e-863a-af2ef08bc830
|
12
|
+
X-Runtime: 0.912731
|
13
|
+
X-Frame-Options: DENY
|
14
|
+
X-Content-Type-Options: nosniff
|
15
|
+
X-XSS-Protection: 1; mode=block
|
16
|
+
X-Download-Options: noopen
|
17
|
+
X-Permitted-Cross-Domain-Policies: none
|
18
|
+
|
19
|
+
{"data":{"id":361,"domain_id":182245,"registrant_id":2715,"state":"transferring","auto_renew":false,"whois_privacy":false,"status_description":null,"created_at":"2020-06-05T18:08:00Z","updated_at":"2020-06-05T18:08:04Z"}}
|
@@ -1,16 +1,21 @@
|
|
1
|
-
HTTP/1.1 201 Created
|
2
|
-
Server: nginx
|
3
|
-
Date:
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
6
|
-
Connection: keep-alive
|
7
|
-
X-RateLimit-Limit:
|
8
|
-
X-RateLimit-Remaining:
|
9
|
-
X-RateLimit-Reset:
|
10
|
-
ETag: W/"
|
11
|
-
Cache-Control: max-age=0, private, must-revalidate
|
12
|
-
X-Request-Id:
|
13
|
-
X-Runtime: 0.
|
14
|
-
|
15
|
-
|
16
|
-
|
1
|
+
HTTP/1.1 201 Created
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 04 Jun 2020 19:47:05 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: identity
|
6
|
+
Connection: keep-alive
|
7
|
+
X-RateLimit-Limit: 2400
|
8
|
+
X-RateLimit-Remaining: 2378
|
9
|
+
X-RateLimit-Reset: 1591300248
|
10
|
+
ETag: W/"399e70627412fa31dba332feca5e8ec1"
|
11
|
+
Cache-Control: max-age=0, private, must-revalidate
|
12
|
+
X-Request-Id: ee897eee-36cc-4b7f-be15-f4627f344bf9
|
13
|
+
X-Runtime: 0.194561
|
14
|
+
X-Frame-Options: DENY
|
15
|
+
X-Content-Type-Options: nosniff
|
16
|
+
X-XSS-Protection: 1; mode=block
|
17
|
+
X-Download-Options: noopen
|
18
|
+
X-Permitted-Cross-Domain-Policies: none
|
19
|
+
Strict-Transport-Security: max-age=31536000
|
20
|
+
|
21
|
+
{"data":{"id":181985,"account_id":1385,"registrant_id":null,"name":"example-beta.com","unicode_name":"example-beta.com","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"expires_at":null,"created_at":"2020-06-04T19:47:05Z","updated_at":"2020-06-04T19:47:05Z"}}
|
@@ -1,16 +1,21 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date:
|
3
|
+
Date: Thu, 04 Jun 2020 19:37:22 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
5
|
+
Transfer-Encoding: identity
|
6
6
|
Connection: keep-alive
|
7
|
-
X-RateLimit-Limit:
|
8
|
-
X-RateLimit-Remaining:
|
9
|
-
X-RateLimit-Reset:
|
10
|
-
ETag: W/"
|
7
|
+
X-RateLimit-Limit: 2400
|
8
|
+
X-RateLimit-Remaining: 2379
|
9
|
+
X-RateLimit-Reset: 1591300247
|
10
|
+
ETag: W/"ff4a8463ecca39d4869695d66de60043"
|
11
11
|
Cache-Control: max-age=0, private, must-revalidate
|
12
|
-
X-Request-Id:
|
13
|
-
X-Runtime: 0.
|
12
|
+
X-Request-Id: 2e8259ab-c933-487e-8f85-d23f1cdf62fa
|
13
|
+
X-Runtime: 0.019482
|
14
|
+
X-Frame-Options: DENY
|
15
|
+
X-Content-Type-Options: nosniff
|
16
|
+
X-XSS-Protection: 1; mode=block
|
17
|
+
X-Download-Options: noopen
|
18
|
+
X-Permitted-Cross-Domain-Policies: none
|
14
19
|
Strict-Transport-Security: max-age=31536000
|
15
20
|
|
16
|
-
{"data":{"id":
|
21
|
+
{"data":{"id":181984,"account_id":1385,"registrant_id":2715,"name":"example-alpha.com","unicode_name":"example-alpha.com","state":"registered","auto_renew":false,"private_whois":false,"expires_on":"2021-06-05","expires_at":"2021-06-05T02:15:00Z","created_at":"2020-06-04T19:15:14Z","updated_at":"2020-06-04T19:15:21Z"}}
|
@@ -1,30 +1,21 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx
|
3
|
-
Date:
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
6
|
-
Connection: keep-alive
|
7
|
-
|
8
|
-
X-RateLimit-
|
9
|
-
X-RateLimit-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
X-
|
14
|
-
X-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
"state": "cancelled",
|
23
|
-
"auto_renew": false,
|
24
|
-
"whois_privacy": false,
|
25
|
-
"premium_price": null,
|
26
|
-
"status_description": "Canceled by customer",
|
27
|
-
"created_at": "2020-04-27T18:08:44Z",
|
28
|
-
"updated_at": "2020-04-27T18:20:01Z"
|
29
|
-
}
|
30
|
-
}
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Fri, 05 Jun 2020 18:23:53 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: identity
|
6
|
+
Connection: keep-alive
|
7
|
+
X-RateLimit-Limit: 2400
|
8
|
+
X-RateLimit-Remaining: 2392
|
9
|
+
X-RateLimit-Reset: 1591384034
|
10
|
+
ETag: W/"80c5827934c13b1ca87a587d96e7d1e8"
|
11
|
+
Cache-Control: max-age=0, private, must-revalidate
|
12
|
+
X-Request-Id: 9f4959ee-06a9-488c-906e-27a570cafbbf
|
13
|
+
X-Runtime: 0.078429
|
14
|
+
X-Frame-Options: DENY
|
15
|
+
X-Content-Type-Options: nosniff
|
16
|
+
X-XSS-Protection: 1; mode=block
|
17
|
+
X-Download-Options: noopen
|
18
|
+
X-Permitted-Cross-Domain-Policies: none
|
19
|
+
Strict-Transport-Security: max-age=31536000
|
20
|
+
|
21
|
+
{"data":{"id":361,"domain_id":182245,"registrant_id":2715,"state":"cancelled","auto_renew":false,"whois_privacy":false,"status_description":"Canceled by customer","created_at":"2020-06-05T18:08:00Z","updated_at":"2020-06-05T18:10:01Z"}}
|
@@ -1,16 +1,21 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Server: nginx
|
3
|
-
Date:
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
6
|
-
Connection: keep-alive
|
7
|
-
X-RateLimit-Limit:
|
8
|
-
X-RateLimit-Remaining:
|
9
|
-
X-RateLimit-Reset:
|
10
|
-
ETag: W/"
|
11
|
-
Cache-Control: max-age=0, private, must-revalidate
|
12
|
-
X-Request-Id:
|
13
|
-
X-Runtime: 0.
|
14
|
-
|
15
|
-
|
16
|
-
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 04 Jun 2020 19:54:16 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Transfer-Encoding: identity
|
6
|
+
Connection: keep-alive
|
7
|
+
X-RateLimit-Limit: 2400
|
8
|
+
X-RateLimit-Remaining: 2399
|
9
|
+
X-RateLimit-Reset: 1591304056
|
10
|
+
ETag: W/"732eac2d85c19810f4e84dbc0eaafb9d"
|
11
|
+
Cache-Control: max-age=0, private, must-revalidate
|
12
|
+
X-Request-Id: 458d7b96-bb1a-469a-817e-4fd65c0f1db3
|
13
|
+
X-Runtime: 0.125593
|
14
|
+
X-Frame-Options: DENY
|
15
|
+
X-Content-Type-Options: nosniff
|
16
|
+
X-XSS-Protection: 1; mode=block
|
17
|
+
X-Download-Options: noopen
|
18
|
+
X-Permitted-Cross-Domain-Policies: none
|
19
|
+
Strict-Transport-Security: max-age=31536000
|
20
|
+
|
21
|
+
{"data":[{"id":181984,"account_id":1385,"registrant_id":2715,"name":"example-alpha.com","unicode_name":"example-alpha.com","state":"registered","auto_renew":false,"private_whois":false,"expires_on":"2021-06-05","expires_at":"2021-06-05T02:15:00Z","created_at":"2020-06-04T19:15:14Z","updated_at":"2020-06-04T19:15:21Z"},{"id":181985,"account_id":1385,"registrant_id":null,"name":"example-beta.com","unicode_name":"example-beta.com","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"expires_at":null,"created_at":"2020-06-04T19:47:05Z","updated_at":"2020-06-04T19:47:05Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":2,"total_pages":1}}
|
@@ -2,7 +2,7 @@ HTTP/1.1 201 Created
|
|
2
2
|
Server: nginx
|
3
3
|
Date: Fri, 09 Dec 2016 19:35:38 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
5
|
+
Transfer-Encoding: identity
|
6
6
|
Connection: keep-alive
|
7
7
|
X-RateLimit-Limit: 2400
|
8
8
|
X-RateLimit-Remaining: 2396
|
@@ -18,4 +18,4 @@ X-Permitted-Cross-Domain-Policies: none
|
|
18
18
|
X-XSS-Protection: 1; mode=block
|
19
19
|
Strict-Transport-Security: max-age=31536000
|
20
20
|
|
21
|
-
{"data":{"id":1,"domain_id":999,"registrant_id":2,"period":1,"state":"new","auto_renew":false,"whois_privacy":false,"
|
21
|
+
{"data":{"id":1,"domain_id":999,"registrant_id":2,"period":1,"state":"new","auto_renew":false,"whois_privacy":false,"created_at":"2016-12-09T19:35:31Z","updated_at":"2016-12-09T19:35:31Z"}}
|
@@ -2,7 +2,7 @@ HTTP/1.1 201 Created
|
|
2
2
|
Server: nginx
|
3
3
|
Date: Fri, 09 Dec 2016 19:46:57 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
5
|
+
Transfer-Encoding: identity
|
6
6
|
Connection: keep-alive
|
7
7
|
X-RateLimit-Limit: 2400
|
8
8
|
X-RateLimit-Remaining: 2394
|
@@ -18,4 +18,4 @@ X-Permitted-Cross-Domain-Policies: none
|
|
18
18
|
X-XSS-Protection: 1; mode=block
|
19
19
|
Strict-Transport-Security: max-age=31536000
|
20
20
|
|
21
|
-
{"data":{"id":1,"domain_id":999,"period":1,"state":"new","
|
21
|
+
{"data":{"id":1,"domain_id":999,"period":1,"state":"new","created_at":"2016-12-09T19:46:45Z","updated_at":"2016-12-09T19:46:45Z"}}
|
@@ -2,7 +2,7 @@ HTTP/1.1 201 Created
|
|
2
2
|
Server: nginx
|
3
3
|
Date: Fri, 09 Dec 2016 19:43:43 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding:
|
5
|
+
Transfer-Encoding: identity
|
6
6
|
Connection: keep-alive
|
7
7
|
X-RateLimit-Limit: 2400
|
8
8
|
X-RateLimit-Remaining: 2395
|
@@ -18,4 +18,4 @@ X-Permitted-Cross-Domain-Policies: none
|
|
18
18
|
X-XSS-Protection: 1; mode=block
|
19
19
|
Strict-Transport-Security: max-age=31536000
|
20
20
|
|
21
|
-
{"data":{"id":1,"domain_id":999,"registrant_id":2,"state":"transferring","auto_renew":false,"whois_privacy":false,"
|
21
|
+
{"data":{"id":1,"domain_id":999,"registrant_id":2,"state":"transferring","auto_renew":false,"whois_privacy":false,"created_at":"2016-12-09T19:43:41Z","updated_at":"2016-12-09T19:43:43Z"}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnsimple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DNSimple
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|