dnsimple 2.2.0 → 3.0.0.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (244) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +3 -1
  4. data/CHANGELOG.md +13 -2
  5. data/CONTRIBUTING.md +35 -0
  6. data/Gemfile +2 -0
  7. data/LICENSE.txt +1 -1
  8. data/README.md +30 -82
  9. data/dnsimple.gemspec +2 -1
  10. data/lib/dnsimple.rb +0 -2
  11. data/lib/dnsimple/client.rb +64 -64
  12. data/lib/dnsimple/client/clients.rb +82 -58
  13. data/lib/dnsimple/client/contacts.rb +74 -37
  14. data/lib/dnsimple/client/domains.rb +82 -28
  15. data/lib/dnsimple/client/domains_email_forwards.rb +107 -0
  16. data/lib/dnsimple/client/identity.rb +38 -0
  17. data/lib/dnsimple/client/oauth.rb +42 -0
  18. data/lib/dnsimple/client/registrar.rb +64 -72
  19. data/lib/dnsimple/client/registrar_auto_renewal.rb +41 -0
  20. data/lib/dnsimple/client/registrar_whois_privacy.rb +74 -0
  21. data/lib/dnsimple/client/tlds.rb +88 -0
  22. data/lib/dnsimple/client/webhooks.rb +82 -0
  23. data/lib/dnsimple/client/zones.rb +68 -0
  24. data/lib/dnsimple/client/zones_records.rb +127 -0
  25. data/lib/dnsimple/default.rb +10 -17
  26. data/lib/dnsimple/error.rb +5 -8
  27. data/lib/dnsimple/extra.rb +1 -1
  28. data/lib/dnsimple/response.rb +80 -0
  29. data/lib/dnsimple/struct.rb +13 -14
  30. data/lib/dnsimple/struct/account.rb +13 -0
  31. data/lib/dnsimple/struct/contact.rb +6 -3
  32. data/lib/dnsimple/struct/domain.rb +10 -10
  33. data/lib/dnsimple/struct/domain_check.rb +16 -0
  34. data/lib/dnsimple/struct/email_forward.rb +11 -1
  35. data/lib/dnsimple/struct/oauth_token.rb +19 -0
  36. data/lib/dnsimple/struct/record.rb +25 -7
  37. data/lib/dnsimple/struct/tld.rb +22 -0
  38. data/lib/dnsimple/struct/user.rb +3 -7
  39. data/lib/dnsimple/struct/webhook.rb +13 -0
  40. data/lib/dnsimple/struct/whois_privacy.rb +8 -5
  41. data/lib/dnsimple/struct/zone.rb +25 -0
  42. data/lib/dnsimple/version.rb +1 -1
  43. data/spec/dnsimple/client/client_service_spec.rb +37 -0
  44. data/spec/dnsimple/client/contacts_spec.rb +108 -78
  45. data/spec/dnsimple/client/domains_email_forwards_spec.rb +190 -0
  46. data/spec/dnsimple/client/domains_spec.rb +121 -58
  47. data/spec/dnsimple/client/identity_spec.rb +56 -0
  48. data/spec/dnsimple/client/oauth_spec.rb +48 -0
  49. data/spec/dnsimple/client/registrar_auto_renewal_spec.rb +80 -0
  50. data/spec/dnsimple/client/registrar_spec.rb +109 -122
  51. data/spec/dnsimple/client/registrar_whois_privacy_spec.rb +119 -0
  52. data/spec/dnsimple/client/tlds_spec.rb +139 -0
  53. data/spec/dnsimple/client/webhooks_spec.rb +142 -0
  54. data/spec/dnsimple/client/zones_records_spec.rb +277 -0
  55. data/spec/dnsimple/client/zones_spec.rb +109 -0
  56. data/spec/dnsimple/client_spec.rb +34 -46
  57. data/spec/dnsimple/extra_spec.rb +22 -0
  58. data/spec/{files → fixtures.http}/badgateway.http +14 -14
  59. data/spec/fixtures.http/checkDomain/success.http +17 -0
  60. data/spec/fixtures.http/createContact/created.http +17 -0
  61. data/spec/fixtures.http/createDomain/created.http +16 -0
  62. data/spec/fixtures.http/createEmailForward/created.http +17 -0
  63. data/spec/fixtures.http/createWebhook/created.http +17 -0
  64. data/spec/fixtures.http/createZoneRecord/created.http +17 -0
  65. data/spec/fixtures.http/deleteContact/success.http +13 -0
  66. data/spec/fixtures.http/deleteDomain/success.http +13 -0
  67. data/spec/fixtures.http/deleteEmailForward/success.http +12 -0
  68. data/spec/fixtures.http/deleteWebhook/success.http +13 -0
  69. data/spec/fixtures.http/deleteZoneRecord/success.http +13 -0
  70. data/spec/fixtures.http/disableAutoRenewal/success.http +12 -0
  71. data/spec/fixtures.http/disableWhoisPrivacy/success.http +17 -0
  72. data/spec/fixtures.http/enableAutoRenewal/success.http +12 -0
  73. data/spec/fixtures.http/enableWhoisPrivacy/created.http +17 -0
  74. data/spec/fixtures.http/enableWhoisPrivacy/success.http +17 -0
  75. data/spec/fixtures.http/getContact/success.http +17 -0
  76. data/spec/fixtures.http/getDomain/success.http +16 -0
  77. data/spec/fixtures.http/getEmailForward/success.http +17 -0
  78. data/spec/fixtures.http/getTld/success.http +17 -0
  79. data/spec/fixtures.http/getTldExtendedAttributes/success-noattributes.http +17 -0
  80. data/spec/fixtures.http/getTldExtendedAttributes/success.http +17 -0
  81. data/spec/fixtures.http/getWebhook/success.http +17 -0
  82. data/spec/fixtures.http/getWhoisPrivacy/success.http +17 -0
  83. data/spec/fixtures.http/getZone/success.http +17 -0
  84. data/spec/fixtures.http/getZoneRecord/success.http +17 -0
  85. data/spec/fixtures.http/listContacts/success.http +17 -0
  86. data/spec/fixtures.http/listDomains/success.http +16 -0
  87. data/spec/fixtures.http/listEmailForwards/success.http +17 -0
  88. data/spec/fixtures.http/listTlds/success.http +17 -0
  89. data/spec/fixtures.http/listWebhooks/success.http +17 -0
  90. data/spec/fixtures.http/listZoneRecords/success.http +17 -0
  91. data/spec/fixtures.http/listZones/success.http +17 -0
  92. data/spec/fixtures.http/notfound-contact.http +12 -0
  93. data/spec/fixtures.http/notfound-domain.http +12 -0
  94. data/spec/fixtures.http/notfound-emailforward.http +12 -0
  95. data/spec/fixtures.http/notfound-record.http +12 -0
  96. data/spec/fixtures.http/notfound-webhook.http +12 -0
  97. data/spec/fixtures.http/notfound-zone.http +12 -0
  98. data/spec/fixtures.http/oauthAccessToken/success.http +17 -0
  99. data/spec/fixtures.http/pages-1of3.http +16 -0
  100. data/spec/fixtures.http/pages-2of3.http +16 -0
  101. data/spec/fixtures.http/pages-3of3.http +16 -0
  102. data/spec/fixtures.http/registerDomain/success.http +17 -0
  103. data/spec/fixtures.http/renewDomain/error-tooearly.http +15 -0
  104. data/spec/fixtures.http/renewDomain/success.http +17 -0
  105. data/spec/fixtures.http/resetDomainToken/success.http +17 -0
  106. data/spec/fixtures.http/response.http +16 -0
  107. data/spec/fixtures.http/transferDomain/error-indnsimple.http +15 -0
  108. data/spec/fixtures.http/transferDomain/error-missing-authcode.http +15 -0
  109. data/spec/fixtures.http/transferDomain/success.http +17 -0
  110. data/spec/fixtures.http/transferDomainOut/success.http +13 -0
  111. data/spec/fixtures.http/updateContact/success.http +17 -0
  112. data/spec/fixtures.http/updateZoneRecord/success.http +17 -0
  113. data/spec/fixtures.http/whoami/success.http +16 -0
  114. data/spec/fixtures.http/whoami/success_account.http +16 -0
  115. data/spec/fixtures.http/whoami/success_user.http +16 -0
  116. data/spec/spec_helper.rb +0 -6
  117. data/spec/support/helpers.rb +4 -4
  118. metadata +161 -238
  119. data/lib/dnsimple/client/certificates.rb +0 -100
  120. data/lib/dnsimple/client/domains_autorenewal.rb +0 -35
  121. data/lib/dnsimple/client/domains_forwards.rb +0 -71
  122. data/lib/dnsimple/client/domains_privacy.rb +0 -35
  123. data/lib/dnsimple/client/domains_records.rb +0 -90
  124. data/lib/dnsimple/client/domains_sharing.rb +0 -54
  125. data/lib/dnsimple/client/domains_zones.rb +0 -22
  126. data/lib/dnsimple/client/name_servers.rb +0 -71
  127. data/lib/dnsimple/client/services.rb +0 -37
  128. data/lib/dnsimple/client/services_domains.rb +0 -68
  129. data/lib/dnsimple/client/templates.rb +0 -88
  130. data/lib/dnsimple/client/templates_domains.rb +0 -23
  131. data/lib/dnsimple/client/templates_records.rb +0 -88
  132. data/lib/dnsimple/client/users.rb +0 -39
  133. data/lib/dnsimple/client/vanity_name_servers.rb +0 -39
  134. data/lib/dnsimple/compatibility.rb +0 -46
  135. data/lib/dnsimple/struct/certificate.rb +0 -56
  136. data/lib/dnsimple/struct/membership.rb +0 -22
  137. data/lib/dnsimple/struct/price.rb +0 -16
  138. data/lib/dnsimple/struct/service.rb +0 -19
  139. data/lib/dnsimple/struct/template.rb +0 -19
  140. data/lib/dnsimple/struct/template_record.rb +0 -24
  141. data/lib/dnsimple/struct/transfer_order.rb +0 -10
  142. data/spec/dnsimple/client/certificates_spec.rb +0 -196
  143. data/spec/dnsimple/client/domains_autorenewals_spec.rb +0 -72
  144. data/spec/dnsimple/client/domains_forwards_spec.rb +0 -146
  145. data/spec/dnsimple/client/domains_privacy_spec.rb +0 -74
  146. data/spec/dnsimple/client/domains_records_spec.rb +0 -191
  147. data/spec/dnsimple/client/domains_sharing_spec.rb +0 -109
  148. data/spec/dnsimple/client/domains_zones_spec.rb +0 -40
  149. data/spec/dnsimple/client/name_servers_spec.rb +0 -131
  150. data/spec/dnsimple/client/services_domains_spec.rb +0 -101
  151. data/spec/dnsimple/client/services_spec.rb +0 -69
  152. data/spec/dnsimple/client/templates_domains_spec.rb +0 -38
  153. data/spec/dnsimple/client/templates_records_spec.rb +0 -180
  154. data/spec/dnsimple/client/templates_spec.rb +0 -166
  155. data/spec/dnsimple/client/users_spec.rb +0 -70
  156. data/spec/dnsimple/client/vanity_name_servers_spec.rb +0 -61
  157. data/spec/dnsimple/compatibility_spec.rb +0 -57
  158. data/spec/files/2fa/error-badtoken.http +0 -22
  159. data/spec/files/2fa/error-required.http +0 -23
  160. data/spec/files/2fa/exchange-token.http +0 -22
  161. data/spec/files/certificates/configure/success.http +0 -19
  162. data/spec/files/certificates/get/success.http +0 -19
  163. data/spec/files/certificates/list/success.http +0 -19
  164. data/spec/files/certificates/notfound.http +0 -19
  165. data/spec/files/certificates/purchase/success.http +0 -19
  166. data/spec/files/certificates/submit/success.http +0 -19
  167. data/spec/files/contacts/contact/success.http +0 -19
  168. data/spec/files/contacts/contacts/success.http +0 -23
  169. data/spec/files/contacts/create_contact/badrequest-missingcontact.http +0 -19
  170. data/spec/files/contacts/create_contact/badrequest-validationerror.http +0 -19
  171. data/spec/files/contacts/create_contact/created.http +0 -22
  172. data/spec/files/contacts/delete_contact/success-204.http +0 -18
  173. data/spec/files/contacts/delete_contact/success.http +0 -19
  174. data/spec/files/contacts/notfound-contact.http +0 -19
  175. data/spec/files/contacts/update_contact/success.http +0 -21
  176. data/spec/files/domains/create_domain/created.http +0 -21
  177. data/spec/files/domains/create_forward/created.http +0 -22
  178. data/spec/files/domains/create_membership/success.http +0 -21
  179. data/spec/files/domains/create_record/created.http +0 -21
  180. data/spec/files/domains/delete_domain/success-204.http +0 -18
  181. data/spec/files/domains/delete_domain/success.http +0 -19
  182. data/spec/files/domains/delete_forward/success.http +0 -17
  183. data/spec/files/domains/delete_membership/success.http +0 -17
  184. data/spec/files/domains/delete_record/success-204.http +0 -18
  185. data/spec/files/domains/delete_record/success.http +0 -19
  186. data/spec/files/domains/disable_auto_renewal/success.http +0 -21
  187. data/spec/files/domains/disable_whois_privacy/success.http +0 -21
  188. data/spec/files/domains/domain/success.http +0 -21
  189. data/spec/files/domains/domains/success.http +0 -21
  190. data/spec/files/domains/enable_auto_renewal/success.http +0 -21
  191. data/spec/files/domains/enable_whois_privacy/success.http +0 -22
  192. data/spec/files/domains/forward/success.http +0 -21
  193. data/spec/files/domains/forwards/success.http +0 -21
  194. data/spec/files/domains/memberships/success.http +0 -21
  195. data/spec/files/domains/notfound-domain.http +0 -19
  196. data/spec/files/domains/notfound-forward.http +0 -19
  197. data/spec/files/domains/notfound-membership.http +0 -19
  198. data/spec/files/domains/record/success.http +0 -19
  199. data/spec/files/domains/records/success.http +0 -19
  200. data/spec/files/domains/update_record/success.http +0 -21
  201. data/spec/files/domains/zone/success.http +0 -21
  202. data/spec/files/nameservers/change/success.http +0 -23
  203. data/spec/files/nameservers/deregister/success.http +0 -17
  204. data/spec/files/nameservers/name_servers/success.http +0 -23
  205. data/spec/files/nameservers/notfound-domain.http +0 -19
  206. data/spec/files/nameservers/register/badrequest-valueerror.http +0 -19
  207. data/spec/files/nameservers/register/success.http +0 -21
  208. data/spec/files/nameservers/vanity_name_servers/disabled.http +0 -23
  209. data/spec/files/nameservers/vanity_name_servers/enabled.http +0 -23
  210. data/spec/files/registrar/check/available.http +0 -19
  211. data/spec/files/registrar/check/registered.http +0 -21
  212. data/spec/files/registrar/extended_attributes/success.http +0 -21
  213. data/spec/files/registrar/prices/success.http +0 -21
  214. data/spec/files/registrar/register/badrequest-missingdomain.http +0 -19
  215. data/spec/files/registrar/register/badrequest-missingregistrant.http +0 -19
  216. data/spec/files/registrar/register/success.http +0 -21
  217. data/spec/files/registrar/renew/badrequest-missingrenewal.http +0 -19
  218. data/spec/files/registrar/renew/badrequest-unable.http +0 -19
  219. data/spec/files/registrar/renew/success.http +0 -21
  220. data/spec/files/registrar/transfer/success.http +0 -21
  221. data/spec/files/services/applied/success.http +0 -21
  222. data/spec/files/services/apply/success.http +0 -21
  223. data/spec/files/services/available/success.http +0 -21
  224. data/spec/files/services/notfound-service.http +0 -19
  225. data/spec/files/services/service/success.http +0 -21
  226. data/spec/files/services/services/success.http +0 -21
  227. data/spec/files/services/unapply/success.http +0 -21
  228. data/spec/files/subscriptions/subscription/success.http +0 -21
  229. data/spec/files/templates/apply_template/success.http +0 -21
  230. data/spec/files/templates/create_template/created.http +0 -22
  231. data/spec/files/templates/delete_template/success-204.http +0 -21
  232. data/spec/files/templates/delete_template/success.http +0 -21
  233. data/spec/files/templates/notfound-template.http +0 -19
  234. data/spec/files/templates/template/success.http +0 -21
  235. data/spec/files/templates/templates/success.http +0 -21
  236. data/spec/files/templates/update_template/success.http +0 -21
  237. data/spec/files/templates_records/create_record/created.http +0 -22
  238. data/spec/files/templates_records/delete_record/success-204.http +0 -19
  239. data/spec/files/templates_records/delete_record/success.http +0 -21
  240. data/spec/files/templates_records/notfound-template-record.http +0 -19
  241. data/spec/files/templates_records/record/success.http +0 -21
  242. data/spec/files/templates_records/records/success.http +0 -21
  243. data/spec/files/templates_records/update_record/success.http +0 -21
  244. data/spec/files/users/user/success.http +0 -21
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.2.0
4
+ version: 3.0.0.pre.beta1
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: 2016-02-24 00:00:00.000000000 Z
12
+ date: 2016-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -87,7 +87,8 @@ email:
87
87
  - simone.carletti@dnsimple.com
88
88
  executables: []
89
89
  extensions: []
90
- extra_rdoc_files: []
90
+ extra_rdoc_files:
91
+ - LICENSE.txt
91
92
  files:
92
93
  - ".gitignore"
93
94
  - ".rspec"
@@ -95,6 +96,7 @@ files:
95
96
  - ".ruby-version"
96
97
  - ".travis.yml"
97
98
  - CHANGELOG.md
99
+ - CONTRIBUTING.md
98
100
  - Gemfile
99
101
  - LICENSE.txt
100
102
  - README.md
@@ -103,154 +105,111 @@ files:
103
105
  - dnsimple.gemspec
104
106
  - lib/dnsimple.rb
105
107
  - lib/dnsimple/client.rb
106
- - lib/dnsimple/client/certificates.rb
107
108
  - lib/dnsimple/client/clients.rb
108
109
  - lib/dnsimple/client/contacts.rb
109
110
  - lib/dnsimple/client/domains.rb
110
- - lib/dnsimple/client/domains_autorenewal.rb
111
- - lib/dnsimple/client/domains_forwards.rb
112
- - lib/dnsimple/client/domains_privacy.rb
113
- - lib/dnsimple/client/domains_records.rb
114
- - lib/dnsimple/client/domains_sharing.rb
115
- - lib/dnsimple/client/domains_zones.rb
116
- - lib/dnsimple/client/name_servers.rb
111
+ - lib/dnsimple/client/domains_email_forwards.rb
112
+ - lib/dnsimple/client/identity.rb
113
+ - lib/dnsimple/client/oauth.rb
117
114
  - lib/dnsimple/client/registrar.rb
118
- - lib/dnsimple/client/services.rb
119
- - lib/dnsimple/client/services_domains.rb
120
- - lib/dnsimple/client/templates.rb
121
- - lib/dnsimple/client/templates_domains.rb
122
- - lib/dnsimple/client/templates_records.rb
123
- - lib/dnsimple/client/users.rb
124
- - lib/dnsimple/client/vanity_name_servers.rb
125
- - lib/dnsimple/compatibility.rb
115
+ - lib/dnsimple/client/registrar_auto_renewal.rb
116
+ - lib/dnsimple/client/registrar_whois_privacy.rb
117
+ - lib/dnsimple/client/tlds.rb
118
+ - lib/dnsimple/client/webhooks.rb
119
+ - lib/dnsimple/client/zones.rb
120
+ - lib/dnsimple/client/zones_records.rb
126
121
  - lib/dnsimple/default.rb
127
122
  - lib/dnsimple/error.rb
128
123
  - lib/dnsimple/extra.rb
124
+ - lib/dnsimple/response.rb
129
125
  - lib/dnsimple/struct.rb
130
- - lib/dnsimple/struct/certificate.rb
126
+ - lib/dnsimple/struct/account.rb
131
127
  - lib/dnsimple/struct/contact.rb
132
128
  - lib/dnsimple/struct/domain.rb
129
+ - lib/dnsimple/struct/domain_check.rb
133
130
  - lib/dnsimple/struct/email_forward.rb
134
131
  - lib/dnsimple/struct/extended_attribute.rb
135
- - lib/dnsimple/struct/membership.rb
136
- - lib/dnsimple/struct/price.rb
132
+ - lib/dnsimple/struct/oauth_token.rb
137
133
  - lib/dnsimple/struct/record.rb
138
- - lib/dnsimple/struct/service.rb
139
- - lib/dnsimple/struct/template.rb
140
- - lib/dnsimple/struct/template_record.rb
141
- - lib/dnsimple/struct/transfer_order.rb
134
+ - lib/dnsimple/struct/tld.rb
142
135
  - lib/dnsimple/struct/user.rb
136
+ - lib/dnsimple/struct/webhook.rb
143
137
  - lib/dnsimple/struct/whois_privacy.rb
138
+ - lib/dnsimple/struct/zone.rb
144
139
  - lib/dnsimple/version.rb
145
- - spec/dnsimple/client/certificates_spec.rb
140
+ - spec/dnsimple/client/client_service_spec.rb
146
141
  - spec/dnsimple/client/contacts_spec.rb
147
- - spec/dnsimple/client/domains_autorenewals_spec.rb
148
- - spec/dnsimple/client/domains_forwards_spec.rb
149
- - spec/dnsimple/client/domains_privacy_spec.rb
150
- - spec/dnsimple/client/domains_records_spec.rb
151
- - spec/dnsimple/client/domains_sharing_spec.rb
142
+ - spec/dnsimple/client/domains_email_forwards_spec.rb
152
143
  - spec/dnsimple/client/domains_spec.rb
