dnsimple 2.0.0.alpha2 → 2.0.0.alpha3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.markdown +6 -2
  3. data/README.markdown +32 -30
  4. data/dnsimple.gemspec +1 -2
  5. data/lib/dnsimple.rb +2 -13
  6. data/lib/dnsimple/client.rb +164 -53
  7. data/lib/dnsimple/client/certificates_service.rb +98 -0
  8. data/lib/dnsimple/client/client_service.rb +8 -0
  9. data/lib/dnsimple/client/contacts_service.rb +82 -0
  10. data/lib/dnsimple/client/domains_service.rb +333 -0
  11. data/lib/dnsimple/client/name_servers_service.rb +69 -0
  12. data/lib/dnsimple/client/registrars_service.rb +105 -0
  13. data/lib/dnsimple/client/services_service.rb +95 -0
  14. data/lib/dnsimple/client/templates_service.rb +180 -0
  15. data/lib/dnsimple/client/users_service.rb +37 -0
  16. data/lib/dnsimple/compatibility.rb +46 -0
  17. data/lib/dnsimple/default.rb +86 -0
  18. data/lib/dnsimple/error.rb +7 -11
  19. data/lib/dnsimple/extra.rb +54 -0
  20. data/lib/dnsimple/struct.rb +29 -0
  21. data/lib/dnsimple/struct/certificate.rb +56 -0
  22. data/lib/dnsimple/struct/contact.rb +61 -0
  23. data/lib/dnsimple/struct/domain.rb +40 -0
  24. data/lib/dnsimple/struct/email_forward.rb +14 -0
  25. data/lib/dnsimple/struct/extended_attribute.rb +39 -0
  26. data/lib/dnsimple/struct/membership.rb +22 -0
  27. data/lib/dnsimple/struct/price.rb +16 -0
  28. data/lib/dnsimple/struct/record.rb +22 -0
  29. data/lib/dnsimple/struct/service.rb +19 -0
  30. data/lib/dnsimple/struct/template.rb +19 -0
  31. data/lib/dnsimple/struct/template_record.rb +24 -0
  32. data/lib/dnsimple/struct/transfer_order.rb +10 -0
  33. data/lib/dnsimple/struct/user.rb +17 -0
  34. data/lib/dnsimple/struct/whois_privacy.rb +19 -0
  35. data/lib/dnsimple/version.rb +1 -1
  36. data/spec/dnsimple/client/certificates_service_spec.rb +196 -0
  37. data/spec/dnsimple/client/contacts_service_spec.rb +179 -0
  38. data/spec/dnsimple/client/domains_service_spec.rb +662 -0
  39. data/spec/dnsimple/client/name_servers_service_spec.rb +131 -0
  40. data/spec/dnsimple/client/registrars_service_spec.rb +160 -0
  41. data/spec/dnsimple/client/services_service_spec.rb +162 -0
  42. data/spec/dnsimple/client/templates_service_spec.rb +371 -0
  43. data/spec/dnsimple/client/users_service_spec.rb +70 -0
  44. data/spec/dnsimple/client_spec.rb +108 -99
  45. data/spec/dnsimple/compatibility_spec.rb +57 -0
  46. data/spec/files/2fa/exchange-token.http +8 -11
  47. data/spec/files/badgateway.http +14 -0
  48. data/spec/files/certificates/configure/success.http +19 -0
  49. data/spec/files/certificates/index/success.http +1 -1
  50. data/spec/files/certificates/notfound.http +19 -0
  51. data/spec/files/certificates/purchase/success.http +19 -0
  52. data/spec/files/certificates/show/success.http +1 -1
  53. data/spec/files/certificates/submit/success.http +19 -0
  54. data/spec/files/contacts/create/badrequest-missingcontact.http +19 -0
  55. data/spec/files/contacts/create/badrequest-validationerror.http +19 -0
  56. data/spec/files/contacts/create/created.http +22 -0
  57. data/spec/files/contacts/delete/success-204.http +18 -0
  58. data/spec/files/{extended_attributes/com.http → contacts/delete/success.http} +5 -5
  59. data/spec/files/{domains/auto_renewal_enable → contacts/index}/success.http +6 -6
  60. data/spec/files/contacts/notfound.http +19 -0
  61. data/spec/files/contacts/update/success.http +21 -0
  62. data/spec/files/domains/create/created.http +21 -0
  63. data/spec/files/domains/index/success.http +11 -9
  64. data/spec/files/domains/notfound.http +11 -9
  65. data/spec/files/domains/show/success.http +12 -10
  66. data/spec/files/domains_autorenewal/disable/success.http +21 -0
  67. data/spec/files/domains_autorenewal/enable/success.http +21 -0
  68. data/spec/files/domains_autorenewal/notfound-domain.http +19 -0
  69. data/spec/files/domains_forwards/create/created.http +22 -0
  70. data/spec/files/domains_forwards/delete/success.http +17 -0
  71. data/spec/files/domains_forwards/get/success.http +21 -0
  72. data/spec/files/domains_forwards/list/success.http +21 -0
  73. data/spec/files/domains_forwards/notfound-domain.http +19 -0
  74. data/spec/files/domains_forwards/notfound.http +19 -0
  75. data/spec/files/domains_records/create/created.http +21 -0
  76. data/spec/files/domains_records/delete/success-204.http +18 -0
  77. data/spec/files/{contacts/show/notfound.http → domains_records/delete/success.http} +9 -7
  78. data/spec/files/{records → domains_records}/index/success.http +0 -0
  79. data/spec/files/{records/show → domains_records}/notfound.http +1 -1
  80. data/spec/files/{records → domains_records}/show/success.http +0 -0
  81. data/spec/files/domains_records/update/success.http +21 -0
  82. data/spec/files/domains_sharing/create/success.http +21 -0
  83. data/spec/files/domains_sharing/delete/success.http +17 -0
  84. data/spec/files/domains_sharing/list/success.http +21 -0
  85. data/spec/files/domains_sharing/notfound-domain.http +19 -0
  86. data/spec/files/domains_sharing/notfound.http +19 -0
  87. data/spec/files/domains_whois_privacy/disable/success.http +21 -0
  88. data/spec/files/domains_whois_privacy/enable/success.http +22 -0
  89. data/spec/files/domains_zones/get/success.http +21 -0
  90. data/spec/files/domains_zones/notfound-domain.http +19 -0
  91. data/spec/files/{domains/auto_renewal_disable/notfound.http → nameservers/change/success.http} +23 -21
  92. data/spec/files/nameservers/deregister/success.http +17 -0
  93. data/spec/files/{domains/auto_renewal_enable/notfound.http → nameservers/list/success.http} +23 -21
  94. data/spec/files/nameservers/notfound-domain.http +19 -0
  95. data/spec/files/nameservers/register/badrequest-valueerror.http +19 -0
  96. data/spec/files/nameservers/register/success.http +21 -0
  97. data/spec/files/registrars/check/available.http +19 -0
  98. data/spec/files/registrars/check/registered.http +21 -0
  99. data/spec/files/registrars/register/badrequest-missingdomain.http +19 -0
  100. data/spec/files/registrars/register/badrequest-missingregistrant.http +19 -0
  101. data/spec/files/registrars/register/success.http +21 -0
  102. data/spec/files/registrars/renew/badrequest-missingrenewal.http +19 -0
  103. data/spec/files/registrars/renew/badrequest-unable.http +19 -0
  104. data/spec/files/registrars/renew/success.http +21 -0
  105. data/spec/files/registrars/transfer/success.http +21 -0
  106. data/spec/files/registrars_extended_attributes/list/success.http +21 -0
  107. data/spec/files/registrars_prices/list/success.http +21 -0
  108. data/spec/files/services/applied/success.http +21 -0
  109. data/spec/files/services/apply/success.http +21 -0
  110. data/spec/files/services/available/success.http +21 -0
  111. data/spec/files/services/index/success.http +21 -0
  112. data/spec/files/services/notfound.http +19 -0
  113. data/spec/files/services/show/success.http +21 -0
  114. data/spec/files/services/unapply/success.http +21 -0
  115. data/spec/files/subscription/show/success.http +21 -0
  116. data/spec/files/templates/apply/success.http +21 -0
  117. data/spec/files/templates/create/created.http +22 -0
  118. data/spec/files/templates/delete/success-204.http +21 -0
  119. data/spec/files/templates/delete/success.http +21 -0
  120. data/spec/files/templates/index/success.http +21 -0
  121. data/spec/files/templates/notfound.http +19 -0
  122. data/spec/files/templates/show/success.http +12 -10
  123. data/spec/files/templates/update/success.http +21 -0
  124. data/spec/files/templates_records/create/created.http +22 -0
  125. data/spec/files/templates_records/delete/success-204.http +19 -0
  126. data/spec/files/templates_records/delete/success.http +21 -0
  127. data/spec/files/templates_records/index/success.http +21 -0
  128. data/spec/files/templates_records/notfound.http +19 -0
  129. data/spec/files/templates_records/show/success.http +21 -0
  130. data/spec/files/templates_records/update/success.http +21 -0
  131. data/spec/files/users/user/success.http +21 -0
  132. data/spec/spec_helper.rb +0 -2
  133. metadata +206 -73
  134. data/lib/dnsimple/base.rb +0 -10
  135. data/lib/dnsimple/certificate.rb +0 -143
  136. data/lib/dnsimple/contact.rb +0 -157
  137. data/lib/dnsimple/domain.rb +0 -252
  138. data/lib/dnsimple/extended_attribute.rb +0 -52
  139. data/lib/dnsimple/record.rb +0 -94
  140. data/lib/dnsimple/service.rb +0 -42
  141. data/lib/dnsimple/template.rb +0 -65
  142. data/lib/dnsimple/template_record.rb +0 -80
  143. data/lib/dnsimple/transfer_order.rb +0 -34
  144. data/lib/dnsimple/user.rb +0 -50
  145. data/spec/dnsimple/certificate_spec.rb +0 -59
  146. data/spec/dnsimple/contact_spec.rb +0 -45
  147. data/spec/dnsimple/domain_spec.rb +0 -241
  148. data/spec/dnsimple/extended_attributes_spec.rb +0 -54
  149. data/spec/dnsimple/record_spec.rb +0 -51
  150. data/spec/dnsimple/template_spec.rb +0 -31
  151. data/spec/dnsimple/user_spec.rb +0 -70
  152. data/spec/files/account/user/success.http +0 -19
  153. data/spec/files/certificates/show/notfound.http +0 -17
  154. data/spec/files/domains/auto_renewal_disable/success.http +0 -23
  155. data/spec/files/domains/create/success.http +0 -19
  156. data/spec/files/extended_attributes/ca.http +0 -19
  157. data/spec/files/extended_attributes/success.http +0 -19
  158. data/spec/files/templates/show/notfound.http +0 -17
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Mon, 15 Dec 2014 17:26:18 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: keep-alive
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "887e846c13e9266cca28b9215b16b60d"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: 501fb583-f532-4ced-8a00-ef9a7e459834
18
+ X-Runtime: 0.122367
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ [{"dns_template_record":{"id":8869,"dns_template_id":2947,"name":"ww2","content":"127.0.0.1","ttl":3600,"prio":null,"record_type":"ALIAS","created_at":"2014-12-15T17:26:11.648Z","updated_at":"2014-12-15T17:26:11.648Z"}},{"dns_template_record":{"id":8868,"dns_template_id":2947,"name":"ww1","content":"127.0.0.1","ttl":3600,"prio":null,"record_type":"ALIAS","created_at":"2014-12-15T17:25:20.431Z","updated_at":"2014-12-15T17:25:20.431Z"}}]
@@ -0,0 +1,19 @@
1
+ HTTP/1.1 404 Not Found
2
+ Server: nginx
3
+ Date: Mon, 15 Dec 2014 17:40:26 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: keep-alive
7
+ Status: 404 Not Found
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ Cache-Control: no-cache
16
+ X-Request-Id: e254bc41-5985-4439-8a24-c305babee2ac
17
+ X-Runtime: 0.051934
18
+
19
+ {"message":"Couldn't find DnsTemplateRecord with 'id'=0 [WHERE \"dns_template_records\".\"dns_template_id\" = $1]"}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Mon, 15 Dec 2014 17:39:53 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: keep-alive
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "8b6a002b2d4d8eecfd1c9a3bdd70bec1"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: 15b1f2e3-d6f7-418b-bc66-7af13fca1cde
18
+ X-Runtime: 0.096886
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ {"dns_template_record":{"id":8868,"dns_template_id":2947,"name":"ww1","content":"127.0.0.1","ttl":3600,"prio":null,"record_type":"ALIAS","created_at":"2014-12-15T17:25:20.431Z","updated_at":"2014-12-15T17:25:20.431Z"}}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Mon, 15 Dec 2014 17:39:53 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: keep-alive
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "8b6a002b2d4d8eecfd1c9a3bdd70bec1"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: 15b1f2e3-d6f7-418b-bc66-7af13fca1cde
18
+ X-Runtime: 0.096886
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ {"dns_template_record":{"id":8868,"dns_template_id":2947,"name":"ww1","content":"127.0.0.1","ttl":3600,"prio":null,"record_type":"ALIAS","created_at":"2014-12-15T17:25:20.431Z","updated_at":"2014-12-15T17:25:20.431Z"}}
@@ -0,0 +1,21 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx
3
+ Date: Mon, 15 Dec 2014 17:04:41 GMT
4
+ Content-Type: application/json; charset=utf-8
5
+ Transfer-Encoding: chunked
6
+ Connection: keep-alive
7
+ Status: 200 OK
8
+ Strict-Transport-Security: max-age=631138519
9
+ X-Frame-Options: SAMEORIGIN
10
+ X-XSS-Protection: 1
11
+ X-Content-Type-Options: nosniff
12
+ Access-Control-Allow-Origin: *
13
+ Access-Control-Allow-Headers: Authorization,Accepts,Content-Type,X-DNSimple-Token,X-DNSimple-Domain-Token,X-CSRF-Token,x-requested-with
14
+ Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS
15
+ ETag: "535b1edb37f32b4388c1be8682e8c15a"
16
+ Cache-Control: max-age=0, private, must-revalidate
17
+ X-Request-Id: ee1f0ee3-082a-4e59-8891-17d5068e857c
18
+ X-Runtime: 0.073436
19
+ Strict-Transport-Security: max-age=315360000
20
+
21
+ {"user":{"id":1,"email":"example@example.com","referral_token":"referral-token","api_token":"api-token","domain_count":32,"domain_limit":1000,"login_count":2,"failed_login_count":1,"created_at":"2011-03-17T21:30:25.731Z","updated_at":"2014-12-13T13:52:08.343Z"}}
data/spec/spec_helper.rb CHANGED
@@ -19,8 +19,6 @@ Dnsimple::Client.password = CONFIG['password']
19
19
 
