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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab6c994d5800e178144ce47b8be27dfb7b7e9414457b133fda7ad76eebac7236
4
- data.tar.gz: '08f39ba56093182666f5bf838c9cc5e2c3337971de7691c2e34670bbdba6f91d'
3
+ metadata.gz: 740c15a07bacc12086f2c0c3282e78150735247a9e85b6be0c84019a9a1a4de3
4
+ data.tar.gz: 4caef1a3ce2d61bcb59f882f5195990e64eeef2fe17294afe68ec31922460c23
5
5
  SHA512:
6
- metadata.gz: a77416c5e9a16f301f0819bed9e15e7555ab85a1461fa35a7b761f803a68c362a44da42cffa50cd29ae720cbec6d7be045c45cda2438cbfb71131cf7ea3ba858
7
- data.tar.gz: 7180a39ea3751190263096a7ac0bf845b04f5518cc768a2debc4f4d054c6a0310f1aef82aebfd13f8d23761b93d56ff01b16bf9df24f1c0265a73741970cb820
6
+ metadata.gz: 365c3a046910052fdc92c0c7a9f014f8dee87766097fcb00a182fe15b87916de86fe9649c9ec491cb9095237ee5e91cdda660142a1dccc72777b3f017ceb1351
7
+ data.tar.gz: a55e3f6c772e4667086d4b007c2af15618f8555564fca8a548d3eafcfd5fe8067e06f47057c19b981aeaf55086f32019f7a9055d4b7ae51eb11715e015e3d58c
@@ -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
@@ -2,6 +2,9 @@
2
2
 
