dnsimple 4.6.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +12 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +9 -13
- data/.rubocop_dnsimple.yml +42 -40
- data/.rubocop_todo.yml +44 -5
- data/.travis.yml +14 -8
- data/CHANGELOG.md +56 -26
- data/CONTRIBUTING.md +43 -0
- data/Gemfile +6 -1
- data/LICENSE.txt +1 -1
- data/README.md +10 -7
- data/dnsimple.gemspec +3 -3
- data/lib/dnsimple.rb +2 -0
- data/lib/dnsimple/client.rb +23 -13
- data/lib/dnsimple/client/accounts.rb +2 -0
- data/lib/dnsimple/client/certificates.rb +2 -0
- data/lib/dnsimple/client/clients.rb +5 -2
- data/lib/dnsimple/client/contacts.rb +2 -0
- data/lib/dnsimple/client/domains.rb +3 -19
- data/lib/dnsimple/client/domains_collaborators.rb +2 -0
- data/lib/dnsimple/client/domains_delegation_signer_records.rb +2 -0
- data/lib/dnsimple/client/domains_dnssec.rb +2 -0
- data/lib/dnsimple/client/domains_email_forwards.rb +2 -0
- data/lib/dnsimple/client/domains_pushes.rb +2 -0
- data/lib/dnsimple/client/identity.rb +2 -0
- data/lib/dnsimple/client/oauth.rb +2 -0
- data/lib/dnsimple/client/registrar.rb +69 -0
- data/lib/dnsimple/client/registrar_auto_renewal.rb +2 -0
- data/lib/dnsimple/client/registrar_delegation.rb +2 -0
- data/lib/dnsimple/client/registrar_whois_privacy.rb +3 -1
- data/lib/dnsimple/client/services.rb +2 -0
- data/lib/dnsimple/client/services_domains.rb +2 -0
- data/lib/dnsimple/client/templates.rb +2 -0
- data/lib/dnsimple/client/templates_domains.rb +2 -0
- data/lib/dnsimple/client/templates_records.rb +2 -0
- data/lib/dnsimple/client/tlds.rb +2 -0
- data/lib/dnsimple/client/vanity_name_servers.rb +12 -10
- data/lib/dnsimple/client/webhooks.rb +2 -0
- data/lib/dnsimple/client/zones.rb +2 -0
- data/lib/dnsimple/client/zones_distributions.rb +2 -0
- data/lib/dnsimple/client/zones_records.rb +2 -0
- data/lib/dnsimple/default.rb +12 -10
- data/lib/dnsimple/error.rb +3 -1
- data/lib/dnsimple/extra.rb +4 -2
- data/lib/dnsimple/options.rb +2 -0
- data/lib/dnsimple/response.rb +7 -7
- data/lib/dnsimple/struct.rb +3 -0
- data/lib/dnsimple/struct/account.rb +2 -0
- data/lib/dnsimple/struct/certificate.rb +4 -2
- data/lib/dnsimple/struct/certificate_bundle.rb +5 -0
- data/lib/dnsimple/struct/certificate_purchase.rb +2 -0
- data/lib/dnsimple/struct/certificate_renewal.rb +2 -0
- data/lib/dnsimple/struct/collaborator.rb +2 -0
- data/lib/dnsimple/struct/contact.rb +2 -0
- data/lib/dnsimple/struct/delegation_signer_record.rb +2 -0
- data/lib/dnsimple/struct/dnssec.rb +2 -0
- data/lib/dnsimple/struct/domain.rb +4 -3
- data/lib/dnsimple/struct/domain_check.rb +2 -0
- data/lib/dnsimple/struct/domain_premium_price.rb +2 -0
- data/lib/dnsimple/struct/domain_price.rb +24 -0
- data/lib/dnsimple/struct/domain_push.rb +2 -0
- data/lib/dnsimple/struct/domain_registration.rb +2 -0
- data/lib/dnsimple/struct/domain_renewal.rb +2 -0
- data/lib/dnsimple/struct/domain_transfer.rb +5 -0
- data/lib/dnsimple/struct/email_forward.rb +2 -0
- data/lib/dnsimple/struct/extended_attribute.rb +2 -0
- data/lib/dnsimple/struct/oauth_token.rb +2 -0
- data/lib/dnsimple/struct/service.rb +2 -0
- data/lib/dnsimple/struct/template.rb +2 -0
- data/lib/dnsimple/struct/template_record.rb +2 -0
- data/lib/dnsimple/struct/tld.rb +2 -0
- data/lib/dnsimple/struct/user.rb +2 -0
- data/lib/dnsimple/struct/vanity_name_server.rb +2 -0
- data/lib/dnsimple/struct/webhook.rb +2 -0
- data/lib/dnsimple/struct/whoami.rb +2 -0
- data/lib/dnsimple/struct/whois_privacy.rb +2 -0
- data/lib/dnsimple/struct/whois_privacy_renewal.rb +2 -0
- data/lib/dnsimple/struct/zone.rb +2 -0
- data/lib/dnsimple/struct/zone_distribution.rb +2 -0
- data/lib/dnsimple/struct/zone_file.rb +2 -0
- data/lib/dnsimple/struct/zone_record.rb +2 -0
- data/lib/dnsimple/version.rb +3 -1
- data/spec/dnsimple/client/accounts_spec.rb +2 -0
- data/spec/dnsimple/client/certificates_spec.rb +35 -33
- data/spec/dnsimple/client/client_service_spec.rb +3 -1
- data/spec/dnsimple/client/contacts_spec.rb +4 -2
- data/spec/dnsimple/client/domains_collaborators_spec.rb +4 -2
- data/spec/dnsimple/client/domains_delegation_signer_records_spec.rb +3 -1
- data/spec/dnsimple/client/domains_dnssec_spec.rb +2 -0
- data/spec/dnsimple/client/domains_email_forwards_spec.rb +10 -8
- data/spec/dnsimple/client/domains_pushes_spec.rb +4 -2
- data/spec/dnsimple/client/domains_spec.rb +16 -41
- data/spec/dnsimple/client/identity_spec.rb +2 -0
- data/spec/dnsimple/client/oauth_spec.rb +2 -0
- data/spec/dnsimple/client/registrar_auto_renewal_spec.rb +2 -0
- data/spec/dnsimple/client/registrar_delegation_spec.rb +4 -2
- data/spec/dnsimple/client/registrar_spec.rb +116 -4
- data/spec/dnsimple/client/registrar_whois_privacy_spec.rb +2 -0
- data/spec/dnsimple/client/services_domains_spec.rb +4 -4
- data/spec/dnsimple/client/services_spec.rb +3 -3
- data/spec/dnsimple/client/templates_domains_spec.rb +2 -0
- data/spec/dnsimple/client/templates_records_spec.rb +3 -1
- data/spec/dnsimple/client/templates_spec.rb +4 -2
- data/spec/dnsimple/client/tlds_spec.rb +2 -0
- data/spec/dnsimple/client/vanity_name_servers_spec.rb +2 -0
- data/spec/dnsimple/client/webhooks_spec.rb +3 -1
- data/spec/dnsimple/client/zones_distributions_spec.rb +2 -0
- data/spec/dnsimple/client/zones_records_spec.rb +4 -2
- data/spec/dnsimple/client/zones_spec.rb +3 -1
- data/spec/dnsimple/client_spec.rb +18 -16
- data/spec/dnsimple/extra_spec.rb +2 -0
- data/spec/dnsimple/options/base_spec.rb +2 -0
- data/spec/dnsimple/options/list_options_spec.rb +6 -4
- data/spec/fixtures.http/accounts/success-account.http +0 -1
- data/spec/fixtures.http/accounts/success-user.http +0 -1
- data/spec/fixtures.http/addCollaborator/invite-success.http +0 -1
- data/spec/fixtures.http/addCollaborator/success.http +0 -1
- data/spec/fixtures.http/appliedServices/success.http +0 -1
- data/spec/fixtures.http/cancelDomainTransfer/success.http +18 -0
- data/spec/fixtures.http/changeDomainDelegation/success.http +0 -1
- data/spec/fixtures.http/changeDomainDelegationToVanity/success.http +0 -1
- data/spec/fixtures.http/checkDomain/success.http +0 -1
- data/spec/fixtures.http/checkDomainPremiumPrice/error_400_not_a_premium_domain.http +18 -0
- data/spec/fixtures.http/checkDomainPremiumPrice/error_400_tld_not_supported.http +18 -0
- data/spec/fixtures.http/checkDomainPremiumPrice/success.http +20 -0
- data/spec/fixtures.http/checkZoneDistribution/error.http +0 -1
- data/spec/fixtures.http/checkZoneDistribution/failure.http +0 -1
- data/spec/fixtures.http/checkZoneDistribution/success.http +0 -1
- data/spec/fixtures.http/checkZoneRecordDistribution/error.http +0 -1
- data/spec/fixtures.http/checkZoneRecordDistribution/failure.http +0 -1
- data/spec/fixtures.http/checkZoneRecordDistribution/success.http +0 -1
- data/spec/fixtures.http/createContact/created.http +0 -1
- data/spec/fixtures.http/createDelegationSignerRecord/created.http +0 -1
- data/spec/fixtures.http/createDelegationSignerRecord/validation-error.http +0 -1
- data/spec/fixtures.http/createDomain/created.http +20 -16
- data/spec/fixtures.http/createEmailForward/created.http +21 -17
- data/spec/fixtures.http/createPrimaryServer/created.http +21 -0
- data/spec/fixtures.http/createSecondaryZone/created.http +21 -0
- data/spec/fixtures.http/createTemplate/created.http +0 -1
- data/spec/fixtures.http/createTemplateRecord/created.http +0 -1
- data/spec/fixtures.http/createWebhook/created.http +0 -1
- data/spec/fixtures.http/createZoneRecord/created-apex.http +0 -1
- data/spec/fixtures.http/createZoneRecord/created.http +0 -1
- data/spec/fixtures.http/deleteContact/error-contact-in-use.http +18 -0
- data/spec/fixtures.http/deleteEmailForward/success.http +12 -7
- data/spec/fixtures.http/disableDnssec/not-enabled.http +0 -1
- data/spec/fixtures.http/disableWhoisPrivacy/success.http +0 -1
- data/spec/fixtures.http/downloadCertificate/success.http +0 -1
- data/spec/fixtures.http/enableDnssec/success.http +0 -1
- data/spec/fixtures.http/enableVanityNameServers/success.http +0 -1
- data/spec/fixtures.http/enableWhoisPrivacy/created.http +0 -1
- data/spec/fixtures.http/enableWhoisPrivacy/success.http +0 -1
- data/spec/fixtures.http/getCertificate/success.http +10 -11
- data/spec/fixtures.http/getCertificatePrivateKey/success.http +0 -1
- data/spec/fixtures.http/getContact/success.http +0 -1
- data/spec/fixtures.http/getDelegationSignerRecord/success.http +0 -1
- data/spec/fixtures.http/getDnssec/success.http +0 -1
- data/spec/fixtures.http/getDomain/success.http +13 -9
- data/spec/fixtures.http/getDomainDelegation/success-empty.http +0 -1
- data/spec/fixtures.http/getDomainDelegation/success.http +0 -1
- data/spec/fixtures.http/getDomainPremiumPrice/failure.http +0 -1
- data/spec/fixtures.http/getDomainPremiumPrice/success.http +0 -1
- data/spec/fixtures.http/getDomainPrices/failure.http +19 -0
- data/spec/fixtures.http/getDomainPrices/success.http +21 -0
- data/spec/fixtures.http/getDomainTransfer/success.http +20 -0
- data/spec/fixtures.http/getEmailForward/success.http +14 -10
- data/spec/fixtures.http/getPrimaryServer/success.http +21 -0
- data/spec/fixtures.http/getService/success.http +0 -1
- data/spec/fixtures.http/getTemplate/success.http +0 -1
- data/spec/fixtures.http/getTemplateRecord/success.http +0 -1
- data/spec/fixtures.http/getTld/success.http +0 -1
- data/spec/fixtures.http/getTldExtendedAttributes/success-attributes.http +0 -1
- data/spec/fixtures.http/getTldExtendedAttributes/success-noattributes.http +0 -1
- data/spec/fixtures.http/getTldExtendedAttributes/success.http +0 -1
- data/spec/fixtures.http/getWebhook/success.http +0 -1
- data/spec/fixtures.http/getWhoisPrivacy/success.http +0 -1
- data/spec/fixtures.http/getZone/success.http +0 -1
- data/spec/fixtures.http/getZoneFile/success.http +0 -1
- data/spec/fixtures.http/getZoneRecord/success.http +0 -1
- data/spec/fixtures.http/initiatePush/success.http +0 -1
- data/spec/fixtures.http/issueLetsencryptCertificate/success.http +18 -21
- data/spec/fixtures.http/issueRenewalLetsencryptCertificate/success.http +18 -21
- data/spec/fixtures.http/linkPrimaryServer/success.http +21 -0
- data/spec/fixtures.http/listAccounts/success-account.http +0 -1
- data/spec/fixtures.http/listAccounts/success-user.http +0 -1
- data/spec/fixtures.http/listCertificates/success.http +10 -11
- data/spec/fixtures.http/listCollaborators/success.http +0 -1
- data/spec/fixtures.http/listContacts/success.http +0 -1
- data/spec/fixtures.http/listDelegationSignerRecords/success.http +0 -1
- data/spec/fixtures.http/listDomains/success.http +20 -16
- data/spec/fixtures.http/listEmailForwards/success.http +0 -1
- data/spec/fixtures.http/listPrimaryServers/success.http +21 -0
- data/spec/fixtures.http/listPushes/success.http +0 -1
- data/spec/fixtures.http/listServices/success.http +0 -1
- data/spec/fixtures.http/listTemplateRecords/success.http +0 -1
- data/spec/fixtures.http/listTemplates/success.http +0 -1
- data/spec/fixtures.http/listTlds/success.http +0 -1
- data/spec/fixtures.http/listWebhooks/success.http +0 -1
- data/spec/fixtures.http/listZoneRecords/success.http +0 -1
- data/spec/fixtures.http/listZones/success.http +0 -1
- data/spec/fixtures.http/method-not-allowed.http +0 -1
- data/spec/fixtures.http/notfound-certificate.http +0 -1
- data/spec/fixtures.http/notfound-collaborator.http +0 -1
- data/spec/fixtures.http/notfound-contact.http +0 -1
- data/spec/fixtures.http/notfound-delegationsignerrecord.http +0 -1
- data/spec/fixtures.http/notfound-domain.http +0 -1
- data/spec/fixtures.http/notfound-domainpush.http +0 -1
- data/spec/fixtures.http/notfound-emailforward.http +0 -1
- data/spec/fixtures.http/notfound-record.http +0 -1
- data/spec/fixtures.http/notfound-template.http +0 -1
- data/spec/fixtures.http/notfound-webhook.http +0 -1
- data/spec/fixtures.http/notfound-whoisprivacy.http +0 -1
- data/spec/fixtures.http/notfound-zone.http +0 -1
- data/spec/fixtures.http/oauthAccessToken/error-invalid-request.http +0 -1
- data/spec/fixtures.http/oauthAccessToken/success.http +0 -1
- data/spec/fixtures.http/pages-1of3.http +0 -1
- data/spec/fixtures.http/pages-2of3.http +0 -1
- data/spec/fixtures.http/pages-3of3.http +0 -1
- data/spec/fixtures.http/purchaseLetsencryptCertificate/success.http +20 -21
- data/spec/fixtures.http/purchaseRenewalLetsencryptCertificate/success.http +20 -21
- data/spec/fixtures.http/registerDomain/success.http +1 -2
- data/spec/fixtures.http/renewDomain/error-tooearly.http +0 -1
- data/spec/fixtures.http/renewDomain/success.http +1 -2
- data/spec/fixtures.http/renewWhoisPrivacy/success.http +0 -1
- data/spec/fixtures.http/renewWhoisPrivacy/whois-privacy-duplicated-order.http +1 -2
- data/spec/fixtures.http/renewWhoisPrivacy/whois-privacy-not-found.http +1 -2
- data/spec/fixtures.http/response.http +0 -1
- data/spec/fixtures.http/transferDomain/error-indnsimple.http +0 -1
- data/spec/fixtures.http/transferDomain/error-missing-authcode.http +0 -1
- data/spec/fixtures.http/transferDomain/success.http +1 -2
- data/spec/fixtures.http/unlinkPrimaryServer/success.http +21 -0
- data/spec/fixtures.http/updateContact/success.http +0 -1
- data/spec/fixtures.http/updateTemplate/success.http +0 -1
- data/spec/fixtures.http/updateZoneRecord/success.http +0 -1
- data/spec/fixtures.http/validation-error.http +0 -1
- data/spec/fixtures.http/whoami/success-account.http +0 -1
- data/spec/fixtures.http/whoami/success-user.http +0 -1
- data/spec/fixtures.http/whoami/success.http +0 -1
- data/spec/spec_helper.rb +3 -1
- data/spec/support/helpers.rb +2 -0
- data/spec/support/webmock.rb +2 -0
- metadata +36 -15
- data/.ruby-gemset +0 -1
- data/spec/fixtures.http/resetDomainToken/success.http +0 -17
@@ -2,7 +2,6 @@ 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
|
6
5
|
Connection: keep-alive
|
7
6
|
X-RateLimit-Limit: 2400
|
8
7
|
X-RateLimit-Remaining: 2394
|
@@ -18,4 +17,4 @@ X-Permitted-Cross-Domain-Policies: none
|
|
18
17
|
X-XSS-Protection: 1; mode=block
|
19
18
|
Strict-Transport-Security: max-age=31536000
|
20
19
|
|
21
|
-
{"data":{"id":1,"domain_id":999,"period":1,"state":"new","
|
20
|
+
{"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,6 @@ HTTP/1.1 400 Bad Request
|
|
2
2
|
Server: nginx
|
3
3
|
Date: Thu, 10 Jan 2019 12:13:21 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
5
|
Connection: keep-alive
|
7
6
|
X-RateLimit-Limit: 2400
|
8
7
|
X-RateLimit-Remaining: 2397
|
@@ -16,4 +15,4 @@ X-XSS-Protection: 1; mode=block
|
|
16
15
|
X-Download-Options: noopen
|
17
16
|
X-Permitted-Cross-Domain-Policies: none
|
18
17
|
|
19
|
-
{"message":"The whois privacy for example.com has just been renewed, a new renewal cannot be started at this time"
|
18
|
+
{"message":"The whois privacy for example.com has just been renewed, a new renewal cannot be started at this time"}
|
@@ -2,7 +2,6 @@ HTTP/1.1 400 Bad Request
|
|
2
2
|
Server: nginx
|
3
3
|
Date: Thu, 10 Jan 2019 12:11:39 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
5
|
Connection: keep-alive
|
7
6
|
X-RateLimit-Limit: 2400
|
8
7
|
X-RateLimit-Remaining: 2399
|
@@ -16,4 +15,4 @@ X-XSS-Protection: 1; mode=block
|
|
16
15
|
X-Download-Options: noopen
|
17
16
|
X-Permitted-Cross-Domain-Policies: none
|
18
17
|
|
19
|
-
{"message":"WHOIS privacy not found for example.com"
|
18
|
+
{"message":"WHOIS privacy not found for example.com"}
|
@@ -2,7 +2,6 @@ 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
|
6
5
|
Connection: keep-alive
|
7
6
|
X-RateLimit-Limit: 2400
|
8
7
|
X-RateLimit-Remaining: 2395
|
@@ -18,4 +17,4 @@ X-Permitted-Cross-Domain-Policies: none
|
|
18
17
|
X-XSS-Protection: 1; mode=block
|
19
18
|
Strict-Transport-Security: max-age=31536000
|
20
19
|
|
21
|
-
{"data":{"id":1,"domain_id":999,"registrant_id":2,"state":"transferring","auto_renew":false,"whois_privacy":false,"
|
20
|
+
{"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"}}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Wed, 17 Mar 2021 23:36:43 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Connection: keep-alive
|
6
|
+
X-RateLimit-Limit: 2400
|
7
|
+
X-RateLimit-Remaining: 2383
|
8
|
+
X-RateLimit-Reset: 1616024599
|
9
|
+
ETag: W/"ceda02163217bdb9e6850e2c36cbf163"
|
10
|
+
Cache-Control: max-age=0, private, must-revalidate
|
11
|
+
X-Request-Id: 789c6feb-63e1-40d6-b2b6-f569b23a507c
|
12
|
+
X-Runtime: 0.270968
|
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
|
+
Content-Security-Policy: frame-ancestors 'none'
|
19
|
+
Strict-Transport-Security: max-age=31536000
|
20
|
+
|
21
|
+
{"data":{"id":4,"account_id":531,"name":"PrimaryProduction","ip":"1.2.3.4","port":53,"linked_secondary_zones":[],"created_at":"2021-03-17T23:08:42Z","updated_at":"2021-03-17T23:08:42Z"}}
|
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'rspec'
|
2
4
|
|
3
5
|
if ENV['COVERALL']
|
@@ -5,7 +7,7 @@ if ENV['COVERALL']
|
|
5
7
|
Coveralls.wear!
|
6
8
|
end
|
7
9
|
|
8
|
-
$:.unshift(File.dirname(__FILE__)
|
10
|
+
$:.unshift("#{File.dirname(__FILE__)}/lib")
|
9
11
|
require 'dnsimple'
|
10
12
|
|
11
13
|
unless defined?(SPEC_ROOT)
|
data/spec/support/helpers.rb
CHANGED
data/spec/support/webmock.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnsimple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
- Simone Carletti
|
9
|
-
- Javier Acero
|
10
|
-
- Luca Guidi
|
7
|
+
- DNSimple
|
11
8
|
autorequire:
|
12
9
|
bindir: bin
|
13
10
|
cert_chain: []
|
14
|
-
date:
|
11
|
+
date: 2021-06-07 00:00:00.000000000 Z
|
15
12
|
dependencies:
|
16
13
|
- !ruby/object:Gem::Dependency
|
17
14
|
name: httparty
|
@@ -85,21 +82,18 @@ dependencies:
|
|
85
82
|
version: '0'
|
86
83
|
description: The DNSimple API client for Ruby.
|
87
84
|
email:
|
88
|
-
-
|
89
|
-
- simone.carletti@dnsimple.com
|
90
|
-
- javier.acero@dnsimple.com
|
91
|
-
- luca.guidi@dnsimple.com
|
85
|
+
- support@dnsimple.com
|
92
86
|
executables: []
|
93
87
|
extensions: []
|
94
88
|
extra_rdoc_files:
|
95
89
|
- LICENSE.txt
|
96
90
|
files:
|
91
|
+
- ".github/dependabot.yml"
|
97
92
|
- ".gitignore"
|
98
93
|
- ".rspec"
|
99
94
|
- ".rubocop.yml"
|
100
95
|
- ".rubocop_dnsimple.yml"
|
101
96
|
- ".rubocop_todo.yml"
|
102
|
-
- ".ruby-gemset"
|
103
97
|
- ".travis.yml"
|
104
98
|
- CHANGELOG.md
|
105
99
|
- CONTRIBUTING.md
|
@@ -156,6 +150,7 @@ files:
|
|
156
150
|
- lib/dnsimple/struct/domain.rb
|
157
151
|
- lib/dnsimple/struct/domain_check.rb
|
158
152
|
- lib/dnsimple/struct/domain_premium_price.rb
|
153
|
+
- lib/dnsimple/struct/domain_price.rb
|
159
154
|
- lib/dnsimple/struct/domain_push.rb
|
160
155
|
- lib/dnsimple/struct/domain_registration.rb
|
161
156
|
- lib/dnsimple/struct/domain_renewal.rb
|
@@ -219,10 +214,14 @@ files:
|
|
219
214
|
- spec/fixtures.http/applyTemplate/success.http
|
220
215
|
- spec/fixtures.http/authorizeDomainTransferOut/success.http
|
221
216
|
- spec/fixtures.http/badgateway.http
|
217
|
+
- spec/fixtures.http/cancelDomainTransfer/success.http
|
222
218
|
- spec/fixtures.http/changeDomainDelegation/success.http
|
223
219
|
- spec/fixtures.http/changeDomainDelegationFromVanity/success.http
|
224
220
|
- spec/fixtures.http/changeDomainDelegationToVanity/success.http
|
225
221
|
- spec/fixtures.http/checkDomain/success.http
|
222
|
+
- spec/fixtures.http/checkDomainPremiumPrice/error_400_not_a_premium_domain.http
|
223
|
+
- spec/fixtures.http/checkDomainPremiumPrice/error_400_tld_not_supported.http
|
224
|
+
- spec/fixtures.http/checkDomainPremiumPrice/success.http
|
226
225
|
- spec/fixtures.http/checkZoneDistribution/error.http
|
227
226
|
- spec/fixtures.http/checkZoneDistribution/failure.http
|
228
227
|
- spec/fixtures.http/checkZoneDistribution/success.http
|
@@ -234,11 +233,14 @@ files:
|
|
234
233
|
- spec/fixtures.http/createDelegationSignerRecord/validation-error.http
|
235
234
|
- spec/fixtures.http/createDomain/created.http
|
236
235
|
- spec/fixtures.http/createEmailForward/created.http
|
236
|
+
- spec/fixtures.http/createPrimaryServer/created.http
|
237
|
+
- spec/fixtures.http/createSecondaryZone/created.http
|
237
238
|
- spec/fixtures.http/createTemplate/created.http
|
238
239
|
- spec/fixtures.http/createTemplateRecord/created.http
|
239
240
|
- spec/fixtures.http/createWebhook/created.http
|
240
241
|
- spec/fixtures.http/createZoneRecord/created-apex.http
|
241
242
|
- spec/fixtures.http/createZoneRecord/created.http
|
243
|
+
- spec/fixtures.http/deleteContact/error-contact-in-use.http
|
242
244
|
- spec/fixtures.http/deleteContact/success.http
|
243
245
|
- spec/fixtures.http/deleteDelegationSignerRecord/success.http
|
244
246
|
- spec/fixtures.http/deleteDomain/success.http
|
@@ -268,7 +270,11 @@ files:
|
|
268
270
|
- spec/fixtures.http/getDomainDelegation/success.http
|
269
271
|
- spec/fixtures.http/getDomainPremiumPrice/failure.http
|
270
272
|
- spec/fixtures.http/getDomainPremiumPrice/success.http
|
273
|
+
- spec/fixtures.http/getDomainPrices/failure.http
|
274
|
+
- spec/fixtures.http/getDomainPrices/success.http
|
275
|
+
- spec/fixtures.http/getDomainTransfer/success.http
|
271
276
|
- spec/fixtures.http/getEmailForward/success.http
|
277
|
+
- spec/fixtures.http/getPrimaryServer/success.http
|
272
278
|
- spec/fixtures.http/getService/success.http
|
273
279
|
- spec/fixtures.http/getTemplate/success.http
|
274
280
|
- spec/fixtures.http/getTemplateRecord/success.http
|
@@ -284,6 +290,7 @@ files:
|
|
284
290
|
- spec/fixtures.http/initiatePush/success.http
|
285
291
|
- spec/fixtures.http/issueLetsencryptCertificate/success.http
|
286
292
|
- spec/fixtures.http/issueRenewalLetsencryptCertificate/success.http
|
293
|
+
- spec/fixtures.http/linkPrimaryServer/success.http
|
287
294
|
- spec/fixtures.http/listAccounts/success-account.http
|
288
295
|
- spec/fixtures.http/listAccounts/success-user.http
|
289
296
|
- spec/fixtures.http/listCertificates/success.http
|
@@ -292,6 +299,7 @@ files:
|
|
292
299
|
- spec/fixtures.http/listDelegationSignerRecords/success.http
|
293
300
|
- spec/fixtures.http/listDomains/success.http
|
294
301
|
- spec/fixtures.http/listEmailForwards/success.http
|
302
|
+
- spec/fixtures.http/listPrimaryServers/success.http
|
295
303
|
- spec/fixtures.http/listPushes/success.http
|
296
304
|
- spec/fixtures.http/listServices/success.http
|
297
305
|
- spec/fixtures.http/listTemplateRecords/success.http
|
@@ -328,13 +336,13 @@ files:
|
|
328
336
|
- spec/fixtures.http/renewWhoisPrivacy/success.http
|
329
337
|
- spec/fixtures.http/renewWhoisPrivacy/whois-privacy-duplicated-order.http
|
330
338
|
- spec/fixtures.http/renewWhoisPrivacy/whois-privacy-not-found.http
|
331
|
-
- spec/fixtures.http/resetDomainToken/success.http
|
332
339
|
- spec/fixtures.http/response.http
|
333
340
|
- spec/fixtures.http/success-with-malformed-json.http
|
334
341
|
- spec/fixtures.http/transferDomain/error-indnsimple.http
|
335
342
|
- spec/fixtures.http/transferDomain/error-missing-authcode.http
|
336
343
|
- spec/fixtures.http/transferDomain/success.http
|
337
344
|
- spec/fixtures.http/unapplyService/success.http
|
345
|
+
- spec/fixtures.http/unlinkPrimaryServer/success.http
|
338
346
|
- spec/fixtures.http/updateContact/success.http
|
339
347
|
- spec/fixtures.http/updateTemplate/success.http
|
340
348
|
- spec/fixtures.http/updateZoneRecord/success.http
|
@@ -356,14 +364,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
356
364
|
requirements:
|
357
365
|
- - ">="
|
358
366
|
- !ruby/object:Gem::Version
|
359
|
-
version: '2.
|
367
|
+
version: '2.6'
|
360
368
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
361
369
|
requirements:
|
362
370
|
- - ">="
|
363
371
|
- !ruby/object:Gem::Version
|
364
372
|
version: '0'
|
365
373
|
requirements: []
|
366
|
-
rubygems_version: 3.
|
374
|
+
rubygems_version: 3.1.4
|
367
375
|
signing_key:
|
368
376
|
specification_version: 4
|
369
377
|
summary: The DNSimple API client for Ruby
|
@@ -409,10 +417,14 @@ test_files:
|
|
409
417
|
- spec/fixtures.http/applyTemplate/success.http
|
410
418
|
- spec/fixtures.http/authorizeDomainTransferOut/success.http
|
411
419
|
- spec/fixtures.http/badgateway.http
|
420
|
+
- spec/fixtures.http/cancelDomainTransfer/success.http
|
412
421
|
- spec/fixtures.http/changeDomainDelegation/success.http
|
413
422
|
- spec/fixtures.http/changeDomainDelegationFromVanity/success.http
|
414
423
|
- spec/fixtures.http/changeDomainDelegationToVanity/success.http
|
415
424
|
- spec/fixtures.http/checkDomain/success.http
|
425
|
+
- spec/fixtures.http/checkDomainPremiumPrice/error_400_not_a_premium_domain.http
|
426
|
+
- spec/fixtures.http/checkDomainPremiumPrice/error_400_tld_not_supported.http
|
427
|
+
- spec/fixtures.http/checkDomainPremiumPrice/success.http
|
416
428
|
- spec/fixtures.http/checkZoneDistribution/error.http
|
417
429
|
- spec/fixtures.http/checkZoneDistribution/failure.http
|
418
430
|
- spec/fixtures.http/checkZoneDistribution/success.http
|
@@ -424,11 +436,14 @@ test_files:
|
|
424
436
|
- spec/fixtures.http/createDelegationSignerRecord/validation-error.http
|
425
437
|
- spec/fixtures.http/createDomain/created.http
|
426
438
|
- spec/fixtures.http/createEmailForward/created.http
|
439
|
+
- spec/fixtures.http/createPrimaryServer/created.http
|
440
|
+
- spec/fixtures.http/createSecondaryZone/created.http
|
427
441
|
- spec/fixtures.http/createTemplate/created.http
|
428
442
|
- spec/fixtures.http/createTemplateRecord/created.http
|
429
443
|
- spec/fixtures.http/createWebhook/created.http
|
430
444
|
- spec/fixtures.http/createZoneRecord/created-apex.http
|
431
445
|
- spec/fixtures.http/createZoneRecord/created.http
|
446
|
+
- spec/fixtures.http/deleteContact/error-contact-in-use.http
|
432
447
|
- spec/fixtures.http/deleteContact/success.http
|
433
448
|
- spec/fixtures.http/deleteDelegationSignerRecord/success.http
|
434
449
|
- spec/fixtures.http/deleteDomain/success.http
|
@@ -458,7 +473,11 @@ test_files:
|
|
458
473
|
- spec/fixtures.http/getDomainDelegation/success.http
|
459
474
|
- spec/fixtures.http/getDomainPremiumPrice/failure.http
|
460
475
|
- spec/fixtures.http/getDomainPremiumPrice/success.http
|
476
|
+
- spec/fixtures.http/getDomainPrices/failure.http
|
477
|
+
- spec/fixtures.http/getDomainPrices/success.http
|
478
|
+
- spec/fixtures.http/getDomainTransfer/success.http
|
461
479
|
- spec/fixtures.http/getEmailForward/success.http
|
480
|
+
- spec/fixtures.http/getPrimaryServer/success.http
|
462
481
|
- spec/fixtures.http/getService/success.http
|
463
482
|
- spec/fixtures.http/getTemplate/success.http
|
464
483
|
- spec/fixtures.http/getTemplateRecord/success.http
|
@@ -474,6 +493,7 @@ test_files:
|
|
474
493
|
- spec/fixtures.http/initiatePush/success.http
|
475
494
|
- spec/fixtures.http/issueLetsencryptCertificate/success.http
|
476
495
|
- spec/fixtures.http/issueRenewalLetsencryptCertificate/success.http
|
496
|
+
- spec/fixtures.http/linkPrimaryServer/success.http
|
477
497
|
- spec/fixtures.http/listAccounts/success-account.http
|
478
498
|
- spec/fixtures.http/listAccounts/success-user.http
|
479
499
|
- spec/fixtures.http/listCertificates/success.http
|
@@ -482,6 +502,7 @@ test_files:
|
|
482
502
|
- spec/fixtures.http/listDelegationSignerRecords/success.http
|
483
503
|
- spec/fixtures.http/listDomains/success.http
|
484
504
|
- spec/fixtures.http/listEmailForwards/success.http
|
505
|
+
- spec/fixtures.http/listPrimaryServers/success.http
|
485
506
|
- spec/fixtures.http/listPushes/success.http
|
486
507
|
- spec/fixtures.http/listServices/success.http
|
487
508
|
- spec/fixtures.http/listTemplateRecords/success.http
|
@@ -518,13 +539,13 @@ test_files:
|
|
518
539
|
- spec/fixtures.http/renewWhoisPrivacy/success.http
|
519
540
|
- spec/fixtures.http/renewWhoisPrivacy/whois-privacy-duplicated-order.http
|
520
541
|
- spec/fixtures.http/renewWhoisPrivacy/whois-privacy-not-found.http
|
521
|
-
- spec/fixtures.http/resetDomainToken/success.http
|
522
542
|
- spec/fixtures.http/response.http
|
523
543
|
- spec/fixtures.http/success-with-malformed-json.http
|
524
544
|
- spec/fixtures.http/transferDomain/error-indnsimple.http
|
525
545
|
- spec/fixtures.http/transferDomain/error-missing-authcode.http
|
526
546
|
- spec/fixtures.http/transferDomain/success.http
|
527
547
|
- spec/fixtures.http/unapplyService/success.http
|
548
|
+
- spec/fixtures.http/unlinkPrimaryServer/success.http
|
528
549
|
- spec/fixtures.http/updateContact/success.http
|
529
550
|
- spec/fixtures.http/updateTemplate/success.http
|
530
551
|
- spec/fixtures.http/updateZoneRecord/success.http
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
dnsimple-ruby
|
@@ -1,17 +0,0 @@
|
|
1
|
-
HTTP/1.1 201 Created
|
2
|
-
Server: nginx
|
3
|
-
Date: Thu, 04 Feb 2016 10:13:19 GMT
|
4
|
-
Content-Type: application/json; charset=utf-8
|
5
|
-
Transfer-Encoding: chunked
|
6
|
-
Connection: keep-alive
|
7
|
-
Status: 201 Created
|
8
|
-
X-RateLimit-Limit: 4000
|
9
|
-
X-RateLimit-Remaining: 3999
|
10
|
-
X-RateLimit-Reset: 1454584399
|
11
|
-
ETag: W/"834381fd3fd0896e344e3fad9e77ab97"
|
12
|
-
Cache-Control: max-age=0, private, must-revalidate
|
13
|
-
X-Request-Id: bf1b3976-2edd-4ea6-b606-1d60eaa0403d
|
14
|
-
X-Runtime: 0.075404
|
15
|
-
Strict-Transport-Security: max-age=31536000
|
16
|
-
|
17
|
-
{"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"}}
|