20
20
 
21
21
  RSpec.configure do |c|
22
- c.mock_framework = :mocha
23
-
24
22
  # Silent the puts call in the commands
25
23
  # c.before do
26
24
  # @_stdout = $stdout
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnsimple
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.alpha2
4
+ version: 2.0.0.alpha3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Eden
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-13 00:00:00.000000000 Z
12
+ date: 2014-12-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -39,20 +39,6 @@ dependencies:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: mocha
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
42
  - !ruby/object:Gem::Dependency
57
43
  name: rspec
58
44
  requirement: !ruby/object:Gem::Requirement
@@ -95,8 +81,7 @@ dependencies:
95
81
  - - ">="
96
82
  - !ruby/object:Gem::Version
97
83
  version: '0'
98
- description: A Ruby client for the DNSimple API that also includes a command-line
99
- client.
84
+ description: A Ruby client for the DNSimple API.
100
85
  email:
101
86
  - anthony.eden@dnsimple.com
102
87
  - simone.carletti@dnsimple.com
@@ -119,55 +104,137 @@ files:
119
104
  - Rakefile
120
105
  - dnsimple.gemspec
121
106
  - lib/dnsimple.rb
122
- - lib/dnsimple/base.rb
123
- - lib/dnsimple/certificate.rb
124
107
  - lib/dnsimple/client.rb
125
- - lib/dnsimple/contact.rb
126
- - lib/dnsimple/domain.rb
108
+ - lib/dnsimple/client/certificates_service.rb
109
+ - lib/dnsimple/client/client_service.rb
110
+ - lib/dnsimple/client/contacts_service.rb
111
+ - lib/dnsimple/client/domains_service.rb
112
+ - lib/dnsimple/client/name_servers_service.rb
113
+ - lib/dnsimple/client/registrars_service.rb
114
+ - lib/dnsimple/client/services_service.rb
115
+ - lib/dnsimple/client/templates_service.rb
116
+ - lib/dnsimple/client/users_service.rb
117
+ - lib/dnsimple/compatibility.rb
118
+ - lib/dnsimple/default.rb
127
119
  - lib/dnsimple/error.rb
128
- - lib/dnsimple/extended_attribute.rb
129
- - lib/dnsimple/record.rb
130
- - lib/dnsimple/service.rb
131
- - lib/dnsimple/template.rb
132
- - lib/dnsimple/template_record.rb
133
- - lib/dnsimple/transfer_order.rb
134
- - lib/dnsimple/user.rb
120
+ - lib/dnsimple/extra.rb
121
+ - lib/dnsimple/struct.rb
122
+ - lib/dnsimple/struct/certificate.rb
123
+ - lib/dnsimple/struct/contact.rb
124
+ - lib/dnsimple/struct/domain.rb
125
+ - lib/dnsimple/struct/email_forward.rb
126
+ - lib/dnsimple/struct/extended_attribute.rb
127
+ - lib/dnsimple/struct/membership.rb
128
+ - lib/dnsimple/struct/price.rb
129
+ - lib/dnsimple/struct/record.rb
130
+ - lib/dnsimple/struct/service.rb
131
+ - lib/dnsimple/struct/template.rb
132
+ - lib/dnsimple/struct/template_record.rb
133
+ - lib/dnsimple/struct/transfer_order.rb
134
+ - lib/dnsimple/struct/user.rb
135
+ - lib/dnsimple/struct/whois_privacy.rb
135
136
  - lib/dnsimple/version.rb
136
- - spec/dnsimple/certificate_spec.rb
137
+ - spec/dnsimple/client/certificates_service_spec.rb
138
+ - spec/dnsimple/client/contacts_service_spec.rb
139
+ - spec/dnsimple/client/domains_service_spec.rb
140
+ - spec/dnsimple/client/name_servers_service_spec.rb
141
+ - spec/dnsimple/client/registrars_service_spec.rb
142
+ - spec/dnsimple/client/services_service_spec.rb
143
+ - spec/dnsimple/client/templates_service_spec.rb
144
+ - spec/dnsimple/client/users_service_spec.rb
137
145
  - spec/dnsimple/client_spec.rb
138
- - spec/dnsimple/contact_spec.rb
139
- - spec/dnsimple/domain_spec.rb
140
- - spec/dnsimple/extended_attributes_spec.rb
141
- - spec/dnsimple/record_spec.rb
142
- - spec/dnsimple/template_spec.rb
143
- - spec/dnsimple/user_spec.rb
146
+ - spec/dnsimple/compatibility_spec.rb
144
147
  - spec/files/2fa/error-badtoken.http
145
148
  - spec/files/2fa/error-required.http
146
149
  - spec/files/2fa/exchange-token.http
147
- - spec/files/account/user/success.http
150
+ - spec/files/badgateway.http
151
+ - spec/files/certificates/configure/success.http
148
152
  - spec/files/certificates/index/success.http