3
3
  This project uses [Semantic Versioning 2.0.0](http://semver.org/).
4
4
 
5
+ ## 5.1.0
6
+
7
+ - CHANGED: `Domain#expires_on` (date only) is deprecated in favor of `Domain#expires_at` (timestamp). (dnsimple/dnsimple-ruby#186)
5
8
 
6
9
  ## 5.0.0
7
10
 
@@ -54,6 +54,12 @@ The following instructions uses `$VERSION` as a placeholder, where `$VERSION` is
54
54
  git push origin --tags
55
55
  ```
56
56
 
57
+ 1. Build the package.
58
+
59
+ ```shell
60
+ rake build
61
+ ```
62
+
57
63
  1. Release to RubyGems.
58
64
 
59
65
  ```shell
data/Gemfile CHANGED
@@ -5,5 +5,5 @@ source 'https://rubygems.org'
5
5
  gemspec
6
6
 
7
7
  gem 'coveralls', require: false
8
- gem 'rubocop', '0.83.0', require: false
8
+ gem 'rubocop', '0.85.1', require: false
9
9
  gem 'rubocop-performance', require: false
@@ -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: "expires_on:asc")
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 date the domain will expire.
32
- attr_accessor :expires_on
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dnsimple
4
- VERSION = "5.0.0"
4
+ VERSION = "5.1.0"
5
5
  end
@@ -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: "expires_on:asc")
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=expires_on:asc")
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: "expires_on:asc")
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=expires_on:asc")
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(1)
149
- expect(result.account_id).to eq(1010)
150
- expect(result.registrant_id).to eq(nil)
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("hosted")
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.expires_on).to eq(nil)
156
- expect(result.created_at).to eq("2014-12-06T15:56:55Z")
157
- expect(result.updated_at).to eq("2015-12-09T00:20:56Z")
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[\?action]*})
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 = 42)
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", 42)
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(42)
239
- expect(result.domain_id).to eq(2)
240
- expect(result.registrant_id).to eq(3)
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-04-27T18:08:44Z")
246
- expect(result.updated_at).to eq("2020-04-27T18:20:01Z")
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 = 42)
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", 42)
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(42)
272
- expect(result.domain_id).to eq(6)
273
- expect(result.registrant_id).to eq(1)
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(true)
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-04-24T19:19:03Z")
279
- expect(result.updated_at).to eq("2020-04-24T19:19:15Z")
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: Wed, 29 Apr 2020 19:49:41 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- Status: 202 Accepted
8
- X-RateLimit-Limit: 2400
9
- X-RateLimit-Remaining: 2397
10
- X-RateLimit-Reset: 1588193270
11
- ETag: W/"8404bf2739e44e9f69f3a5199466776d"
12
- Cache-Control: no-store, must-revalidate, private, max-age=0
13
- X-Request-Id: 10d75bcf-0066-4d38-98a2-dc18dd5b6f4c
14
- X-Runtime: 1.752154
15
- Strict-Transport-Security: max-age=31536000
16
-
17
- {
18
- "data": {
19
- "id": 42,
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: Fri, 18 Dec 2015 16:38:07 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- X-RateLimit-Limit: 4000
8
- X-RateLimit-Remaining: 3986
9
- X-RateLimit-Reset: 1450456686
10
- ETag: W/"87e018b900e5f210c3236f63d3b2f4df"
11
- Cache-Control: max-age=0, private, must-revalidate
12
- X-Request-Id: 0d6f1ea7-f702-4317-85f0-04874b69315d
13
- X-Runtime: 0.257489
14
- Strict-Transport-Security: max-age=31536000
15
-
16
- {"data":{"id":1,"account_id":1010,"registrant_id":null,"name":"example-alpha.com","unicode_name":"example-alpha.com","token":"domain-token","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2014-12-06T15:56:55Z","updated_at":"2015-12-09T00:20:56Z"}}
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: Wed, 16 Dec 2015 21:54:55 GMT
3
+ Date: Thu, 04 Jun 2020 19:37:22 GMT
4
4
  Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
5
+ Transfer-Encoding: identity
6
6
  Connection: keep-alive
7
- X-RateLimit-Limit: 4000
8
- X-RateLimit-Remaining: 3993
9
- X-RateLimit-Reset: 1450302894
10
- ETag: W/"e7282090a87379d1fa3507ba6bfd1721"
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: 3d8da18a-b8b2-4bfd-827c-860da837c80f
13
- X-Runtime: 0.020346
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":1,"account_id":1010,"registrant_id":null,"name":"example-alpha.com","unicode_name":"example-alpha.com","token":"domain-token","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2014-12-06T15:56:55Z","updated_at":"2015-12-09T00:20:56Z"}}
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: Mon, 27 Apr 2020 19:40:00 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- Status: 200 OK
8
- X-RateLimit-Limit: 2400
9
- X-RateLimit-Remaining: 2398
10
- X-RateLimit-Reset: 1588019949
11
- ETag: W/"8404bf2739e44e9f69f3a5199466776d"
12
- Cache-Control: max-age=0, private, must-revalidate
13
- X-Request-Id: 4818d867-1f72-4619-ab46-d345e6dd25eb
14
- X-Runtime: 0.092854
15
- Strict-Transport-Security: max-age=31536000
16
-
17
- {
18
- "data": {
19
- "id": 42,
20
- "domain_id": 2,
21
- "registrant_id": 3,
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: Wed, 16 Dec 2015 13:36:11 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- X-RateLimit-Limit: 4000
8
- X-RateLimit-Remaining: 3997
9
- X-RateLimit-Reset: 1450272970
10
- ETag: W/"2679531e6cce6cd326f255255d7a0005"
11
- Cache-Control: max-age=0, private, must-revalidate
12
- X-Request-Id: a87f1b44-150a-4ed0-b7da-9301fa1465b0
13
- X-Runtime: 0.093714
14
- Strict-Transport-Security: max-age=31536000
15
-
16
- {"data":[{"id":1,"account_id":1010,"registrant_id":null,"name":"example-alpha.com","unicode_name":"example-alpha.com","token":"domain-token","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2014-12-06T15:56:55Z","updated_at":"2015-12-09T00:20:56Z"},{"id":2,"account_id":1010,"registrant_id":21,"name":"example-beta.com","unicode_name":"example-beta.com","token":"domain-token","state":"registered","auto_renew":false,"private_whois":false,"expires_on":"2015-12-06","created_at":"2014-12-06T15:46:52Z","updated_at":"2015-12-09T00:20:53Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":2,"total_pages":1}}
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: chunked
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,"premium_price":null,"created_at":"2016-12-09T19:35:31Z","updated_at":"2016-12-09T19:35:31Z"}}
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: chunked
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","premium_price":null,"created_at":"2016-12-09T19:46:45Z","updated_at":"2016-12-09T19:46:45Z"}}
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: chunked
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,"premium_price":null,"created_at":"2016-12-09T19:43:41Z","updated_at":"2016-12-09T19:43:43Z"}}
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.0.0
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-05-21 00:00:00.000000000 Z
11
+ date: 2020-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty