sparqcode-dnsimple-ruby 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. data/.bundle/config +3 -0
  2. data/.rvmrc +1 -0
  3. data/Gemfile +16 -0
  4. data/Gemfile.lock +71 -0
  5. data/LICENSE +22 -0
  6. data/README +125 -0
  7. data/README.rdoc +125 -0
  8. data/README.textile +161 -0
  9. data/Rakefile +33 -0
  10. data/VERSION +1 -0
  11. data/bin/dnsimple +4 -0
  12. data/bin/dnsimple.rb +153 -0
  13. data/dnsimple-ruby.gemspec +191 -0
  14. data/features/README +12 -0
  15. data/features/cli/certificates/purchase_certificate.feature +10 -0
  16. data/features/cli/contacts/create_contact.feature +10 -0
  17. data/features/cli/domains/check_domain.feature +10 -0
  18. data/features/cli/domains/create_domain.feature +10 -0
  19. data/features/cli/domains/delete_domain.feature +11 -0
  20. data/features/cli/domains/register_domain.feature +10 -0
  21. data/features/cli/records/create_ptr_record.feature +11 -0
  22. data/features/cli/records/create_record.feature +12 -0
  23. data/features/cli/records/delete_record.feature +14 -0
  24. data/features/cli/templates/apply_template.feature +11 -0
  25. data/features/step_definitions/certificate_steps.rb +3 -0
  26. data/features/step_definitions/cli_steps.rb +8 -0
  27. data/features/step_definitions/domain_steps.rb +32 -0
  28. data/features/step_definitions/record_steps.rb +38 -0
  29. data/features/step_definitions/template_steps.rb +9 -0
  30. data/features/support/env.rb +17 -0
  31. data/fixtures/vcr_cassettes/DNSimple_Certificate/_all.yml +44 -0
  32. data/fixtures/vcr_cassettes/DNSimple_Certificate/_purchase.yml +44 -0
  33. data/fixtures/vcr_cassettes/DNSimple_Certificate/_submit.yml +44 -0
  34. data/fixtures/vcr_cassettes/DNSimple_Contact/a_new_contact.yml +42 -0
  35. data/fixtures/vcr_cassettes/DNSimple_Contact/an_existing_contact.yml +42 -0
  36. data/fixtures/vcr_cassettes/DNSimple_Domain/_all.yml +130 -0
  37. data/fixtures/vcr_cassettes/DNSimple_Domain/applying_templates.yml +216 -0
  38. data/fixtures/vcr_cassettes/DNSimple_Domain/creating_a_new_domain.yml +44 -0
  39. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_id.yml +44 -0
  40. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_name.yml +44 -0
  41. data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_a_new_registrant_contact.yml +44 -0
  42. data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_an_existing_contact.yml +44 -0
  43. data/fixtures/vcr_cassettes/DNSimple_Domain/setting_name_servers.yml +30 -0
  44. data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_ca.yml +40 -0
  45. data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_com.yml +40 -0
  46. data/fixtures/vcr_cassettes/DNSimple_Record/_all.yml +173 -0
  47. data/fixtures/vcr_cassettes/DNSimple_Record/creating_a_new_record.yml +44 -0
  48. data/fixtures/vcr_cassettes/DNSimple_Record/find_a_record.yml +44 -0
  49. data/fixtures/vcr_cassettes/DNSimple_Template/a_template.yml +44 -0
  50. data/fixtures/vcr_cassettes/DNSimple_User/_me.yml +42 -0
  51. data/lib/dnsimple.rb +19 -0
  52. data/lib/dnsimple/certificate.rb +158 -0
  53. data/lib/dnsimple/cli.rb +122 -0
  54. data/lib/dnsimple/client.rb +74 -0
  55. data/lib/dnsimple/command.rb +10 -0
  56. data/lib/dnsimple/commands/add_service.rb +16 -0
  57. data/lib/dnsimple/commands/add_template_record.rb +18 -0
  58. data/lib/dnsimple/commands/apply_template.rb +15 -0
  59. data/lib/dnsimple/commands/check_domain.rb +11 -0
  60. data/lib/dnsimple/commands/clear_domain.rb +16 -0
  61. data/lib/dnsimple/commands/create_contact.rb +21 -0
  62. data/lib/dnsimple/commands/create_domain.rb +16 -0
  63. data/lib/dnsimple/commands/create_record.rb +20 -0
  64. data/lib/dnsimple/commands/create_template.rb +14 -0
  65. data/lib/dnsimple/commands/delete_contact.rb +14 -0
  66. data/lib/dnsimple/commands/delete_domain.rb +14 -0
  67. data/lib/dnsimple/commands/delete_record.rb +16 -0
  68. data/lib/dnsimple/commands/delete_template.rb +13 -0
  69. data/lib/dnsimple/commands/delete_template_record.rb +16 -0
  70. data/lib/dnsimple/commands/describe_certificate.rb +34 -0
  71. data/lib/dnsimple/commands/describe_contact.rb +25 -0
  72. data/lib/dnsimple/commands/describe_domain.rb +14 -0
  73. data/lib/dnsimple/commands/describe_record.rb +16 -0
  74. data/lib/dnsimple/commands/describe_service.rb +12 -0
  75. data/lib/dnsimple/commands/describe_user.rb +18 -0
  76. data/lib/dnsimple/commands/list_applied_services.rb +16 -0
  77. data/lib/dnsimple/commands/list_available_services.rb +16 -0
  78. data/lib/dnsimple/commands/list_certificates.rb +15 -0
  79. data/lib/dnsimple/commands/list_contacts.rb +13 -0
  80. data/lib/dnsimple/commands/list_domains.rb +13 -0
  81. data/lib/dnsimple/commands/list_extended_attributes.rb +25 -0
  82. data/lib/dnsimple/commands/list_records.rb +21 -0
  83. data/lib/dnsimple/commands/list_services.rb +14 -0
  84. data/lib/dnsimple/commands/list_template_records.rb +17 -0
  85. data/lib/dnsimple/commands/list_templates.rb +13 -0
  86. data/lib/dnsimple/commands/purchase_certificate.rb +19 -0
  87. data/lib/dnsimple/commands/register_domain.rb +33 -0
  88. data/lib/dnsimple/commands/remove_service.rb +14 -0
  89. data/lib/dnsimple/commands/submit_certificate.rb +19 -0
  90. data/lib/dnsimple/commands/transfer_domain.rb +21 -0
  91. data/lib/dnsimple/commands/update_contact.rb +25 -0
  92. data/lib/dnsimple/commands/update_record.rb +23 -0
  93. data/lib/dnsimple/contact.rb +181 -0
  94. data/lib/dnsimple/domain.rb +246 -0
  95. data/lib/dnsimple/error.rb +32 -0
  96. data/lib/dnsimple/extended_attribute.rb +73 -0
  97. data/lib/dnsimple/record.rb +128 -0
  98. data/lib/dnsimple/service.rb +58 -0
  99. data/lib/dnsimple/template.rb +91 -0
  100. data/lib/dnsimple/template_record.rb +103 -0
  101. data/lib/dnsimple/transfer_order.rb +45 -0
  102. data/lib/dnsimple/user.rb +44 -0
  103. data/spec/README +10 -0
  104. data/spec/certificate_spec.rb +46 -0
  105. data/spec/command_spec.rb +19 -0
  106. data/spec/commands/add_service_spec.rb +29 -0
  107. data/spec/commands/create_record_spec.rb +23 -0
  108. data/spec/commands/list_records_spec.rb +34 -0
  109. data/spec/commands/purchase_certificate_spec.rb +24 -0
  110. data/spec/commands/submit_certificate_spec.rb +19 -0
  111. data/spec/contact_spec.rb +35 -0
  112. data/spec/domain_spec.rb +97 -0
  113. data/spec/extended_attributes_spec.rb +19 -0
  114. data/spec/record_spec.rb +59 -0
  115. data/spec/spec_helper.rb +22 -0
  116. data/spec/template_spec.rb +11 -0
  117. data/spec/user_spec.rb +23 -0
  118. metadata +353 -0
@@ -0,0 +1,216 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ authorization:
11
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge
19
+ access-control-allow-headers:
20
+ - Authorization,Accepts,Content-Type
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ etag:
24
+ - "\"24f073eea7b01a97c81f7582b82bed62\""
25
+ access-control-allow-methods:
26
+ - OPTIONS
27
+ content-type:
28
+ - application/json; charset=utf-8
29
+ access-control-allow-origin:
30
+ - "*"
31
+ date:
32
+ - Fri, 11 Nov 2011 20:16:51 GMT
33
+ server:
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
+ x-runtime:
36
+ - "0.696375"
37
+ content-length:
38
+ - "412"
39
+ set-cookie:
40
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlNDZlNmVkZTc3OGYzMjY4MGUxYjdmZGJmZmEwYmE0NDJJIg5yZXR1cm5fdG8GOwBGSSIZL2RvbWFpbnMvZXhhbXBsZS5jb20GOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--cd37e0f2a6bad9c2fb8bbc62dd2c75d17a577e7d; path=/; HttpOnly
41
+ cache-control:
42
+ - max-age=0, private, must-revalidate
43
+ body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:05:07Z\",\"expires_at\":null,\"id\":39,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":null,\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"state\":\"hosted\",\"updated_at\":\"2011-11-11T20:05:07Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
44
+ http_version: "1.1"
45
+ - !ruby/struct:VCR::HTTPInteraction
46
+ request: !ruby/struct:VCR::Request
47
+ method: :get
48
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com/records
49
+ body:
50
+ headers:
51
+ accept:
52
+ - application/json
53
+ authorization:
54
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
55
+ response: !ruby/struct:VCR::Response
56
+ status: !ruby/struct:VCR::ResponseStatus
57
+ code: 200
58
+ message: OK
59
+ headers:
60
+ x-ua-compatible:
61
+ - IE=Edge
62
+ access-control-allow-headers:
63
+ - Authorization,Accepts,Content-Type
64
+ x-dnsimple-api-version:
65
+ - 1.0.0
66
+ etag:
67
+ - "\"d751713988987e9331980363e24189ce\""
68
+ access-control-allow-methods:
69
+ - OPTIONS
70
+ content-type:
71
+ - application/json; charset=utf-8
72
+ access-control-allow-origin:
73
+ - "*"
74
+ date:
75
+ - Fri, 11 Nov 2011 20:16:52 GMT
76
+ server:
77
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
78
+ x-runtime:
79
+ - "0.655348"
80
+ content-length:
81
+ - "2"
82
+ set-cookie:
83
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlZmY1ZmJiZWZiY2MwODAzZmNmYTFmZjM1ZDJiYWRiODdJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--1c9773a3d217749d1eb8e1796ae23027e20784eb; path=/; HttpOnly
84
+ cache-control:
85
+ - max-age=0, private, must-revalidate
86
+ body: "[]"
87
+ http_version: "1.1"
88
+ - !ruby/struct:VCR::HTTPInteraction
89
+ request: !ruby/struct:VCR::Request
90
+ method: :get
91
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/templates/googleapps
92
+ body:
93
+ headers:
94
+ accept:
95
+ - application/json
96
+ authorization:
97
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
98
+ response: !ruby/struct:VCR::Response
99
+ status: !ruby/struct:VCR::ResponseStatus
100
+ code: 200
101
+ message: OK
102
+ headers:
103
+ x-ua-compatible:
104
+ - IE=Edge
105
+ access-control-allow-headers:
106
+ - Authorization,Accepts,Content-Type
107
+ x-dnsimple-api-version:
108
+ - 1.0.0
109
+ etag:
110
+ - "\"3649a89c5333cc5c491e30a29901f286\""
111
+ access-control-allow-methods:
112
+ - OPTIONS
113
+ content-type:
114
+ - application/json; charset=utf-8
115
+ access-control-allow-origin:
116
+ - "*"
117
+ date:
118
+ - Fri, 11 Nov 2011 20:16:52 GMT
119
+ server:
120
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
121
+ x-runtime:
122
+ - "0.307405"
123
+ content-length:
124
+ - "266"
125
+ set-cookie:
126
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNjdiYTQ3OTIyNzZmZjVkMGFhOGEwN2I4Y2MxMmEyZWNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--662c626a025eeafa23e41f2b6e22e4d31f9eda57; path=/; HttpOnly
127
+ cache-control:
128
+ - max-age=0, private, must-revalidate
129
+ body: "{\"dns_template\":{\"created_at\":\"2011-09-04T01:08:50Z\",\"description\":\"The Google Mail Servers and Google Apps CNAME records in a single template.\",\"id\":3,\"name\":\"Google Apps\",\"short_name\":\"googleapps\",\"updated_at\":\"2011-09-04T01:08:50Z\",\"user_id\":null,\"visible\":true}}"
130
+ http_version: "1.1"
131
+ - !ruby/struct:VCR::HTTPInteraction
132
+ request: !ruby/struct:VCR::Request
133
+ method: :post
134
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com/templates/3/apply
135
+ body:
136
+ headers:
137
+ accept:
138
+ - application/json
139
+ authorization:
140
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
141
+ response: !ruby/struct:VCR::Response
142
+ status: !ruby/struct:VCR::ResponseStatus
143
+ code: 200
144
+ message: OK
145
+ headers:
146
+ x-ua-compatible:
147
+ - IE=Edge
148
+ access-control-allow-headers:
149
+ - Authorization,Accepts,Content-Type
150
+ x-dnsimple-api-version:
151
+ - 1.0.0
152
+ etag:
153
+ - "\"0a15ac15403eae5130591327fd7b360f\""
154
+ access-control-allow-methods:
155
+ - OPTIONS
156
+ content-type:
157
+ - application/json; charset=utf-8
158
+ access-control-allow-origin:
159
+ - "*"
160
+ date:
161
+ - Fri, 11 Nov 2011 20:16:53 GMT
162
+ server:
163
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
164
+ x-runtime:
165
+ - "1.071534"
166
+ content-length:
167
+ - "413"
168
+ set-cookie:
169
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMzBkMDNjZjMyMGNiNjA3ZDYzZWY2NjY2ODc4YjAxM2FJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--bbd0c2e269949b143932ed13bdc8037f1e4a7ab8; path=/; HttpOnly
170
+ cache-control:
171
+ - max-age=0, private, must-revalidate
172
+ body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:05:07Z\",\"expires_at\":null,\"id\":39,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":null,\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"state\":\"hosted\",\"updated_at\":\"2011-11-11T20:05:07Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":13}}"
173
+ http_version: "1.1"
174
+ - !ruby/struct:VCR::HTTPInteraction
175
+ request: !ruby/struct:VCR::Request
176
+ method: :get
177
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com/records
178
+ body:
179
+ headers:
180
+ accept:
181
+ - application/json
182
+ authorization:
183
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
184
+ response: !ruby/struct:VCR::Response
185
+ status: !ruby/struct:VCR::ResponseStatus
186
+ code: 200
187
+ message: OK
188
+ headers:
189
+ x-ua-compatible:
190
+ - IE=Edge
191
+ access-control-allow-headers:
192
+ - Authorization,Accepts,Content-Type
193
+ x-dnsimple-api-version:
194
+ - 1.0.0
195
+ etag:
196
+ - "\"0294ef7bc6515407471bbe1dfb3a58ea\""
197
+ access-control-allow-methods:
198
+ - OPTIONS
199
+ content-type:
200
+ - application/json; charset=utf-8
201
+ access-control-allow-origin:
202
+ - "*"
203
+ date:
204
+ - Fri, 11 Nov 2011 20:16:54 GMT
205
+ server:
206
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
207
+ x-runtime:
208
+ - "0.664379"
209
+ content-length:
210
+ - "3422"
211
+ set-cookie:
212
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMjM5MmQ5NjZjOGI4ZDBmMjNjZjc0YWQyMDRiNGFmMTZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--680fd40be1baa41b93e49c718980eb4dd293c075; path=/; HttpOnly
213
+ cache-control:
214
+ - max-age=0, private, must-revalidate
215
+ body: "[{\"record\":{\"content\":\"ghs.google.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":67,\"name\":\"calendar\",\"pdns_identifier\":null,\"prio\":null,\"record_type\":\"CNAME\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"ghs.google.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":69,\"name\":\"dashboard\",\"pdns_identifier\":null,\"prio\":null,\"record_type\":\"CNAME\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"ghs.google.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":66,\"name\":\"docs\",\"pdns_identifier\":null,\"prio\":null,\"record_type\":\"CNAME\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"ghs.google.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":65,\"name\":\"mail\",\"pdns_identifier\":null,\"prio\":null,\"record_type\":\"CNAME\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"ghs.google.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":68,\"name\":\"pages\",\"pdns_identifier\":null,\"prio\":null,\"record_type\":\"CNAME\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"aspmx.l.google.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":57,\"name\":\"\",\"pdns_identifier\":null,\"prio\":10,\"record_type\":\"MX\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"alt1.aspmx.l.google.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":58,\"name\":\"\",\"pdns_identifier\":null,\"prio\":20,\"record_type\":\"MX\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"alt2.aspmx.l.google.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":59,\"name\":\"\",\"pdns_identifier\":null,\"prio\":20,\"record_type\":\"MX\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"aspmx2.googlemail.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":60,\"name\":\"\",\"pdns_identifier\":null,\"prio\":30,\"record_type\":\"MX\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"aspmx3.googlemail.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":61,\"name\":\"\",\"pdns_identifier\":null,\"prio\":30,\"record_type\":\"MX\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"aspmx4.googlemail.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":62,\"name\":\"\",\"pdns_identifier\":null,\"prio\":30,\"record_type\":\"MX\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"aspmx5.googlemail.com\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":63,\"name\":\"\",\"pdns_identifier\":null,\"prio\":30,\"record_type\":\"MX\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}},{\"record\":{\"content\":\"v=spf1 a include:_spf.google.com -all\",\"created_at\":\"2011-11-11T20:16:53Z\",\"domain_id\":39,\"domain_service_id\":null,\"id\":64,\"name\":\"\",\"pdns_identifier\":null,\"prio\":null,\"record_type\":\"TXT\",\"special_type\":\"SPF\",\"ttl\":3600,\"updated_at\":\"2011-11-11T20:16:53Z\"}}]"
216
+ http_version: "1.1"
@@ -0,0 +1,44 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains
6
+ body: domain[name]=example.com
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ authorization:
11
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 201
15
+ message: Created
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge
19
+ access-control-allow-headers:
20
+ - Authorization,Accepts,Content-Type
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ location:
24
+ - http://localhost:3000/domains/example.com
25
+ access-control-allow-methods:
26
+ - OPTIONS
27
+ content-type:
28
+ - application/json; charset=utf-8
29
+ access-control-allow-origin:
30
+ - "*"
31
+ date:
32
+ - Fri, 11 Nov 2011 20:05:13 GMT
33
+ server:
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
+ x-runtime:
36
+ - "6.596858"
37
+ content-length:
38
+ - "412"
39
+ set-cookie:
40
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlODY3M2E1Yzc3ODk2MmVkNjIwZDZhMjkzYjM4OWNhMmZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--e7964c7a1589861bc35bdf8ebd826172d98be6d9; path=/; HttpOnly
41
+ cache-control:
42
+ - no-cache
43
+ body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:05:07Z\",\"expires_at\":null,\"id\":39,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":null,\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"state\":\"hosted\",\"updated_at\":\"2011-11-11T20:05:07Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
44
+ http_version: "1.1"
@@ -0,0 +1,44 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/39
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ authorization:
11
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge
19
+ access-control-allow-headers:
20
+ - Authorization,Accepts,Content-Type
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ etag:
24
+ - "\"24f073eea7b01a97c81f7582b82bed62\""
25
+ access-control-allow-methods:
26
+ - OPTIONS
27
+ content-type:
28
+ - application/json; charset=utf-8
29
+ access-control-allow-origin:
30
+ - "*"
31
+ date:
32
+ - Fri, 11 Nov 2011 20:07:03 GMT
33
+ server:
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
+ x-runtime:
36
+ - "0.714568"
37
+ content-length:
38
+ - "412"
39
+ set-cookie:
40
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlYTAzNTZkNWM4ODA0NWJiNDEzNDc5M2NhZWZlNWI3NzNJIg5yZXR1cm5fdG8GOwBGSSIQL2RvbWFpbnMvMzkGOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--bafce1f4bc906d8a8f284b6ab762ab40d51c3bf2; path=/; HttpOnly
41
+ cache-control:
42
+ - max-age=0, private, must-revalidate
43
+ body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:05:07Z\",\"expires_at\":null,\"id\":39,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":null,\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"state\":\"hosted\",\"updated_at\":\"2011-11-11T20:05:07Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
44
+ http_version: "1.1"
@@ -0,0 +1,44 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com
6
+ body:
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ authorization:
11
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge
19
+ access-control-allow-headers:
20
+ - Authorization,Accepts,Content-Type
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ etag:
24
+ - "\"24f073eea7b01a97c81f7582b82bed62\""
25
+ access-control-allow-methods:
26
+ - OPTIONS
27
+ content-type:
28
+ - application/json; charset=utf-8
29
+ access-control-allow-origin:
30
+ - "*"
31
+ date:
32
+ - Fri, 11 Nov 2011 20:07:04 GMT
33
+ server:
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
+ x-runtime:
36
+ - "0.750983"
37
+ content-length:
38
+ - "412"
39
+ set-cookie:
40
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlYWE0MWY3YTU3MGUwYzI4Njg5MjY4M2EzOTI1NGIxZTNJIg5yZXR1cm5fdG8GOwBGSSIZL2RvbWFpbnMvZXhhbXBsZS5jb20GOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--bf2ced8c665b5c9e93ec8a2e94d0db86a960235c; path=/; HttpOnly
41
+ cache-control:
42
+ - max-age=0, private, must-revalidate
43
+ body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:05:07Z\",\"expires_at\":null,\"id\":39,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":null,\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"state\":\"hosted\",\"updated_at\":\"2011-11-11T20:05:07Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
44
+ http_version: "1.1"
@@ -0,0 +1,44 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domain_registrations
6
+ body: domain[name]=dnsimple-example-1321042288.com&contact[last_name]=Smith&contact[state_province]=FL&contact[phone]=321%20555%201212&contact[address1]=123%20SW%201st%20Street&contact[city]=Miami&contact[country]=US&contact[first_name]=John&contact[postal_code]=33143
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ authorization:
11
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 201
15
+ message: Created
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge
19
+ access-control-allow-headers:
20
+ - Authorization,Accepts,Content-Type
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ location:
24
+ - http://localhost:3000/domains/dnsimple-example-1321042288.com
25
+ access-control-allow-methods:
26
+ - OPTIONS
27
+ content-type:
28
+ - application/json; charset=utf-8
29
+ access-control-allow-origin:
30
+ - "*"
31
+ date:
32
+ - Fri, 11 Nov 2011 20:12:00 GMT
33
+ server:
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
+ x-runtime:
36
+ - "32.052851"
37
+ content-length:
38
+ - "531"
39
+ set-cookie:
40
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlMmIxNzg4ODcxYmM0ODgwMWY5ZDcxYTUxM2Y2NThhZTdJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkGSSIJbmFtZQY7AEZJIiRkbnNpbXBsZS1leGFtcGxlLTEzMjEwNDIyODguY29tBjsAVA%3D%3D--e314feed5f06252ed43bc76f7a38dcf564468e4f; path=/; HttpOnly
41
+ cache-control:
42
+ - no-cache
43
+ body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:11:34Z\",\"expires_at\":\"11/11/2012 12:11:00 PM\",\"id\":41,\"last_enom_order_id\":\"157773080\",\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"dnsimple-example-1321042288.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":\"2012-11-11T12:11:00Z\",\"pdns_identifier\":null,\"real_time\":true,\"registrant_id\":3,\"registration_status\":\"registered\",\"state\":\"registered\",\"updated_at\":\"2011-11-11T20:12:00Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
44
+ http_version: "1.1"
@@ -0,0 +1,44 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domain_registrations
6
+ body: domain[registrant_id]=1&domain[name]=dnsimple-example-1321042237.com
7
+ headers:
8
+ accept:
9
+ - application/json
10
+ authorization:
11
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 201
15
+ message: Created
16
+ headers:
17
+ x-ua-compatible:
18
+ - IE=Edge
19
+ access-control-allow-headers:
20
+ - Authorization,Accepts,Content-Type
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ location:
24
+ - http://localhost:3000/domains/dnsimple-example-1321042237.com
25
+ access-control-allow-methods:
26
+ - OPTIONS
27
+ content-type:
28
+ - application/json; charset=utf-8
29
+ access-control-allow-origin:
30
+ - "*"
31
+ date:
32
+ - Fri, 11 Nov 2011 20:11:09 GMT
33
+ server:
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
+ x-runtime:
36
+ - "31.776131"
37
+ content-length:
38
+ - "531"
39
+ set-cookie:
40
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlMzA0NzU5OThhM2Q5MmYwMGM4MGQzNzkxNWQ3ZThhNzFJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkGSSIJbmFtZQY7AEZJIiRkbnNpbXBsZS1leGFtcGxlLTEzMjEwNDIyMzcuY29tBjsAVA%3D%3D--557950d7421074c1db19f6b637c603cd90a185ec; path=/; HttpOnly
41
+ cache-control:
42
+ - no-cache
43
+ body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:10:46Z\",\"expires_at\":\"11/11/2012 12:10:00 PM\",\"id\":40,\"last_enom_order_id\":\"157773079\",\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"dnsimple-example-1321042237.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":\"2012-11-11T12:10:00Z\",\"pdns_identifier\":null,\"real_time\":true,\"registrant_id\":1,\"registration_status\":\"registered\",\"state\":\"registered\",\"updated_at\":\"2011-11-11T20:11:09Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
44
+ http_version: "1.1"
@@ -0,0 +1,30 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com/name_servers.json
6
+ body: name_servers[ns1]=ns1.fake.com&name_servers[ns2]=ns2.fake.com
7
+ headers:
8
+ authorization:
9
+ - Basic bWlrZUBzcGFycWNvZGUuY29tOnRlc3Q=
10
+ accept:
11
+ - application/json
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: Updated
16
+ headers:
17
+ content-length:
18
+ - "2"
19
+ x-powered-by:
20
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.11
21
+ cache-control:
22
+ - no-cache
23
+ content-type:
24
+ - text/html; charset=utf-8
25
+ server:
26
+ - nginx/1.0.10 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
27
+ status:
28
+ - "200"
29
+ body: "{}"
30
+ http_version: "1.1"