149
- - spec/files/certificates/show/notfound.http
153
+ - spec/files/certificates/notfound.http
154
+ - spec/files/certificates/purchase/success.http
150
155
  - spec/files/certificates/show/success.http
151
- - spec/files/contacts/show/notfound.http
156
+ - spec/files/certificates/submit/success.http
157
+ - spec/files/contacts/create/badrequest-missingcontact.http
158
+ - spec/files/contacts/create/badrequest-validationerror.http
159
+ - spec/files/contacts/create/created.http
160
+ - spec/files/contacts/delete/success-204.http
161
+ - spec/files/contacts/delete/success.http
162
+ - spec/files/contacts/index/success.http
163
+ - spec/files/contacts/notfound.http
152
164
  - spec/files/contacts/show/success.http
153
- - spec/files/domains/auto_renewal_disable/notfound.http
154
- - spec/files/domains/auto_renewal_disable/success.http
155
- - spec/files/domains/auto_renewal_enable/notfound.http
156
- - spec/files/domains/auto_renewal_enable/success.http
157
- - spec/files/domains/create/success.http
165
+ - spec/files/contacts/update/success.http
166
+ - spec/files/domains/create/created.http
158
167
  - spec/files/domains/delete/success-204.http
159
168
  - spec/files/domains/delete/success.http
160
169
  - spec/files/domains/index/success.http
161
170
  - spec/files/domains/notfound.http
162
171
  - spec/files/domains/show/success.http
163
- - spec/files/extended_attributes/ca.http
164
- - spec/files/extended_attributes/com.http
165
- - spec/files/extended_attributes/success.http
166
- - spec/files/records/index/success.http
167
- - spec/files/records/show/notfound.http
168
- - spec/files/records/show/success.http
169
- - spec/files/templates/show/notfound.http
172
+ - spec/files/domains_autorenewal/disable/success.http
173
+ - spec/files/domains_autorenewal/enable/success.http
174
+ - spec/files/domains_autorenewal/notfound-domain.http
175
+ - spec/files/domains_forwards/create/created.http
176
+ - spec/files/domains_forwards/delete/success.http
177
+ - spec/files/domains_forwards/get/success.http
178
+ - spec/files/domains_forwards/list/success.http
179
+ - spec/files/domains_forwards/notfound-domain.http
180
+ - spec/files/domains_forwards/notfound.http
181
+ - spec/files/domains_records/create/created.http
182
+ - spec/files/domains_records/delete/success-204.http
183
+ - spec/files/domains_records/delete/success.http
184
+ - spec/files/domains_records/index/success.http
185
+ - spec/files/domains_records/notfound.http
186
+ - spec/files/domains_records/show/success.http
187
+ - spec/files/domains_records/update/success.http
188
+ - spec/files/domains_sharing/create/success.http
189
+ - spec/files/domains_sharing/delete/success.http
190
+ - spec/files/domains_sharing/list/success.http
191
+ - spec/files/domains_sharing/notfound-domain.http
192
+ - spec/files/domains_sharing/notfound.http
193
+ - spec/files/domains_whois_privacy/disable/success.http
194
+ - spec/files/domains_whois_privacy/enable/success.http
195
+ - spec/files/domains_zones/get/success.http
196
+ - spec/files/domains_zones/notfound-domain.http
197
+ - spec/files/nameservers/change/success.http
198
+ - spec/files/nameservers/deregister/success.http
199
+ - spec/files/nameservers/list/success.http
200
+ - spec/files/nameservers/notfound-domain.http
201
+ - spec/files/nameservers/register/badrequest-valueerror.http
202
+ - spec/files/nameservers/register/success.http
203
+ - spec/files/registrars/check/available.http
204
+ - spec/files/registrars/check/registered.http
205
+ - spec/files/registrars/register/badrequest-missingdomain.http
206
+ - spec/files/registrars/register/badrequest-missingregistrant.http
207
+ - spec/files/registrars/register/success.http
208
+ - spec/files/registrars/renew/badrequest-missingrenewal.http
209
+ - spec/files/registrars/renew/badrequest-unable.http
210
+ - spec/files/registrars/renew/success.http
211
+ - spec/files/registrars/transfer/success.http
212
+ - spec/files/registrars_extended_attributes/list/success.http
213
+ - spec/files/registrars_prices/list/success.http
214
+ - spec/files/services/applied/success.http
215
+ - spec/files/services/apply/success.http
216
+ - spec/files/services/available/success.http
217
+ - spec/files/services/index/success.http
218
+ - spec/files/services/notfound.http
219
+ - spec/files/services/show/success.http
220
+ - spec/files/services/unapply/success.http
221
+ - spec/files/subscription/show/success.http
222
+ - spec/files/templates/apply/success.http
223
+ - spec/files/templates/create/created.http
224
+ - spec/files/templates/delete/success-204.http
225
+ - spec/files/templates/delete/success.http
226
+ - spec/files/templates/index/success.http
227
+ - spec/files/templates/notfound.http
170
228
  - spec/files/templates/show/success.http
229
+ - spec/files/templates/update/success.http
230
+ - spec/files/templates_records/create/created.http
231
+ - spec/files/templates_records/delete/success-204.http
232
+ - spec/files/templates_records/delete/success.http
233
+ - spec/files/templates_records/index/success.http
234
+ - spec/files/templates_records/notfound.http
235
+ - spec/files/templates_records/show/success.http
236
+ - spec/files/templates_records/update/success.http
237
+ - spec/files/users/user/success.http
171
238
  - spec/spec_helper.rb
172
239
  - spec/support/helpers.rb
173
240
  - spec/support/webmock.rb
@@ -195,41 +262,107 @@ signing_key:
195
262
  specification_version: 4
196
263
  summary: A Ruby client for the DNSimple API
197
264
  test_files:
198
- - spec/dnsimple/certificate_spec.rb
265
+ - spec/dnsimple/client/certificates_service_spec.rb
266
+ - spec/dnsimple/client/contacts_service_spec.rb
267
+ - spec/dnsimple/client/domains_service_spec.rb
268
+ - spec/dnsimple/client/name_servers_service_spec.rb
269
+ - spec/dnsimple/client/registrars_service_spec.rb
270
+ - spec/dnsimple/client/services_service_spec.rb
271
+ - spec/dnsimple/client/templates_service_spec.rb
272
+ - spec/dnsimple/client/users_service_spec.rb
199
273
  - spec/dnsimple/client_spec.rb
200
- - spec/dnsimple/contact_spec.rb
201
- - spec/dnsimple/domain_spec.rb
202
- - spec/dnsimple/extended_attributes_spec.rb
203
- - spec/dnsimple/record_spec.rb
204
- - spec/dnsimple/template_spec.rb
205
- - spec/dnsimple/user_spec.rb
274
+ - spec/dnsimple/compatibility_spec.rb
206
275
  - spec/files/2fa/error-badtoken.http
207
276
  - spec/files/2fa/error-required.http
208
277
  - spec/files/2fa/exchange-token.http
209
- - spec/files/account/user/success.http
278
+ - spec/files/badgateway.http
279
+ - spec/files/certificates/configure/success.http
210
280
  - spec/files/certificates/index/success.http
211
- - spec/files/certificates/show/notfound.http
281
+ - spec/files/certificates/notfound.http
282
+ - spec/files/certificates/purchase/success.http
212
283
  - spec/files/certificates/show/success.http
213
- - spec/files/contacts/show/notfound.http
284
+ - spec/files/certificates/submit/success.http
285
+ - spec/files/contacts/create/badrequest-missingcontact.http
286
+ - spec/files/contacts/create/badrequest-validationerror.http
287
+ - spec/files/contacts/create/created.http
288
+ - spec/files/contacts/delete/success-204.http
289
+ - spec/files/contacts/delete/success.http
290
+ - spec/files/contacts/index/success.http
291
+ - spec/files/contacts/notfound.http
214
292
  - spec/files/contacts/show/success.http
215
- - spec/files/domains/auto_renewal_disable/notfound.http
216
- - spec/files/domains/auto_renewal_disable/success.http
217
- - spec/files/domains/auto_renewal_enable/notfound.http
218
- - spec/files/domains/auto_renewal_enable/success.http
219
- - spec/files/domains/create/success.http
293
+ - spec/files/contacts/update/success.http
294
+ - spec/files/domains/create/created.http
220
295
  - spec/files/domains/delete/success-204.http
221
296
  - spec/files/domains/delete/success.http
222
297
  - spec/files/domains/index/success.http
223
298
  - spec/files/domains/notfound.http
224
299
  - spec/files/domains/show/success.http
225
- - spec/files/extended_attributes/ca.http
226
- - spec/files/extended_attributes/com.http
227
- - spec/files/extended_attributes/success.http
228
- - spec/files/records/index/success.http
229
- - spec/files/records/show/notfound.http
230
- - spec/files/records/show/success.http
231
- - spec/files/templates/show/notfound.http
300
+ - spec/files/domains_autorenewal/disable/success.http
301
+ - spec/files/domains_autorenewal/enable/success.http
302
+ - spec/files/domains_autorenewal/notfound-domain.http
303
+ - spec/files/domains_forwards/create/created.http
304
+ - spec/files/domains_forwards/delete/success.http
305
+ - spec/files/domains_forwards/get/success.http
306
+ - spec/files/domains_forwards/list/success.http
307
+ - spec/files/domains_forwards/notfound-domain.http
308
+ - spec/files/domains_forwards/notfound.http
309
+ - spec/files/domains_records/create/created.http
310
+ - spec/files/domains_records/delete/success-204.http
311
+ - spec/files/domains_records/delete/success.http
312
+ - spec/files/domains_records/index/success.http
313
+ - spec/files/domains_records/notfound.http
314
+ - spec/files/domains_records/show/success.http
315
+ - spec/files/domains_records/update/success.http
316
+ - spec/files/domains_sharing/create/success.http
317
+ - spec/files/domains_sharing/delete/success.http
318
+ - spec/files/domains_sharing/list/success.http
319
+ - spec/files/domains_sharing/notfound-domain.http
320
+ - spec/files/domains_sharing/notfound.http
321
+ - spec/files/domains_whois_privacy/disable/success.http
322
+ - spec/files/domains_whois_privacy/enable/success.http
323
+ - spec/files/domains_zones/get/success.http
324
+ - spec/files/domains_zones/notfound-domain.http
325
+ - spec/files/nameservers/change/success.http
326
+ - spec/files/nameservers/deregister/success.http
327
+ - spec/files/nameservers/list/success.http
328
+ - spec/files/nameservers/notfound-domain.http
329
+ - spec/files/nameservers/register/badrequest-valueerror.http
330
+ - spec/files/nameservers/register/success.http
331
+ - spec/files/registrars/check/available.http
332
+ - spec/files/registrars/check/registered.http
333
+ - spec/files/registrars/register/badrequest-missingdomain.http
334
+ - spec/files/registrars/register/badrequest-missingregistrant.http
335
+ - spec/files/registrars/register/success.http
336
+ - spec/files/registrars/renew/badrequest-missingrenewal.http
337
+ - spec/files/registrars/renew/badrequest-unable.http
338
+ - spec/files/registrars/renew/success.http
339
+ - spec/files/registrars/transfer/success.http
340
+ - spec/files/registrars_extended_attributes/list/success.http
341
+ - spec/files/registrars_prices/list/success.http
342
+ - spec/files/services/applied/success.http
343
+ - spec/files/services/apply/success.http
344
+ - spec/files/services/available/success.http
345
+ - spec/files/services/index/success.http
346
+ - spec/files/services/notfound.http
347
+ - spec/files/services/show/success.http
348
+ - spec/files/services/unapply/success.http
349
+ - spec/files/subscription/show/success.http
350
+ - spec/files/templates/apply/success.http
351
+ - spec/files/templates/create/created.http
352
+ - spec/files/templates/delete/success-204.http
353
+ - spec/files/templates/delete/success.http
354
+ - spec/files/templates/index/success.http
355
+ - spec/files/templates/notfound.http
232
356
  - spec/files/templates/show/success.http
357
+ - spec/files/templates/update/success.http
358
+ - spec/files/templates_records/create/created.http
359
+ - spec/files/templates_records/delete/success-204.http
360
+ - spec/files/templates_records/delete/success.http
361
+ - spec/files/templates_records/index/success.http
362
+ - spec/files/templates_records/notfound.http
363
+ - spec/files/templates_records/show/success.http
364
+ - spec/files/templates_records/update/success.http
365
+ - spec/files/users/user/success.http
233
366
  - spec/spec_helper.rb
234
367
  - spec/support/helpers.rb
235
368
  - spec/support/webmock.rb