153
- - spec/dnsimple/client/domains_zones_spec.rb
154
- - spec/dnsimple/client/name_servers_spec.rb
144
+ - spec/dnsimple/client/identity_spec.rb
145
+ - spec/dnsimple/client/oauth_spec.rb
146
+ - spec/dnsimple/client/registrar_auto_renewal_spec.rb
155
147
  - spec/dnsimple/client/registrar_spec.rb
156
- - spec/dnsimple/client/services_domains_spec.rb
157
- - spec/dnsimple/client/services_spec.rb
158
- - spec/dnsimple/client/templates_domains_spec.rb
159
- - spec/dnsimple/client/templates_records_spec.rb
160
- - spec/dnsimple/client/templates_spec.rb
161
- - spec/dnsimple/client/users_spec.rb
162
- - spec/dnsimple/client/vanity_name_servers_spec.rb
148
+ - spec/dnsimple/client/registrar_whois_privacy_spec.rb
149
+ - spec/dnsimple/client/tlds_spec.rb
150
+ - spec/dnsimple/client/webhooks_spec.rb
151
+ - spec/dnsimple/client/zones_records_spec.rb
152
+ - spec/dnsimple/client/zones_spec.rb
163
153
  - spec/dnsimple/client_spec.rb
164
- - spec/dnsimple/compatibility_spec.rb
165
154
  - spec/dnsimple/extra_spec.rb
166
- - spec/files/2fa/error-badtoken.http
167
- - spec/files/2fa/error-required.http
168
- - spec/files/2fa/exchange-token.http
169
- - spec/files/badgateway.http
170
- - spec/files/certificates/configure/success.http
171
- - spec/files/certificates/get/success.http
172
- - spec/files/certificates/list/success.http
173
- - spec/files/certificates/notfound.http
174
- - spec/files/certificates/purchase/success.http
175
- - spec/files/certificates/submit/success.http
176
- - spec/files/contacts/contact/success.http
177
- - spec/files/contacts/contacts/success.http
178
- - spec/files/contacts/create_contact/badrequest-missingcontact.http
179
- - spec/files/contacts/create_contact/badrequest-validationerror.http
180
- - spec/files/contacts/create_contact/created.http
181
- - spec/files/contacts/delete_contact/success-204.http
182
- - spec/files/contacts/delete_contact/success.http
183
- - spec/files/contacts/notfound-contact.http
184
- - spec/files/contacts/update_contact/success.http
185
- - spec/files/domains/create_domain/created.http
186
- - spec/files/domains/create_forward/created.http
187
- - spec/files/domains/create_membership/success.http
188
- - spec/files/domains/create_record/created.http
189
- - spec/files/domains/delete_domain/success-204.http
190
- - spec/files/domains/delete_domain/success.http
191
- - spec/files/domains/delete_forward/success.http
192
- - spec/files/domains/delete_membership/success.http
193
- - spec/files/domains/delete_record/success-204.http
194
- - spec/files/domains/delete_record/success.http
195
- - spec/files/domains/disable_auto_renewal/success.http
196
- - spec/files/domains/disable_whois_privacy/success.http
197
- - spec/files/domains/domain/success.http
198
- - spec/files/domains/domains/success.http
199
- - spec/files/domains/enable_auto_renewal/success.http
200
- - spec/files/domains/enable_whois_privacy/success.http
201
- - spec/files/domains/forward/success.http
202
- - spec/files/domains/forwards/success.http
203
- - spec/files/domains/memberships/success.http
204
- - spec/files/domains/notfound-domain.http
205
- - spec/files/domains/notfound-forward.http
206
- - spec/files/domains/notfound-membership.http
207
- - spec/files/domains/record/success.http
208
- - spec/files/domains/records/success.http
209
- - spec/files/domains/update_record/success.http
210
- - spec/files/domains/zone/success.http
211
- - spec/files/nameservers/change/success.http
212
- - spec/files/nameservers/deregister/success.http
213
- - spec/files/nameservers/name_servers/success.http
214
- - spec/files/nameservers/notfound-domain.http
215
- - spec/files/nameservers/register/badrequest-valueerror.http
216
- - spec/files/nameservers/register/success.http
217
- - spec/files/nameservers/vanity_name_servers/disabled.http
218
- - spec/files/nameservers/vanity_name_servers/enabled.http
219
- - spec/files/registrar/check/available.http
220
- - spec/files/registrar/check/registered.http
221
- - spec/files/registrar/extended_attributes/success.http
222
- - spec/files/registrar/prices/success.http
223
- - spec/files/registrar/register/badrequest-missingdomain.http
224
- - spec/files/registrar/register/badrequest-missingregistrant.http
225
- - spec/files/registrar/register/success.http
226
- - spec/files/registrar/renew/badrequest-missingrenewal.http
227
- - spec/files/registrar/renew/badrequest-unable.http
228
- - spec/files/registrar/renew/success.http
229
- - spec/files/registrar/transfer/success.http
230
- - spec/files/services/applied/success.http
231
- - spec/files/services/apply/success.http
232
- - spec/files/services/available/success.http
233
- - spec/files/services/notfound-service.http
234
- - spec/files/services/service/success.http
235
- - spec/files/services/services/success.http
236
- - spec/files/services/unapply/success.http
237
- - spec/files/subscriptions/subscription/success.http
238
- - spec/files/templates/apply_template/success.http
239
- - spec/files/templates/create_template/created.http
240
- - spec/files/templates/delete_template/success-204.http
241
- - spec/files/templates/delete_template/success.http
242
- - spec/files/templates/notfound-template.http
243
- - spec/files/templates/template/success.http
244
- - spec/files/templates/templates/success.http
245
- - spec/files/templates/update_template/success.http
246
- - spec/files/templates_records/create_record/created.http
247
- - spec/files/templates_records/delete_record/success-204.http
248
- - spec/files/templates_records/delete_record/success.http
249
- - spec/files/templates_records/notfound-template-record.http
250
- - spec/files/templates_records/record/success.http
251
- - spec/files/templates_records/records/success.http
252
- - spec/files/templates_records/update_record/success.http
253
- - spec/files/users/user/success.http
155
+ - spec/fixtures.http/badgateway.http
156
+ - spec/fixtures.http/checkDomain/success.http
157
+ - spec/fixtures.http/createContact/created.http
158
+ - spec/fixtures.http/createDomain/created.http
159
+ - spec/fixtures.http/createEmailForward/created.http
160
+ - spec/fixtures.http/createWebhook/created.http
161
+ - spec/fixtures.http/createZoneRecord/created.http
162
+ - spec/fixtures.http/deleteContact/success.http
163
+ - spec/fixtures.http/deleteDomain/success.http
164
+ - spec/fixtures.http/deleteEmailForward/success.http
165
+ - spec/fixtures.http/deleteWebhook/success.http
166
+ - spec/fixtures.http/deleteZoneRecord/success.http
167
+ - spec/fixtures.http/disableAutoRenewal/success.http
168
+ - spec/fixtures.http/disableWhoisPrivacy/success.http
169
+ - spec/fixtures.http/enableAutoRenewal/success.http
170
+ - spec/fixtures.http/enableWhoisPrivacy/created.http
171
+ - spec/fixtures.http/enableWhoisPrivacy/success.http
172
+ - spec/fixtures.http/getContact/success.http
173
+ - spec/fixtures.http/getDomain/success.http
174
+ - spec/fixtures.http/getEmailForward/success.http
175
+ - spec/fixtures.http/getTld/success.http
176
+ - spec/fixtures.http/getTldExtendedAttributes/success-noattributes.http
177
+ - spec/fixtures.http/getTldExtendedAttributes/success.http
178
+ - spec/fixtures.http/getWebhook/success.http
179
+ - spec/fixtures.http/getWhoisPrivacy/success.http
180
+ - spec/fixtures.http/getZone/success.http
181
+ - spec/fixtures.http/getZoneRecord/success.http
182
+ - spec/fixtures.http/listContacts/success.http
183
+ - spec/fixtures.http/listDomains/success.http
184
+ - spec/fixtures.http/listEmailForwards/success.http
185
+ - spec/fixtures.http/listTlds/success.http
186
+ - spec/fixtures.http/listWebhooks/success.http
187
+ - spec/fixtures.http/listZoneRecords/success.http
188
+ - spec/fixtures.http/listZones/success.http
189
+ - spec/fixtures.http/notfound-contact.http
190
+ - spec/fixtures.http/notfound-domain.http
191
+ - spec/fixtures.http/notfound-emailforward.http
192
+ - spec/fixtures.http/notfound-record.http
193
+ - spec/fixtures.http/notfound-webhook.http
194
+ - spec/fixtures.http/notfound-zone.http
195
+ - spec/fixtures.http/oauthAccessToken/success.http
196
+ - spec/fixtures.http/pages-1of3.http
197
+ - spec/fixtures.http/pages-2of3.http
198
+ - spec/fixtures.http/pages-3of3.http
199
+ - spec/fixtures.http/registerDomain/success.http
200
+ - spec/fixtures.http/renewDomain/error-tooearly.http
201
+ - spec/fixtures.http/renewDomain/success.http
202
+ - spec/fixtures.http/resetDomainToken/success.http
203
+ - spec/fixtures.http/response.http
204
+ - spec/fixtures.http/transferDomain/error-indnsimple.http
205
+ - spec/fixtures.http/transferDomain/error-missing-authcode.http
206
+ - spec/fixtures.http/transferDomain/success.http
207
+ - spec/fixtures.http/transferDomainOut/success.http
208
+ - spec/fixtures.http/updateContact/success.http
209
+ - spec/fixtures.http/updateZoneRecord/success.http
210
+ - spec/fixtures.http/whoami/success.http
211
+ - spec/fixtures.http/whoami/success_account.http
212
+ - spec/fixtures.http/whoami/success_user.http
254
213
  - spec/spec_helper.rb
255
214
  - spec/support/helpers.rb
256
215
  - spec/support/webmock.rb
@@ -265,128 +224,92 @@ required_ruby_version: !ruby/object:Gem::Requirement
265
224
  requirements:
266
225
  - - ">="
267
226
  - !ruby/object:Gem::Version
268
- version: 1.9.3
227
+ version: '2.0'
269
228
  required_rubygems_version: !ruby/object:Gem::Requirement
270
229
  requirements:
271
- - - ">="
230
+ - - ">"
272
231
  - !ruby/object:Gem::Version
273
- version: '0'
232
+ version: 1.3.1
274
233
  requirements: []
275
234
  rubyforge_project:
276
- rubygems_version: 2.2.5
235
+ rubygems_version: 2.5.1
277
236
  signing_key:
278
237
  specification_version: 4
279
238
  summary: The DNSimple API client for Ruby
280
239
  test_files:
281
- - spec/dnsimple/client/certificates_spec.rb
240
+ - spec/dnsimple/client/client_service_spec.rb
282
241
  - spec/dnsimple/client/contacts_spec.rb
283
- - spec/dnsimple/client/domains_autorenewals_spec.rb
284
- - spec/dnsimple/client/domains_forwards_spec.rb
285
- - spec/dnsimple/client/domains_privacy_spec.rb
286
- - spec/dnsimple/client/domains_records_spec.rb
287
- - spec/dnsimple/client/domains_sharing_spec.rb
242
+ - spec/dnsimple/client/domains_email_forwards_spec.rb
288
243
  - spec/dnsimple/client/domains_spec.rb
289
- - spec/dnsimple/client/domains_zones_spec.rb
290
- - spec/dnsimple/client/name_servers_spec.rb
244
+ - spec/dnsimple/client/identity_spec.rb
245
+ - spec/dnsimple/client/oauth_spec.rb
246
+ - spec/dnsimple/client/registrar_auto_renewal_spec.rb
291
247
  - spec/dnsimple/client/registrar_spec.rb
292
- - spec/dnsimple/client/services_domains_spec.rb
293
- - spec/dnsimple/client/services_spec.rb
294
- - spec/dnsimple/client/templates_domains_spec.rb
295
- - spec/dnsimple/client/templates_records_spec.rb
296
- - spec/dnsimple/client/templates_spec.rb
297
- - spec/dnsimple/client/users_spec.rb
298
- - spec/dnsimple/client/vanity_name_servers_spec.rb
248
+ - spec/dnsimple/client/registrar_whois_privacy_spec.rb
249
+ - spec/dnsimple/client/tlds_spec.rb
250
+ - spec/dnsimple/client/webhooks_spec.rb
251
+ - spec/dnsimple/client/zones_records_spec.rb
252
+ - spec/dnsimple/client/zones_spec.rb
299
253
  - spec/dnsimple/client_spec.rb
300
- - spec/dnsimple/compatibility_spec.rb
301
254
  - spec/dnsimple/extra_spec.rb
302
- - spec/files/2fa/error-badtoken.http
303
- - spec/files/2fa/error-required.http
304
- - spec/files/2fa/exchange-token.http
305
- - spec/files/badgateway.http
306
- - spec/files/certificates/configure/success.http
307
- - spec/files/certificates/get/success.http
308
- - spec/files/certificates/list/success.http
309
- - spec/files/certificates/notfound.http
310
- - spec/files/certificates/purchase/success.http
311
- - spec/files/certificates/submit/success.http
312
- - spec/files/contacts/contact/success.http
313
- - spec/files/contacts/contacts/success.http
314
- - spec/files/contacts/create_contact/badrequest-missingcontact.http
315
- - spec/files/contacts/create_contact/badrequest-validationerror.http
316
- - spec/files/contacts/create_contact/created.http
317
- - spec/files/contacts/delete_contact/success-204.http
318
- - spec/files/contacts/delete_contact/success.http
319
- - spec/files/contacts/notfound-contact.http
320
- - spec/files/contacts/update_contact/success.http
321
- - spec/files/domains/create_domain/created.http
322
- - spec/files/domains/create_forward/created.http
323
- - spec/files/domains/create_membership/success.http
324
- - spec/files/domains/create_record/created.http
325
- - spec/files/domains/delete_domain/success-204.http
326
- - spec/files/domains/delete_domain/success.http
327
- - spec/files/domains/delete_forward/success.http
328
- - spec/files/domains/delete_membership/success.http
329
- - spec/files/domains/delete_record/success-204.http
330
- - spec/files/domains/delete_record/success.http
331
- - spec/files/domains/disable_auto_renewal/success.http
332
- - spec/files/domains/disable_whois_privacy/success.http
333
- - spec/files/domains/domain/success.http
334
- - spec/files/domains/domains/success.http
335
- - spec/files/domains/enable_auto_renewal/success.http
336
- - spec/files/domains/enable_whois_privacy/success.http
337
- - spec/files/domains/forward/success.http
338
- - spec/files/domains/forwards/success.http
339
- - spec/files/domains/memberships/success.http
340
- - spec/files/domains/notfound-domain.http
341
- - spec/files/domains/notfound-forward.http
342
- - spec/files/domains/notfound-membership.http
343
- - spec/files/domains/record/success.http
344
- - spec/files/domains/records/success.http
345
- - spec/files/domains/update_record/success.http
346
- - spec/files/domains/zone/success.http
347
- - spec/files/nameservers/change/success.http
348
- - spec/files/nameservers/deregister/success.http
349
- - spec/files/nameservers/name_servers/success.http
350
- - spec/files/nameservers/notfound-domain.http
351
- - spec/files/nameservers/register/badrequest-valueerror.http
352
- - spec/files/nameservers/register/success.http
353
- - spec/files/nameservers/vanity_name_servers/disabled.http
354
- - spec/files/nameservers/vanity_name_servers/enabled.http
355
- - spec/files/registrar/check/available.http
356
- - spec/files/registrar/check/registered.http
357
- - spec/files/registrar/extended_attributes/success.http
358
- - spec/files/registrar/prices/success.http
359
- - spec/files/registrar/register/badrequest-missingdomain.http
360
- - spec/files/registrar/register/badrequest-missingregistrant.http
361
- - spec/files/registrar/register/success.http
362
- - spec/files/registrar/renew/badrequest-missingrenewal.http
363
- - spec/files/registrar/renew/badrequest-unable.http
364
- - spec/files/registrar/renew/success.http
365
- - spec/files/registrar/transfer/success.http
366
- - spec/files/services/applied/success.http
367
- - spec/files/services/apply/success.http
368
- - spec/files/services/available/success.http
369
- - spec/files/services/notfound-service.http
370
- - spec/files/services/service/success.http
371
- - spec/files/services/services/success.http
372
- - spec/files/services/unapply/success.http
373
- - spec/files/subscriptions/subscription/success.http
374
- - spec/files/templates/apply_template/success.http
375
- - spec/files/templates/create_template/created.http
376
- - spec/files/templates/delete_template/success-204.http
377
- - spec/files/templates/delete_template/success.http
378
- - spec/files/templates/notfound-template.http
379
- - spec/files/templates/template/success.http
380
- - spec/files/templates/templates/success.http
381
- - spec/files/templates/update_template/success.http
382
- - spec/files/templates_records/create_record/created.http
383
- - spec/files/templates_records/delete_record/success-204.http
384
- - spec/files/templates_records/delete_record/success.http
385
- - spec/files/templates_records/notfound-template-record.http
386
- - spec/files/templates_records/record/success.http
387
- - spec/files/templates_records/records/success.http
388
- - spec/files/templates_records/update_record/success.http
389
- - spec/files/users/user/success.http
255
+ - spec/fixtures.http/badgateway.http
256
+ - spec/fixtures.http/checkDomain/success.http
257
+ - spec/fixtures.http/createContact/created.http
258
+ - spec/fixtures.http/createDomain/created.http
259
+ - spec/fixtures.http/createEmailForward/created.http
260
+ - spec/fixtures.http/createWebhook/created.http
261
+ - spec/fixtures.http/createZoneRecord/created.http
262
+ - spec/fixtures.http/deleteContact/success.http
263
+ - spec/fixtures.http/deleteDomain/success.http
264
+ - spec/fixtures.http/deleteEmailForward/success.http
265
+ - spec/fixtures.http/deleteWebhook/success.http
266
+ - spec/fixtures.http/deleteZoneRecord/success.http
267
+ - spec/fixtures.http/disableAutoRenewal/success.http
268
+ - spec/fixtures.http/disableWhoisPrivacy/success.http
269
+ - spec/fixtures.http/enableAutoRenewal/success.http
270
+ - spec/fixtures.http/enableWhoisPrivacy/created.http
271
+ - spec/fixtures.http/enableWhoisPrivacy/success.http
272
+ - spec/fixtures.http/getContact/success.http
273
+ - spec/fixtures.http/getDomain/success.http
274
+ - spec/fixtures.http/getEmailForward/success.http
275
+ - spec/fixtures.http/getTld/success.http
276
+ - spec/fixtures.http/getTldExtendedAttributes/success-noattributes.http
277
+ - spec/fixtures.http/getTldExtendedAttributes/success.http
278
+ - spec/fixtures.http/getWebhook/success.http
279
+ - spec/fixtures.http/getWhoisPrivacy/success.http
280
+ - spec/fixtures.http/getZone/success.http
281
+ - spec/fixtures.http/getZoneRecord/success.http
282
+ - spec/fixtures.http/listContacts/success.http
283
+ - spec/fixtures.http/listDomains/success.http
284
+ - spec/fixtures.http/listEmailForwards/success.http
285
+ - spec/fixtures.http/listTlds/success.http
286
+ - spec/fixtures.http/listWebhooks/success.http
287
+ - spec/fixtures.http/listZoneRecords/success.http
288
+ - spec/fixtures.http/listZones/success.http
289
+ - spec/fixtures.http/notfound-contact.http
290
+ - spec/fixtures.http/notfound-domain.http
291
+ - spec/fixtures.http/notfound-emailforward.http
292
+ - spec/fixtures.http/notfound-record.http
293
+ - spec/fixtures.http/notfound-webhook.http
294
+ - spec/fixtures.http/notfound-zone.http
295
+ - spec/fixtures.http/oauthAccessToken/success.http
296
+ - spec/fixtures.http/pages-1of3.http
297
+ - spec/fixtures.http/pages-2of3.http
298
+ - spec/fixtures.http/pages-3of3.http
299
+ - spec/fixtures.http/registerDomain/success.http
300
+ - spec/fixtures.http/renewDomain/error-tooearly.http
301
+ - spec/fixtures.http/renewDomain/success.http
302
+ - spec/fixtures.http/resetDomainToken/success.http
303
+ - spec/fixtures.http/response.http
304
+ - spec/fixtures.http/transferDomain/error-indnsimple.http
305
+ - spec/fixtures.http/transferDomain/error-missing-authcode.http
306
+ - spec/fixtures.http/transferDomain/success.http
307
+ - spec/fixtures.http/transferDomainOut/success.http
308
+ - spec/fixtures.http/updateContact/success.http
309
+ - spec/fixtures.http/updateZoneRecord/success.http
310
+ - spec/fixtures.http/whoami/success.http
311
+ - spec/fixtures.http/whoami/success_account.http
312
+ - spec/fixtures.http/whoami/success_user.http
390
313
  - spec/spec_helper.rb
391
314
  - spec/support/helpers.rb
392
315
  - spec/support/webmock.rb