dnsimple 5.1.0 → 5.2.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: 740c15a07bacc12086f2c0c3282e78150735247a9e85b6be0c84019a9a1a4de3
4
- data.tar.gz: 4caef1a3ce2d61bcb59f882f5195990e64eeef2fe17294afe68ec31922460c23
3
+ metadata.gz: eb65512fa0b18965225026494660cee2722a79b2bfd0f54e514c66ab4671d4c6
4
+ data.tar.gz: af619ac80882ec17cea64ba6ea7d3552688cb08a2b0306aaf2b909e8d23a5555
5
5
  SHA512:
6
- metadata.gz: 365c3a046910052fdc92c0c7a9f014f8dee87766097fcb00a182fe15b87916de86fe9649c9ec491cb9095237ee5e91cdda660142a1dccc72777b3f017ceb1351
7
- data.tar.gz: a55e3f6c772e4667086d4b007c2af15618f8555564fca8a548d3eafcfd5fe8067e06f47057c19b981aeaf55086f32019f7a9055d4b7ae51eb11715e015e3d58c
6
+ metadata.gz: 32f3d80ebbf898ed8dcd8ecd30b32f1e27caf5883f05c8a86874227a739eedd8b81cb30dbb31651797de927257d025b54bc57d9d324c5eb4fb196483ecf22e60
7
+ data.tar.gz: 5f793cf92e6b11a46eca6eaaee769580cb1b168b94d3b9e10c0605eda6865c954dacee9daf213575b950b5c7557475947c0e578d3267208b5098d96073989653
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project uses [Semantic Versioning 2.0.0](http://semver.org/).
4
4
 
5
+ ## 5.2.0
6
+
7
+ - CHANGED: `Certificate#expires_on` (date only) is deprecated in favor of `Certificate#expires_at` (timestamp). (dnsimple/dnsimple-ruby#190)
8
+
5
9
  ## 5.1.0
6
10
 
7
11
  - CHANGED: `Domain#expires_on` (date only) is deprecated in favor of `Domain#expires_at` (timestamp). (dnsimple/dnsimple-ruby#186)
@@ -4,6 +4,13 @@ module Dnsimple
4
4
  module Struct
5
5
 
6
6
  class Certificate < 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 certificate ID in DNSimple.
8
15
  attr_accessor :id
9
16
 
@@ -40,8 +47,20 @@ module Dnsimple
40
47
  # @return [String] When the certificate was last updated in DNSimple.
41
48
  attr_accessor :updated_at
42
49
 
43
- # @return [String] When the certificate will expire.
44
- attr_accessor :expires_on
50
+ # @return [String] The timestamp when the certificate will expire.
51
+ attr_accessor :expires_at
52
+
53
+ # @deprecated Please use #expires_at instead.
54
+ # @return [String] The date when the certificate will expire.
55
+ def expires_on
56
+ warn "[DEPRECATION] Certificate#expires_on is deprecated. Please use `expires_at` instead."
57
+ @expires_on
58
+ end
59
+
60
+ def expires_on=(expiration_date)
61
+ warn "[DEPRECATION] Certificate#expires_on= is deprecated. Please use `expires_at=` instead."
62
+ @expires_on = expiration_date
63
+ end
45
64
  end
46
65
 
47
66
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dnsimple
4
- VERSION = "5.1.0"
4
+ VERSION = "5.2.0"
5
5
  end
@@ -65,7 +65,7 @@ describe Dnsimple::Client, ".certificates" do
65
65
  end
66
66
 
67
67
  let(:account_id) { 1010 }
68
- let(:domain_id) { "example.com" }
68
+ let(:domain_id) { "dnsimple.us" }
69
69
 
70
70
  it "delegates to client.paginate" do
71
71
  expect(subject).to receive(:paginate).with(:certificates, account_id, domain_id, foo: "bar")
@@ -73,16 +73,16 @@ describe Dnsimple::Client, ".certificates" do
73
73
  end
74
74
 
75
75
  it "supports sorting" do
76
- subject.all_certificates(account_id, domain_id, sort: "id:asc,expires_on:desc")
76
+ subject.all_certificates(account_id, domain_id, sort: "id:asc,expiration:desc")
77
77
 
78
- expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/domains/#{domain_id}/certificates?page=1&per_page=100&sort=id:asc,expires_on:desc")
78
+ expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/domains/#{domain_id}/certificates?page=1&per_page=100&sort=id:asc,expiration:desc")
79
79
  end
80
80
  end
81
81
 
82
82
  describe "#certificate" do
83
83
  let(:account_id) { 1010 }
84
- let(:domain_id) { "weppos.net" }
85
- let(:certificate_id) { 1 }
84
+ let(:domain_id) { "bingo.pizza" }
85
+ let(:certificate_id) { 101967 }
86
86
 
87
87
  before do
88
88
  stub_request(:get, %r{/v2/#{account_id}/domains/#{domain_id}/certificates/#{certificate_id}})
@@ -108,19 +108,20 @@ describe Dnsimple::Client, ".certificates" do
108
108
 
109
109
  result = response.data
110
110
  expect(result).to be_a(Dnsimple::Struct::Certificate)
111
- expect(result.id).to eq(1)
112
- expect(result.domain_id).to eq(2)
113
- expect(result.contact_id).to eq(3)
114
- expect(result.common_name).to eq("www.weppos.net")
115
- expect(result.alternate_names).to eq(%w( weppos.net www.weppos.net ))
111
+ expect(result.id).to eq(101967)
112
+ expect(result.domain_id).to eq(289333)
113
+ expect(result.contact_id).to eq(2511)
114
+ expect(result.common_name).to eq("www.bingo.pizza")
115
+ expect(result.alternate_names).to eq([])
116
116
  expect(result.years).to eq(1)
117
- expect(result.csr).to eq("-----BEGIN CERTIFICATE REQUEST-----\nMIICljCCAX4CAQAwGTEXMBUGA1UEAwwOd3d3LndlcHBvcy5uZXQwggEiMA0GCSqG\nSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3MJwx9ahBG3kAwRjQdRvYZqtovUaxY6jp\nhd09975gO+2eYPDbc1yhNftVJ4KBT0zdEqzX0CwIlxE1MsnZ2YOsC7IJO531hMBp\ndBxM4tSG07xPz70AVUi9rY6YCUoJHmxoFbclpHFbtXZocR393WyzUK8047uM2mlz\n03AZKcMdyfeuo2/9TcxpTSCkklGqwqS9wtTogckaDHJDoBunAkMioGfOSMe7Yi6E\nYRtG4yPJYsDaq2yPJWV8+i0PFR1Wi5RCnPt0YdQWstHuZrxABi45+XVkzKtz3TUc\nYxrvPBucVa6uzd953u8CixNFkiOefvb/dajsv1GIwH6/Cvc1ftz1AgMBAAGgODA2\nBgkqhkiG9w0BCQ4xKTAnMCUGA1UdEQQeMByCDnd3dy53ZXBwb3MubmV0ggp3ZXBw\nb3MubmV0MA0GCSqGSIb3DQEBCwUAA4IBAQCDnVBO9RdJX0eFeZzlv5c8yG8duhKP\nl0Vl+V88fJylb/cbNj9qFPkKTK0vTXmS2XUFBChKPtLucp8+Z754UswX+QCsdc7U\nTTSG0CkyilcSubdZUERGej1XfrVQhrokk7Fu0Jh3BdT6REP0SIDTpA8ku/aRQiAp\np+h19M37S7+w/DMGDAq2LSX8jOpJ1yIokRDyLZpmwyLxutC21DXMGoJ3xZeUFrUT\nqRNwzkn2dJzgTrPkzhaXalUBqv+nfXHqHaWljZa/O0NVCFrHCdTdd53/6EE2Yabv\nq5SFTkRCpaxrvM/7a8Tr4ixD1/VKD6rw3+WC00000000000000000000\n-----END CERTIFICATE REQUEST-----\n")
117
+ expect(result.csr).to eq("-----BEGIN CERTIFICATE REQUEST-----\nMIICmTCCAYECAQAwGjEYMBYGA1UEAwwPd3d3LmJpbmdvLnBpenphMIIBIjANBgkq\nhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw4+KoZ9IDCK2o5qAQpi+Icu5kksmjQzx\n5o5g4B6XhRxhsfHlK/i3iU5hc8CONjyVv8j82835RNsiKrflnxGa9SH68vbQfcn4\nIpbMz9c+Eqv5h0Euqlc3A4DBzp0unEu5QAUhR6Xu1TZIWDPjhrBOGiszRlLQcp4F\nzy6fD6j5/d/ylpzTp5v54j+Ey31Bz86IaBPtSpHI+Qk87Hs8DVoWxZk/6RlAkyur\nXDGWnPu9n3RMfs9ag5anFhggLIhCNtVN4+0vpgPQ59pqwYo8TfdYzK7WSKeL7geu\nCqVE3bHAqU6dLtgHOZfTkLwGycUh4p9aawuc6fsXHHYDpIL8s3vAvwIDAQABoDow\nOAYJKoZIhvcNAQkOMSswKTAnBgNVHREEIDAeggtiaW5nby5waXp6YYIPd3d3LmJp\nbmdvLnBpenphMA0GCSqGSIb3DQEBCwUAA4IBAQBwOLKv+PO5hSJkgqS6wL/wRqLh\nQ1zbcHRHAjRjnpRz06cDvN3X3aPI+lpKSNFCI0A1oKJG7JNtgxX3Est66cuO8ESQ\nPIb6WWN7/xlVlBCe7ZkjAFgN6JurFdclwCp/NI5wBCwj1yb3Ar5QQMFIZOezIgTI\nAWkQSfCmgkB96d6QlDWgidYDDjcsXugQveOQRPlHr0TsElu47GakxZdJCFZU+WPM\nodQQf5SaqiIK2YaH1dWO//4KpTS9QoTy1+mmAa27apHcmz6X6+G5dvpHZ1qH14V0\nJoMWIK+39HRPq6mDo1UMVet/xFUUrG/H7/tFlYIDVbSpVlpVAFITd/eQkaW/\n-----END CERTIFICATE REQUEST-----\n")
118
118
  expect(result.state).to eq("issued")
119
119
  expect(result.authority_identifier).to eq("letsencrypt")
120
120
  expect(result.auto_renew).to be(false)
121
- expect(result.created_at).to eq("2016-06-11T18:47:08Z")
122
- expect(result.updated_at).to eq("2016-06-11T18:47:37Z")
123
- expect(result.expires_on).to eq("2016-09-09")
121
+ expect(result.created_at).to eq("2020-06-18T18:54:17Z")
122
+ expect(result.updated_at).to eq("2020-06-18T19:10:14Z")
123
+ expect(result.expires_on).to eq("2020-09-16")
124
+ expect(result.expires_at).to eq("2020-09-16T18:10:13Z")
124
125
  end
125
126
 
126
127
  context "when the certificate does not exist" do
@@ -231,7 +232,7 @@ describe Dnsimple::Client, ".certificates" do
231
232
 
232
233
  describe "#purchase_letsencrypt_certificate" do
233
234
  let(:account_id) { 1010 }
234
- let(:domain_id) { "example.com" }
235
+ let(:domain_id) { "bingo.pizza" }
235
236
  let(:contact_id) { 100 }
236
237
 
237
238
  before do
@@ -264,9 +265,9 @@ describe Dnsimple::Client, ".certificates" do
264
265
  result = response.data
265
266
  expect(result).to be_a(Dnsimple::Struct::CertificatePurchase)
266
267
 
267
- expect(result.id).to eq(300)
268
- expect(result.certificate_id).to eq(300)
269
- expect(result.state).to eq("requesting")
268
+ expect(result.id).to eq(101967)
269
+ expect(result.certificate_id).to eq(101967)
270
+ expect(result.state).to eq("new")
270
271
  expect(result.auto_renew).to be(false)
271
272
  end
272
273
 
@@ -284,8 +285,8 @@ describe Dnsimple::Client, ".certificates" do
284
285
 
285
286
  describe "#issue_letsencrypt_certificate" do
286
287
  let(:account_id) { 1010 }
287
- let(:domain_id) { "example.com" }
288
- let(:certificate_id) { 200 }
288
+ let(:domain_id) { "bingo.pizza" }
289
+ let(:certificate_id) { 101967 }
289
290
 
290
291
  before do
291
292
  stub_request(:post, %r{/v2/#{account_id}/domains/#{domain_id}/certificates/letsencrypt/#{certificate_id}/issue})
@@ -306,9 +307,9 @@ describe Dnsimple::Client, ".certificates" do
306
307
  result = response.data
307
308
  expect(result).to be_a(Dnsimple::Struct::Certificate)
308
309
 
309
- expect(result.id).to eq(200)
310
- expect(result.domain_id).to eq(300)
311
- expect(result.common_name).to eq("www.example.com")
310
+ expect(result.id).to eq(101967)
311
+ expect(result.domain_id).to eq(289333)
312
+ expect(result.common_name).to eq("www.bingo.pizza")
312
313
  expect(result.alternate_names).to eq([])
313
314
  expect(result.years).to eq(1)
314
315
  expect(result.csr).to be(nil)
@@ -342,8 +343,8 @@ describe Dnsimple::Client, ".certificates" do
342
343
 
343
344
  describe "#purchase_letsencrypt_certificate_renewal" do
344
345
  let(:account_id) { 1010 }
345
- let(:domain_id) { "example.com" }
346
- let(:certificate_id) { 200 }
346
+ let(:domain_id) { "bingo.pizza" }
347
+ let(:certificate_id) { 101967 }
347
348
 
348
349
  before do
349
350
  stub_request(:post, %r{/v2/#{account_id}/domains/#{domain_id}/certificates/letsencrypt/#{certificate_id}/renewals})
@@ -373,9 +374,9 @@ describe Dnsimple::Client, ".certificates" do
373
374
  result = response.data
374
375
  expect(result).to be_a(Dnsimple::Struct::CertificateRenewal)
375
376
 
376
- expect(result.id).to eq(999)
377
+ expect(result.id).to eq(65082)
377
378
  expect(result.old_certificate_id).to eq(certificate_id)
378
- expect(result.new_certificate_id).to eq(300)
379
+ expect(result.new_certificate_id).to eq(101972)
379
380
  expect(result.state).to eq("new")
380
381
  end
381
382
 
@@ -393,9 +394,9 @@ describe Dnsimple::Client, ".certificates" do
393
394
 
394
395
  describe "#issue_letsencrypt_certificate_renewal" do
395
396
  let(:account_id) { 1010 }
396
- let(:domain_id) { "example.com" }
397
- let(:certificate_id) { 300 }
398
- let(:certificate_renewal_id) { 999 }
397
+ let(:domain_id) { "bingo.pizza" }
398
+ let(:certificate_id) { 101972 }
399
+ let(:certificate_renewal_id) { 65082 }
399
400
 
400
401
  before do
401
402
  stub_request(:post, %r{/v2/#{account_id}/domains/#{domain_id}/certificates/letsencrypt/#{certificate_id}/renewals/#{certificate_renewal_id}/issue})
@@ -416,9 +417,9 @@ describe Dnsimple::Client, ".certificates" do
416
417
  result = response.data
417
418
  expect(result).to be_a(Dnsimple::Struct::Certificate)
418
419
 
419
- expect(result.id).to eq(300)
420
- expect(result.domain_id).to eq(300)
421
- expect(result.common_name).to eq("www.example.com")
420
+ expect(result.id).to eq(101972)
421
+ expect(result.domain_id).to eq(289333)
422
+ expect(result.common_name).to eq("www.bingo.pizza")
422
423
  expect(result.alternate_names).to eq([])
423
424
  expect(result.years).to eq(1)
424
425
  expect(result.csr).to be(nil)
@@ -1,21 +1,21 @@
1
1
  HTTP/1.1 200 OK
2
2
  Server: nginx
3
- Date: Fri, 08 Jul 2016 15:38:13 GMT
3
+ Date: Thu, 18 Jun 2020 19:16:29 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: 2400
8
- X-RateLimit-Remaining: 2396
9
- X-RateLimit-Reset: 1467993483
10
- ETag: W/"cf565290606493623c2dd9fee039b9f1"
7
+ X-RateLimit-Limit: 4800
8
+ X-RateLimit-Remaining: 4797
9
+ X-RateLimit-Reset: 1592510057
10
+ ETag: W/"9ace4f536d7b618fd4b38efd3cea9d1f"
11
11
  Cache-Control: max-age=0, private, must-revalidate
12
- X-Request-Id: b6d5717d-d660-41dd-996c-4cc151d1f872
13
- X-Runtime: 0.037324
12
+ X-Request-Id: 83905116-1333-4b07-ace4-d0db9e90c4fa
13
+ X-Runtime: 0.012798
14
+ X-Frame-Options: DENY
14
15
  X-Content-Type-Options: nosniff
16
+ X-XSS-Protection: 1; mode=block
15
17
  X-Download-Options: noopen
16
- X-Frame-Options: DENY
17
18
  X-Permitted-Cross-Domain-Policies: none
18
- X-XSS-Protection: 1; mode=block
19
19
  Strict-Transport-Security: max-age=31536000
20
20
 
21
- {"data":{"id":1,"domain_id":2,"contact_id":3,"name":"www","common_name":"www.weppos.net","years":1,"csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIICljCCAX4CAQAwGTEXMBUGA1UEAwwOd3d3LndlcHBvcy5uZXQwggEiMA0GCSqG\nSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3MJwx9ahBG3kAwRjQdRvYZqtovUaxY6jp\nhd09975gO+2eYPDbc1yhNftVJ4KBT0zdEqzX0CwIlxE1MsnZ2YOsC7IJO531hMBp\ndBxM4tSG07xPz70AVUi9rY6YCUoJHmxoFbclpHFbtXZocR393WyzUK8047uM2mlz\n03AZKcMdyfeuo2/9TcxpTSCkklGqwqS9wtTogckaDHJDoBunAkMioGfOSMe7Yi6E\nYRtG4yPJYsDaq2yPJWV8+i0PFR1Wi5RCnPt0YdQWstHuZrxABi45+XVkzKtz3TUc\nYxrvPBucVa6uzd953u8CixNFkiOefvb/dajsv1GIwH6/Cvc1ftz1AgMBAAGgODA2\nBgkqhkiG9w0BCQ4xKTAnMCUGA1UdEQQeMByCDnd3dy53ZXBwb3MubmV0ggp3ZXBw\nb3MubmV0MA0GCSqGSIb3DQEBCwUAA4IBAQCDnVBO9RdJX0eFeZzlv5c8yG8duhKP\nl0Vl+V88fJylb/cbNj9qFPkKTK0vTXmS2XUFBChKPtLucp8+Z754UswX+QCsdc7U\nTTSG0CkyilcSubdZUERGej1XfrVQhrokk7Fu0Jh3BdT6REP0SIDTpA8ku/aRQiAp\np+h19M37S7+w/DMGDAq2LSX8jOpJ1yIokRDyLZpmwyLxutC21DXMGoJ3xZeUFrUT\nqRNwzkn2dJzgTrPkzhaXalUBqv+nfXHqHaWljZa/O0NVCFrHCdTdd53/6EE2Yabv\nq5SFTkRCpaxrvM/7a8Tr4ixD1/VKD6rw3+WC00000000000000000000\n-----END CERTIFICATE REQUEST-----\n","state":"issued","auto_renew":false,"alternate_names":["weppos.net", "www.weppos.net"],"authority_identifier":"letsencrypt","created_at":"2016-06-11T18:47:08Z","updated_at":"2016-06-11T18:47:37Z","expires_on":"2016-09-09"}}
21
+ {"data":{"id":101967,"domain_id":289333,"contact_id":2511,"name":"www","common_name":"www.bingo.pizza","years":1,"csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIICmTCCAYECAQAwGjEYMBYGA1UEAwwPd3d3LmJpbmdvLnBpenphMIIBIjANBgkq\nhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw4+KoZ9IDCK2o5qAQpi+Icu5kksmjQzx\n5o5g4B6XhRxhsfHlK/i3iU5hc8CONjyVv8j82835RNsiKrflnxGa9SH68vbQfcn4\nIpbMz9c+Eqv5h0Euqlc3A4DBzp0unEu5QAUhR6Xu1TZIWDPjhrBOGiszRlLQcp4F\nzy6fD6j5/d/ylpzTp5v54j+Ey31Bz86IaBPtSpHI+Qk87Hs8DVoWxZk/6RlAkyur\nXDGWnPu9n3RMfs9ag5anFhggLIhCNtVN4+0vpgPQ59pqwYo8TfdYzK7WSKeL7geu\nCqVE3bHAqU6dLtgHOZfTkLwGycUh4p9aawuc6fsXHHYDpIL8s3vAvwIDAQABoDow\nOAYJKoZIhvcNAQkOMSswKTAnBgNVHREEIDAeggtiaW5nby5waXp6YYIPd3d3LmJp\nbmdvLnBpenphMA0GCSqGSIb3DQEBCwUAA4IBAQBwOLKv+PO5hSJkgqS6wL/wRqLh\nQ1zbcHRHAjRjnpRz06cDvN3X3aPI+lpKSNFCI0A1oKJG7JNtgxX3Est66cuO8ESQ\nPIb6WWN7/xlVlBCe7ZkjAFgN6JurFdclwCp/NI5wBCwj1yb3Ar5QQMFIZOezIgTI\nAWkQSfCmgkB96d6QlDWgidYDDjcsXugQveOQRPlHr0TsElu47GakxZdJCFZU+WPM\nodQQf5SaqiIK2YaH1dWO//4KpTS9QoTy1+mmAa27apHcmz6X6+G5dvpHZ1qH14V0\nJoMWIK+39HRPq6mDo1UMVet/xFUUrG/H7/tFlYIDVbSpVlpVAFITd/eQkaW/\n-----END CERTIFICATE REQUEST-----\n","state":"issued","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2020-06-18T18:54:17Z","updated_at":"2020-06-18T19:10:14Z","expires_at":"2020-09-16T18:10:13Z","expires_on":"2020-09-16"}}
@@ -1,21 +1,19 @@
1
- HTTP/1.1 202 Accepted
2
- Server: nginx
3
- Date: Wed, 18 Oct 2017 15:42:19 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- X-RateLimit-Limit: 2400
8
- X-RateLimit-Remaining: 2398
9
- X-RateLimit-Reset: 1508344833
10
- ETag: W/"2d6bbf090ba2144b097e33cb3d8964e4"
11
- Cache-Control: max-age=0, private, must-revalidate
12
- X-Request-Id: 50628584-cc2f-4543-8775-4f7c8196078b
13
- X-Runtime: 0.771481
14
- X-Content-Type-Options: nosniff
15
- X-Download-Options: noopen
16
- X-Frame-Options: DENY
17
- X-Permitted-Cross-Domain-Policies: none
18
- X-XSS-Protection: 1; mode=block
19
- Strict-Transport-Security: max-age=31536000
20
-
21
- {"data":{"id":200,"domain_id":300,"contact_id":100,"name":"www","common_name":"www.example.com","years":1,"csr":null,"state":"requesting","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2017-10-18T15:40:32Z","updated_at":"2017-10-18T15:42:18Z","expires_on":null}}
1
+ HTTP/1.1 202 Accepted
2
+ Server: nginx
3
+ Date: Thu, 18 Jun 2020 18:56:21 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: identity
6
+ Connection: keep-alive
7
+ X-RateLimit-Limit: 4800
8
+ X-RateLimit-Remaining: 4798
9
+ X-RateLimit-Reset: 1592510057
10
+ Cache-Control: no-cache
11
+ X-Request-Id: 1d6bdd7c-a88e-4ac2-9d12-36699a32b006
12
+ X-Runtime: 0.884870
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":101967,"domain_id":289333,"contact_id":2511,"name":"www","common_name":"www.bingo.pizza","years":1,"csr":null,"state":"requesting","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2020-06-18T18:54:17Z","updated_at":"2020-06-18T18:56:20Z","expires_at":null,"expires_on":null}}
@@ -1,21 +1,19 @@
1
- HTTP/1.1 202 Accepted
2
- Server: nginx
3
- Date: Thu, 19 Oct 2017 08:22:17 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- X-RateLimit-Limit: 2400
8
- X-RateLimit-Remaining: 2398
9
- X-RateLimit-Reset: 1508404733
10
- ETag: W/"8dfa538f5255d47f11d016dbb1c26059"
11
- Cache-Control: max-age=0, private, must-revalidate
12
- X-Request-Id: 185ad43f-1e34-43fb-a4aa-0359c9f95f2d
13
- X-Runtime: 0.853294
14
- X-Content-Type-Options: nosniff
15
- X-Download-Options: noopen
16
- X-Frame-Options: DENY
17
- X-Permitted-Cross-Domain-Policies: none
18
- X-XSS-Protection: 1; mode=block
19
- Strict-Transport-Security: max-age=31536000
20
-
21
- {"data":{"id":300,"domain_id":300,"contact_id":100,"name":"www","common_name":"www.example.com","years":1,"csr":null,"state":"requesting","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2017-10-19T08:18:53Z","updated_at":"2017-10-19T08:22:17Z","expires_on":null}}
1
+ HTTP/1.1 202 Accepted
2
+ Server: nginx
3
+ Date: Thu, 18 Jun 2020 20:05:26 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: identity
6
+ Connection: keep-alive
7
+ X-RateLimit-Limit: 4800
8
+ X-RateLimit-Remaining: 4798
9
+ X-RateLimit-Reset: 1592513780
10
+ Cache-Control: no-cache
11
+ X-Request-Id: a7194bb4-aea4-42c6-846f-cd96f5f3cf5c
12
+ X-Runtime: 0.897152
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":101972,"domain_id":289333,"contact_id":2511,"name":"www","common_name":"www.bingo.pizza","years":1,"csr":null,"state":"requesting","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2020-06-18T19:56:20Z","updated_at":"2020-06-18T20:05:26Z","expires_at":null,"expires_on":null}}
@@ -1,21 +1,21 @@
1
1
  HTTP/1.1 200 OK
2
2
  Server: nginx
3
- Date: Fri, 08 Jul 2016 15:38:52 GMT
3
+ Date: Thu, 18 Jun 2020 20:35:23 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: 2400
8
- X-RateLimit-Remaining: 2394
9
- X-RateLimit-Reset: 1467993483
10
- ETag: W/"69a9ce919d99cc8f27183b74a5eb22a9"
7
+ X-RateLimit-Limit: 4800
8
+ X-RateLimit-Remaining: 4797
9
+ X-RateLimit-Reset: 1592513780
10
+ ETag: W/"29d46b533190f5693be4f1133adf99c0"
11
11
  Cache-Control: max-age=0, private, must-revalidate
12
- X-Request-Id: 8936089b-f44a-4303-bb65-b39e835f9973
13
- X-Runtime: 0.036570
12
+ X-Request-Id: 6f25214b-8e5a-4095-8e44-d7998b05aa8d
13
+ X-Runtime: 0.026239
14
+ X-Frame-Options: DENY
14
15
  X-Content-Type-Options: nosniff
16
+ X-XSS-Protection: 1; mode=block
15
17
  X-Download-Options: noopen
16
- X-Frame-Options: DENY
17
18
  X-Permitted-Cross-Domain-Policies: none
18
- X-XSS-Protection: 1; mode=block
19
19
  Strict-Transport-Security: max-age=31536000
20
20
 
21
- {"data":[{"id":1,"domain_id":10,"contact_id":3,"name":"www","common_name":"www.weppos.net","years":1,"csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIICljCCAX4CAQAwGTEXMBUGA1UEAwwOd3d3LndlcHBvcy5uZXQwggEiMA0GCSqG\nSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3MJwx9ahBG3kAwRjQdRvYZqtovUaxY6jp\nhd09975gO+2eYPDbc1yhNftVJ4KBT0zdEqzX0CwIlxE1MsnZ2YOsC7IJO531hMBp\ndBxM4tSG07xPz70AVUi9rY6YCUoJHmxoFbclpHFbtXZocR393WyzUK8047uM2mlz\n03AZKcMdyfeuo2/9TcxpTSCkklGqwqS9wtTogckaDHJDoBunAkMioGfOSMe7Yi6E\nYRtG4yPJYsDaq2yPJWV8+i0PFR1Wi5RCnPt0YdQWstHuZrxABi45+XVkzKtz3TUc\nYxrvPBucVa6uzd953u8CixNFkiOefvb/dajsv1GIwH6/Cvc1ftz1AgMBAAGgODA2\nBgkqhkiG9w0BCQ4xKTAnMCUGA1UdEQQeMByCDnd3dy53ZXBwb3MubmV0ggp3ZXBw\nb3MubmV0MA0GCSqGSIb3DQEBCwUAA4IBAQCDnVBO9RdJX0eFeZzlv5c8yG8duhKP\n0000000000000/cbNj9qFPkKTK0vTXmS2XUFBChKPtLucp8+Z754UswX+QCsdc7U\nTTSG0CkyilcSubdZUERGej1XfrVQhrokk7Fu0Jh3BdT6REP0SIDTpA8ku/aRQiAp\np+h19M37S7+w/DMGDAq2LSX8jOpJ1yIokRDyLZpmwyLxutC21DXMGoJ3xZeUFrUT\nqRNwzkn2dJzgTrPkzhaXalUBqv+nfXHqHaWljZa/O0NVCFrHCdTdd53/6EE2Yabv\nq5SFTkRCpaxrvM/7a8Tr4ixD1/VKD6rw3+WCvyS4GWK7knhiI1nZH3PI\n-----END CERTIFICATE REQUEST-----\n","state":"issued","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2016-06-11T18:47:08Z","updated_at":"2016-06-11T18:47:37Z","expires_on":"2016-09-09"},{"id":2,"domain_id":10,"contact_id":3,"name":"www","common_name":"www.weppos.net","years":1,"csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIICljCCAX4CAQAwGTEXMBUGA1UEAwwOd3d3LndlcHBvcy5uZXQwggEiMA0GCSqG\nSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDEhv18Sz4nQtjCDseXREuFIZW88yK7M5gM\nw2WuVmxTfn3MGprPtIevPJ0gzR4foMpnOKjR/wW8DpbvvNPNo5FAsYf+mr84rMft\nUjOQWfqcraWWHmss/Ytq45uTie8M1/C4Pr+FFfbOwwWz/DqVao5RQ34q+LIPpV62\nwRkg0m14FqT8gjNNM0XAsrfT7M+kvfsS+FbyJ7G9K0tj3wgqaEuKAQtJn7MPflM8\nfG0TqLJ+NSuI/Zfmtol3XzBD/AoViu0F8Sqp5OR8Ej4ZdmbKR+om+U+MX9LwF8MD\nwCtMAIaGF4JkgrpiGrbAKIpXwkuxJ8wWrkwhxu18z/OhJEBW+wFjAgMBAAGgODA2\nBgkqhkiG9w0BCQ4xKTAnMCUGA1UdEQQeMByCDnd3dy53ZXBwb3MubmV0ggp3ZXBw\nb3MubmV0MA0GCSqGSIb3DQEBCwUAA4IBAQBuDDwhTjU7pAGHU1dUthfznvFqjY2I\n7CNEaUSxlXdxyZs34cwx28F7iMDE8Gh7B3QkuS3c2CTtAQsxnWKebgLYJ8w8XLN1\n9mZtNhT8yXKzLDfC9KuzKw467sbxYf8bLsuyFdQ8sBNp+8es9OwVgYsPwZ4NBtOn\nQlwtBBBdxrF5zCQgQXZsFmymf/o4nLU66ouW1MVjoG608dthoBYiIIiPRx3c+Rjd\ni8JHn2qIKF7AJfJy/H8TLgtE1bt08tfDA9ztuX2zb/lvXrVu4aLBjOF+Fn3b+EqX\n6gR0m+Id0b3t3ORN1QU0SBiyrXXJbo6E+cpYKeWlnkf0000000000000\n-----END CERTIFICATE REQUEST-----\n","state":"issued","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2016-05-25T15:56:06Z","updated_at":"2016-05-25T17:10:39Z","expires_on":null}],"pagination":{"current_page":1,"per_page":30,"total_entries":2,"total_pages":1}}
21
+ {"data":[{"id":101973,"domain_id":14279,"contact_id":11435,"name":"www2","common_name":"www2.dnsimple.us","years":1,"csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIICYDCCAUgCAQAwGzEZMBcGA1UEAwwQd3d3Mi5kbnNpbXBsZS51czCCASIwDQYJ\nKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMjXrephLTu7OKVQ6F3LhmLkL6NL3ier\n1qaWPtJBbkBuzJIn8gmSG+6xGmywB6GKvP2IVkPQhPBpfc8wsTd26rbSBHnRIQal\ntk+W4aQZyIeXFARY+cRvpjeAtmpX0vwZkDMoEyhFomBfGxVfx6tSqdGlR88/x0By\ny5u7+xwkY+4jMt+wZi+wpXsScumB6DAC1PTYRvNFQy7Gcjqrc3EdzPsn3c9kLCNO\n3GCPJoWmT5Rtyd7FxjJiSIf7BDOi12BnblpSLwGvtu6Wrl+u9LJLj8zeCACwUiQG\nuvnP2lAl2YacNAgpql6C2eEnFjIub7Ul1QMUImQSDVy5dMd/UGQrOb0CAwEAAaAA\nMA0GCSqGSIb3DQEBCwUAA4IBAQA8oVxOrZCGeSFmKpNV4oilzPOepTVSWxXa19T7\nzD/azh6j6RBLZPpG4TFbpvjecum+1V7Y8ypIcwhRtlh5/zSbfJkjJsdCdZU9XZat\nT5YkOaxuCUCDajpRiyyKhHvrloTPKPXe5ygCq/Q23xm//VrXKArLSWVB9qWS6gDV\nk0y3/mIlTQ3mTgfYQySc3MPXvIgUoqmB8Ajfq1n3hSLgb1/OoKNfeVEWsON116cq\nbXvl63+XzPubj6KWZXZH/jhrs53fuLq3xyeeuOaPrn+2VceBVt4DCC9n0JS5wepl\nHDoVxtWTTNeJdP5xFB5V1KI+D4FEFBUGnQABEvajpU3vljh3\n-----END CERTIFICATE REQUEST-----\n","state":"issued","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2020-06-18T20:15:09Z","updated_at":"2020-06-18T20:30:08Z","expires_at":"2020-09-16T19:30:07Z","expires_on":"2020-09-16"},{"id":101969,"domain_id":14279,"contact_id":11435,"name":"www","common_name":"www.dnsimple.us","years":1,"csr":"-----BEGIN CERTIFICATE REQUEST-----\nMIICmTCCAYECAQAwGjEYMBYGA1UEAwwPd3d3LmRuc2ltcGxlLnVzMIIBIjANBgkq\nhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4rVs1z42xmPj6KdE++D182/wyMH1GG4p\nESK99FQbMimjOvYcidFTySKpSvEv5Dhmj5fb79vogBuCZQetm5Es37Gboc+D02SO\n48uE8LisuYhx1yBKryXSYnVaWz9oxEuVLtf+aq/Yt1HTu3/zzMWKPRN79OmYgWnl\n03ISfDmgzxqViYPIAObge8nB5TzlQbDV9W9eQWs12IYg4pfI+b+c9VrnMYjdz2Lk\nEhIYThIQRSi5IfNbDu8YiG87V0bTtzeT6lq2Lh3+IkyhBkF10xaivnwac1MfK/25\ntZg2PYCzG56Bf3xTtjo5P0Eb7LlBZLlwLs3hXvlU0eV2LAWm38v3wwIDAQABoDow\nOAYJKoZIhvcNAQkOMSswKTAnBgNVHREEIDAeggtkbnNpbXBsZS51c4IPd3d3LmRu\nc2ltcGxlLnVzMA0GCSqGSIb3DQEBCwUAA4IBAQBiYQ5/Dp2JML1UgYmUNqfOfKKV\nZS9HiX1OcR6bkHHIEzDV1iqDdZ/0Uqr7p6rmLkVIaDWUdano2jtMEIRGC1c8q9bH\nRlzubdyYXbBGE+iGho5crzu5Hwit3Z3J2C6f28NvfqN5Ume3jLr90qbG+1HULsUF\nR3tCKTzvvs4QAKXbo+eEafDNFToGzd0cxpesdlzu3zDu5rHfLz862QifmWZzN6JS\nj1/Q+TedS5EknTaOwGjm1od0zuD3YRJ+XzGq1G8MbuxYWXqaGQRo0TzZlYW6Ax1C\n9utnEQ5Uc+z9ejjZSv03p1VzO7bV7AOz3F40M3IfM8qQ4YMeXbGWJ98jrWDe\n-----END CERTIFICATE REQUEST-----\n","state":"issued","auto_renew":false,"alternate_names":[],"authority_identifier":"letsencrypt","created_at":"2020-06-18T19:22:51Z","updated_at":"2020-06-18T19:40:13Z","expires_at":"2020-09-16T18:40:12Z","expires_on":"2020-09-16"}],"pagination":{"current_page":1,"per_page":30,"total_entries":2,"total_pages":1}}
@@ -1,21 +1,21 @@
1
- HTTP/1.1 201 Created
2
- Server: nginx
3
- Date: Wed, 18 Oct 2017 15:40:32 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- X-RateLimit-Limit: 2400
8
- X-RateLimit-Remaining: 2399
9
- X-RateLimit-Reset: 1508344832
10
- ETag: W/"88b289ef19331082113a0c9cb32376da"
11
- Cache-Control: max-age=0, private, must-revalidate
12
- X-Request-Id: 119f2d5b-2521-49ec-804d-715a10eeabc6
13
- X-Runtime: 0.095302
14
- X-Content-Type-Options: nosniff
15
- X-Download-Options: noopen
16
- X-Frame-Options: DENY
17
- X-Permitted-Cross-Domain-Policies: none
18
- X-XSS-Protection: 1; mode=block
19
- Strict-Transport-Security: max-age=31536000
20
-
21
- {"data":{"id":300,"certificate_id":300,"state":"requesting","auto_renew":false,"created_at":"2017-10-19T08:18:53Z","updated_at":"2017-10-19T08:22:17Z","expires_on":null}}
1
+ HTTP/1.1 201 Created
2
+ Server: nginx
3
+ Date: Thu, 18 Jun 2020 18:54:17 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: identity
6
+ Connection: keep-alive
7
+ X-RateLimit-Limit: 4800
8
+ X-RateLimit-Remaining: 4799
9
+ X-RateLimit-Reset: 1592510057
10
+ ETag: W/"36ffdd6505ed488a3aeeaace031c5869"
11
+ Cache-Control: max-age=0, private, must-revalidate
12
+ X-Request-Id: 4e99c95d-6d19-48ea-8d63-e68432631c90
13
+ X-Runtime: 0.098745
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":101967,"certificate_id":101967,"state":"new","auto_renew":false,"created_at":"2020-06-18T18:54:17Z","updated_at":"2020-06-18T18:54:17Z"}}
@@ -1,21 +1,21 @@
1
- HTTP/1.1 201 Created
2
- Server: nginx
3
- Date: Thu, 19 Oct 2017 08:18:53 GMT
4
- Content-Type: application/json; charset=utf-8
5
- Transfer-Encoding: chunked
6
- Connection: keep-alive
7
- X-RateLimit-Limit: 2400
8
- X-RateLimit-Remaining: 2399
9
- X-RateLimit-Reset: 1508404733
10
- ETag: W/"bda500d2cac6b1c4903e77e8113e9cdf"
11
- Cache-Control: max-age=0, private, must-revalidate
12
- X-Request-Id: 64115047-ced5-40d1-b673-e2fc51ad7587
13
- X-Runtime: 0.072374
14
- X-Content-Type-Options: nosniff
15
- X-Download-Options: noopen
16
- X-Frame-Options: DENY
17
- X-Permitted-Cross-Domain-Policies: none
18
- X-XSS-Protection: 1; mode=block
19
- Strict-Transport-Security: max-age=31536000
20
-
21
- {"data":{"id":999,"old_certificate_id":200,"new_certificate_id":300,"state":"new","auto_renew":false,"created_at":"2017-10-19T08:18:53Z","updated_at":"2017-10-19T08:18:53Z"}}
1
+ HTTP/1.1 201 Created
2
+ Server: nginx
3
+ Date: Thu, 18 Jun 2020 19:56:20 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: identity
6
+ Connection: keep-alive
7
+ X-RateLimit-Limit: 4800
8
+ X-RateLimit-Remaining: 4799
9
+ X-RateLimit-Reset: 1592513780
10
+ ETag: W/"84dd908f85153590082766bd8d1f1056"
11
+ Cache-Control: max-age=0, private, must-revalidate
12
+ X-Request-Id: f43f4d80-a7eb-43d3-b1ec-95eba413894e
13
+ X-Runtime: 0.091216
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":65082,"old_certificate_id":101967,"new_certificate_id":101972,"state":"new","auto_renew":false,"created_at":"2020-06-18T19:56:20Z","updated_at":"2020-06-18T19:56:20Z"}}
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.1.0
4
+ version: 5.2.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-06-10 00:00:00.000000000 Z
11
+ date: 2020-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty