dnsimple-ruby 1.3.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +9 -2
  3. data/.rspec +1 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +7 -0
  7. data/CHANGELOG.md +20 -0
  8. data/Gemfile +0 -2
  9. data/LICENSE +2 -2
  10. data/README.md +121 -0
  11. data/Rakefile +30 -14
  12. data/bin/dnsimple.rb +1 -1
  13. data/dnsimple-ruby.gemspec +9 -8
  14. data/features/README +1 -1
  15. data/features/step_definitions/cli_steps.rb +1 -1
  16. data/features/support/env.rb +4 -4
  17. data/fixtures/vcr_cassettes/DNSimple_Certificate/_all.yml +45 -32
  18. data/fixtures/vcr_cassettes/DNSimple_Certificate/_purchase.yml +45 -32
  19. data/fixtures/vcr_cassettes/DNSimple_Certificate/_submit.yml +45 -32
  20. data/fixtures/vcr_cassettes/DNSimple_Contact/a_new_contact.yml +39 -31
  21. data/fixtures/vcr_cassettes/DNSimple_Contact/an_existing_contact.yml +39 -31
  22. data/fixtures/vcr_cassettes/DNSimple_Domain/_all.yml +113 -94
  23. data/fixtures/vcr_cassettes/DNSimple_Domain/applying_templates.yml +186 -156
  24. data/fixtures/vcr_cassettes/DNSimple_Domain/creating_a_new_domain.yml +39 -32
  25. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_id.yml +39 -32
  26. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_name.yml +39 -32
  27. data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_a_new_registrant_contact.yml +40 -32
  28. data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_an_existing_contact.yml +40 -32
  29. data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_ca.yml +262 -29
  30. data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_com.yml +35 -29
  31. data/fixtures/vcr_cassettes/DNSimple_Record/_all.yml +147 -125
  32. data/fixtures/vcr_cassettes/DNSimple_Record/creating_a_new_record.yml +39 -32
  33. data/fixtures/vcr_cassettes/DNSimple_Record/find_a_record.yml +39 -32
  34. data/fixtures/vcr_cassettes/DNSimple_Template/a_template.yml +41 -32
  35. data/fixtures/vcr_cassettes/DNSimple_User/_me.yml +38 -31
  36. data/lib/dnsimple.rb +14 -1
  37. data/lib/dnsimple/base.rb +7 -5
  38. data/lib/dnsimple/certificate.rb +100 -95
  39. data/lib/dnsimple/cli.rb +92 -93
  40. data/lib/dnsimple/client.rb +109 -99
  41. data/lib/dnsimple/commands/{describe_certificate.rb → certificate_describe.rb} +2 -2
  42. data/lib/dnsimple/commands/{list_certificates.rb → certificate_list.rb} +2 -2
  43. data/lib/dnsimple/commands/{purchase_certificate.rb → certificate_purchase.rb} +3 -5
  44. data/lib/dnsimple/commands/{submit_certificate.rb → certificate_submit.rb} +3 -5
  45. data/lib/dnsimple/commands/{create_contact.rb → contact_create.rb} +8 -6
  46. data/lib/dnsimple/commands/{delete_contact.rb → contact_delete.rb} +2 -2
  47. data/lib/dnsimple/commands/{describe_contact.rb → contact_describe.rb} +2 -2
  48. data/lib/dnsimple/commands/{list_contacts.rb → contact_list.rb} +2 -2
  49. data/lib/dnsimple/commands/{update_contact.rb → contact_update.rb} +2 -2
  50. data/lib/dnsimple/commands/{apply_template.rb → domain_apply_template.rb} +2 -2
  51. data/lib/dnsimple/commands/{check_domain.rb → domain_check.rb} +2 -2
  52. data/lib/dnsimple/commands/{clear_domain.rb → domain_clear.rb} +2 -2
  53. data/lib/dnsimple/commands/{create_domain.rb → domain_create.rb} +2 -2
  54. data/lib/dnsimple/commands/{delete_domain.rb → domain_delete.rb} +2 -2
  55. data/lib/dnsimple/commands/{describe_domain.rb → domain_describe.rb} +2 -2
  56. data/lib/dnsimple/commands/{list_domains.rb → domain_list.rb} +2 -2
  57. data/lib/dnsimple/commands/{register_domain.rb → domain_register.rb} +2 -2
  58. data/lib/dnsimple/commands/{transfer_domain.rb → domain_transfer.rb} +2 -2
  59. data/lib/dnsimple/commands/{list_extended_attributes.rb → extended_attribute_list.rb} +2 -2
  60. data/lib/dnsimple/commands/{describe_user.rb → me.rb} +2 -2
  61. data/lib/dnsimple/commands/{create_record.rb → record_create.rb} +5 -7
  62. data/lib/dnsimple/commands/{delete_record.rb → record_delete.rb} +2 -2
  63. data/lib/dnsimple/commands/{describe_record.rb → record_describe.rb} +2 -2
  64. data/lib/dnsimple/commands/{list_records.rb → record_list.rb} +4 -6
  65. data/lib/dnsimple/commands/{update_record.rb → record_update.rb} +2 -2
  66. data/lib/dnsimple/commands/{add_service.rb → service_add.rb} +3 -5
  67. data/lib/dnsimple/commands/{describe_service.rb → service_describe.rb} +2 -2
  68. data/lib/dnsimple/commands/{list_services.rb → service_list.rb} +2 -2
  69. data/lib/dnsimple/commands/{list_applied_services.rb → service_list_applied.rb} +2 -2
  70. data/lib/dnsimple/commands/{list_available_services.rb → service_list_available.rb} +2 -2
  71. data/lib/dnsimple/commands/{remove_service.rb → service_remove.rb} +2 -2
  72. data/lib/dnsimple/commands/{create_template.rb → template_create.rb} +2 -2
  73. data/lib/dnsimple/commands/{delete_template.rb → template_delete.rb} +2 -2
  74. data/lib/dnsimple/commands/{add_template_record.rb → template_record_create.rb} +2 -2
  75. data/lib/dnsimple/commands/{delete_template_record.rb → template_record_delete.rb} +2 -2
  76. data/lib/dnsimple/commands/{list_template_records.rb → template_record_list.rb} +2 -2
  77. data/lib/dnsimple/commands/{list_templates.rb → templates_list.rb} +2 -2
  78. data/lib/dnsimple/contact.rb +115 -110
  79. data/lib/dnsimple/domain.rb +134 -132
  80. data/lib/dnsimple/error.rb +8 -19
  81. data/lib/dnsimple/extended_attribute.rb +39 -33
  82. data/lib/dnsimple/record.rb +71 -67
  83. data/lib/dnsimple/service.rb +31 -24
  84. data/lib/dnsimple/template.rb +52 -46
  85. data/lib/dnsimple/template_record.rb +61 -53
  86. data/lib/dnsimple/transfer_order.rb +24 -18
  87. data/lib/dnsimple/user.rb +22 -18
  88. data/lib/dnsimple/version.rb +1 -1
  89. data/spec/README +1 -1
  90. data/spec/ci/.dnsimple.test +3 -0
  91. data/spec/commands/{purchase_certificate_spec.rb → certificate_purchase_spec.rb} +3 -4
  92. data/spec/commands/{submit_certificate_spec.rb → certificate_submit_spec.rb} +3 -4
  93. data/spec/commands/{create_record_spec.rb → record_create_spec.rb} +4 -4
  94. data/spec/commands/{list_records_spec.rb → records_list_spec.rb} +2 -13
  95. data/spec/commands/{add_service_spec.rb → service_add_spec.rb} +3 -12
  96. data/spec/{certificate_spec.rb → dnsimple/certificate_spec.rb} +0 -0
  97. data/spec/dnsimple/client_spec.rb +45 -18
  98. data/spec/{contact_spec.rb → dnsimple/contact_spec.rb} +3 -1
  99. data/spec/{domain_spec.rb → dnsimple/domain_spec.rb} +2 -0
  100. data/spec/{extended_attributes_spec.rb → dnsimple/extended_attributes_spec.rb} +4 -0
  101. data/spec/{record_spec.rb → dnsimple/record_spec.rb} +2 -0
  102. data/spec/{template_spec.rb → dnsimple/template_spec.rb} +0 -0
  103. data/spec/{user_spec.rb → dnsimple/user_spec.rb} +2 -0
  104. data/spec/spec_helper.rb +24 -10
  105. metadata +96 -99
  106. data/Gemfile.lock +0 -71
  107. data/README +0 -108
  108. data/README.rdoc +0 -108
  109. data/README.textile +0 -138
  110. data/lib/dnsimple/command.rb +0 -10
  111. data/spec/command_spec.rb +0 -19
@@ -1,44 +1,57 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :put
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com/certificates/1/submit
6
- body: certificate[approver_email]=admin%40example.com
7
- headers:
8
- accept:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/certificates/1/submit
6
+ body:
7
+ encoding: UTF-8
8
+ string: certificate[approver_email]=admin%40example.com
9
+ headers:
10
+ Accept:
9
11
  - application/json
10
- authorization:
12
+ Authorization:
11
13
  - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
14
+ response:
15
+ status:
14
16
  code: 200
15
17
  message: OK
16
- headers:
17
- x-ua-compatible:
18
+ headers:
19
+ X-Ua-Compatible:
18
20
  - IE=Edge
19
- access-control-allow-headers:
21
+ Access-Control-Allow-Headers:
20
22
  - Authorization,Accepts,Content-Type
21
- x-dnsimple-api-version:
23
+ X-Dnsimple-Api-Version:
22
24
  - 1.0.0
23
- etag:
24
- - "\"8f2d8c456cd7fe85919f3a532762385d\""
25
- access-control-allow-methods:
25
+ Etag:
26
+ - ! '"8f2d8c456cd7fe85919f3a532762385d"'
27
+ Access-Control-Allow-Methods:
26
28
  - OPTIONS
27
- content-type:
29
+ Content-Type:
28
30
  - application/json; charset=utf-8
29
- access-control-allow-origin:
30
- - "*"
31
- date:
31
+ Access-Control-Allow-Origin:
32
+ - ! '*'
33
+ Date:
32
34
  - Sat, 12 Nov 2011 13:01:04 GMT
33
- server:
35
+ Server:
34
36
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- x-runtime:
36
- - "9.576010"
37
- content-length:
38
- - "3949"
39
- set-cookie:
40
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNjk3MjQ4OTU0NTYzMjliNWMwNDFhYzEyN2IwMmNhMzNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--3f528e10ce8d7fcd773ecf939cb846d7f5da1d6c; path=/; HttpOnly
41
- cache-control:
37
+ X-Runtime:
38
+ - '9.576010'
39
+ Content-Length:
40
+ - '3949'
41
+ Set-Cookie:
42
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNjk3MjQ4OTU0NTYzMjliNWMwNDFhYzEyN2IwMmNhMzNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--3f528e10ce8d7fcd773ecf939cb846d7f5da1d6c;
43
+ path=/; HttpOnly
44
+ Cache-Control:
42
45
  - max-age=0, private, must-revalidate
43
- body: "{\"certificate\":{\"approver_email\":\"admin@example.com\",\"certificate_status\":\"Awaiting Configuration\",\"configured_at\":\"2011-11-12T12:19:26Z\",\"contact_id\":1,\"created_at\":\"2011-11-11T20:56:14Z\",\"csr\":\"-----BEGIN NEW CERTIFICATE REQUEST-----\\nMIIDMjCCAeoCAQAwXTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDEFudGhvbnkgRWRl\\nbjEQMA4GA1UEBxMHTWFsYWJhcjELMAkGA1UECBMCRkwxGDAWBgNVBAMTD3d3dy5l\\neGFtcGxlLmNvbTCCAVIwDQYJKoZIhvcNAQEBBQADggE/ADCCAToCggExALVqxT38\\nVYrafdjtqrYGCn1/HOYnOTJ0r8aYR71cW/AN50H6t0NOwLdrKstQ11uxGxkqFotl\\ndHklfJUh5gJyrisIZNP/YZ55s+rjcbuFeiAyouEs12YwYOK2GzsHB6t3OBJC2+Nm\\nZirDUUbhA4VDkf7DqiIRVSKcC0BKJyr69fnGewpAW9xiECryYqq884vD1/MoxuPQ\\nYWKSWXB4G/iD5vXamBNqF5TCJV8U8/53mKClWBTsMQxO2eCjPEqO6Yf1LViu4vZx\\nOmB093Iet8h+DI93FYGRQFmYy8SKBb/jOnr83gXEKIbKSGccYNHy8QGlYMguX+Yb\\nNbUGqKgr2LL2sk9rtLv8rCu/fSkJMhOw7Rz9N1TAVccZYLqGm+gNDDlI3TcKUQ6o\\n1R4uE7TOX3OFCOsCAwEAAaAwMC4GCSqGSIb3DQEJDjEhMB8wDAYDVR0TAQH/BAIw\\nADAPBgNVHQ8BAf8EBQMDB4AAMA0GCSqGSIb3DQEBBQUAA4IBMQAFJ9nGFHx5Mcg6\\n/TnT3kvT8qaux6SwfCw35XepT9rJ7YppaMgeOanEGJdvjtZtYxIWzxq2E+lFcNGd\\nAsJoNk1jnmvbFLARjTAfN9JSvxfkT6x+rcR8rSbpzYb19NV2QTUivrDuur5BvLI3\\nCUHunT7bQaWuxbZK/GgZ4KiRIvplsUz09Ir6HDcLS2TNeswSRwqNYs1v1uY1TWeS\\nUGbW391e7EsmesnHi8QdzqafwIjWqUoz55V8TMN0xJF7Dlwfw09NZ7rhh3hmC9aT\\nk/s8jl+Cfaz9aumrTHex2RkBfBpfLNnTbkCrBuYSp2lkV7XSn6GRXL84QVIrVwZo\\nRgQisMWQ0HWKVVGpAhh8u1PcRBHpJiCsK1AoN+TsQ/7N/cbGpyllS5IBAzRCDM9V\\nUNT4A6BR\\n-----END NEW CERTIFICATE REQUEST-----\\n\",\"domain_id\":39,\"expiration_date\":\"11/11/2012 12:56:14 PM\",\"id\":1,\"name\":\"www\",\"order_date\":\"11/11/2011 12:56:14 PM\",\"private_key\":\"-----BEGIN RSA PRIVATE KEY-----\\nMIIFewIBAAKCATEAtWrFPfxVitp92O2qtgYKfX8c5ic5MnSvxphHvVxb8A3nQfq3\\nQ07At2sqy1DXW7EbGSoWi2V0eSV8lSHmAnKuKwhk0/9hnnmz6uNxu4V6IDKi4SzX\\nZjBg4rYbOwcHq3c4EkLb42ZmKsNRRuEDhUOR/sOqIhFVIpwLQEonKvr1+cZ7CkBb\\n3GIQKvJiqrzzi8PX8yjG49BhYpJZcHgb+IPm9dqYE2oXlMIlXxTz/neYoKVYFOwx\\nDE7Z4KM8So7ph/UtWK7i9nE6YHT3ch63yH4Mj3cVgZFAWZjLxIoFv+M6evzeBcQo\\nhspIZxxg0fLxAaVgyC5f5hs1tQaoqCvYsvayT2u0u/ysK799KQkyE7DtHP03VMBV\\nxxlguoab6A0MOUjdNwpRDqjVHi4TtM5fc4UI6wIDAQABAoIBLxQcLxiT1s62Kzbj\\n6W+O9zCUf5x6UnXLnwG5BSgUoWEQv1aUJjMhB7jD+ZmpFKbBF0MHJcnK4pHo/OmL\\nLLi7FqYxqMmx05PseV/FYAT19a/UOA5HV4BKeLFkP/4ov/i1ZxSGKRhHY/Lvbxxp\\nLHR9N9ps4qQ7jFCFJ2j14hayx5GHyX/AcKzUx90NnXg2xMiXIiQHUYfpJEAdIGc4\\njAMO8wjTQk9CGW3U/faibxdvRplpNbCV9Zmi7Wj3K3bX83LraqdbkhG7gWLono8S\\ntVwcKd7JFKhooyHpVmLt7M9VhRS08/oxuwOlwL/ETdNN1BwOhiZv6U74QoiW1wjN\\nfwbo4+QkE00a66E/TsX6CFQ6ec14tJKOcuHfQS+0bfBLK10XdgD696B/l1C9LwKy\\nVYcnzQKBmQDDazs4EZjpdxOLoqfWpo9ae6q7RXbFcsdDehf+fbWgvJdRuZlchwPQ\\nTYlmotJWuJZrmrAvkn0oo9WV8ct0teE5xcXyHCo1oACUyNpA0cRTAf5HYBghfJR8\\nx4UkFDK6cqZTYKdqs9HMbHs50Mc5geXaZVzSn034VD788Nuw1v06DSWkamDBqHBp\\nXYJnYdArUZGkwT7i1sdRPQKBmQDtqFU2gvTM6W7rwqxNbt90ZL+jJ/szduGsgPNO\\nQNXP4SKE41k3orqwpt7QYBGefGtPoI8294D0YV1K78yYOMkA83KbjAr5aUcCRLdL\\nXjk8E4esQAjWWYurdbwmrpD0WoKWgIlvM+s6aYjRzRYvamZa9bGk+a2n0zrM+HgX\\nBhQYSdpd1DiSvuV561UgmAiIRmNYdT7txRmVRwKBmGZUaogrvtTSQ+vk2tquEXci\\nNv8lmtI+DlYpQxNCpK9s0hg7hjFLihWz5HVYYaiDtFDYidX/cYasdBW2rgGJlEz6\\nYXMsiHXYOTWwD4nNzm5hJtQdX8V5RRAqMm/4G7BChRI4FLLtQrk3PTfDOe/FM6Wv\\nWnH4dY3KH8m4HnJ1wdh6NfHouo3uNB8Ylkaok6d7aTbK8rE6ItlJAoGZAJ6UHhf7\\nlgFNGdhy06nve2cc+sqRmQqkHr2OZcsndAP8A56MXTHEgbHyBucf02HfP3OofSd+\\nSyvF9AxWqjxAV88soqKr9X6rAti+pVfDDYnKtlL3f24X3hyQuPVOsiZ6ZnyqVApB\\nqIoXdVYY9N66roWvP9QHThqX1bqDaQ5j3fC/BthpDT7N5i1OHEVdbQQRg6S4xz68\\nr+9tAoGZAIyiHwn1QZqCUsIKiffm4g5sfVPcNqHhtKPCOTnNkNxAM7G4XB9WQyBA\\nzDnRRpwtFq+5R4XyJUyloSflZpltJ+T/aifq6lDn9sLf0ma6y+cCkTm06Lfx4MHw\\nMGvuTjj6oOeGj30kAe35j6e0xcNyhGFTRK+QROKkdMFMV2V9a9Jo3wTOr4PYr8Q6\\nt1BYovwF54fuQF/ceAFz\\n-----END RSA PRIVATE KEY-----\\n\",\"ssl_certificate\":null,\"updated_at\":\"2011-11-12T12:19:26Z\",\"available_approver_emails\":\"res-dom@iana.org,res-dom@iana.org,admin@example.com,administrator@example.com,hostmaster@example.com,root@example.com,webmaster@example.com,postmaster@example.com,admin@www.example.com,administrator@www.example.com,hostmaster@www.example.com,root@www.example.com,webmaster@www.example.com,postmaster@www.example.com\"}}"
44
- http_version: "1.1"
46
+ body:
47
+ encoding: UTF-8
48
+ string: ! '{"certificate":{"approver_email":"admin@example.com","certificate_status":"Awaiting
49
+ Configuration","configured_at":"2011-11-12T12:19:26Z","contact_id":1,"created_at":"2011-11-11T20:56:14Z","csr":"-----BEGIN
50
+ NEW CERTIFICATE REQUEST-----\nMIIDMjCCAeoCAQAwXTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDEFudGhvbnkgRWRl\nbjEQMA4GA1UEBxMHTWFsYWJhcjELMAkGA1UECBMCRkwxGDAWBgNVBAMTD3d3dy5l\neGFtcGxlLmNvbTCCAVIwDQYJKoZIhvcNAQEBBQADggE/ADCCAToCggExALVqxT38\nVYrafdjtqrYGCn1/HOYnOTJ0r8aYR71cW/AN50H6t0NOwLdrKstQ11uxGxkqFotl\ndHklfJUh5gJyrisIZNP/YZ55s+rjcbuFeiAyouEs12YwYOK2GzsHB6t3OBJC2+Nm\nZirDUUbhA4VDkf7DqiIRVSKcC0BKJyr69fnGewpAW9xiECryYqq884vD1/MoxuPQ\nYWKSWXB4G/iD5vXamBNqF5TCJV8U8/53mKClWBTsMQxO2eCjPEqO6Yf1LViu4vZx\nOmB093Iet8h+DI93FYGRQFmYy8SKBb/jOnr83gXEKIbKSGccYNHy8QGlYMguX+Yb\nNbUGqKgr2LL2sk9rtLv8rCu/fSkJMhOw7Rz9N1TAVccZYLqGm+gNDDlI3TcKUQ6o\n1R4uE7TOX3OFCOsCAwEAAaAwMC4GCSqGSIb3DQEJDjEhMB8wDAYDVR0TAQH/BAIw\nADAPBgNVHQ8BAf8EBQMDB4AAMA0GCSqGSIb3DQEBBQUAA4IBMQAFJ9nGFHx5Mcg6\n/TnT3kvT8qaux6SwfCw35XepT9rJ7YppaMgeOanEGJdvjtZtYxIWzxq2E+lFcNGd\nAsJoNk1jnmvbFLARjTAfN9JSvxfkT6x+rcR8rSbpzYb19NV2QTUivrDuur5BvLI3\nCUHunT7bQaWuxbZK/GgZ4KiRIvplsUz09Ir6HDcLS2TNeswSRwqNYs1v1uY1TWeS\nUGbW391e7EsmesnHi8QdzqafwIjWqUoz55V8TMN0xJF7Dlwfw09NZ7rhh3hmC9aT\nk/s8jl+Cfaz9aumrTHex2RkBfBpfLNnTbkCrBuYSp2lkV7XSn6GRXL84QVIrVwZo\nRgQisMWQ0HWKVVGpAhh8u1PcRBHpJiCsK1AoN+TsQ/7N/cbGpyllS5IBAzRCDM9V\nUNT4A6BR\n-----END
51
+ NEW CERTIFICATE REQUEST-----\n","domain_id":39,"expiration_date":"11/11/2012
52
+ 12:56:14 PM","id":1,"name":"www","order_date":"11/11/2011 12:56:14 PM","private_key":"-----BEGIN
53
+ RSA PRIVATE KEY-----\nMIIFewIBAAKCATEAtWrFPfxVitp92O2qtgYKfX8c5ic5MnSvxphHvVxb8A3nQfq3\nQ07At2sqy1DXW7EbGSoWi2V0eSV8lSHmAnKuKwhk0/9hnnmz6uNxu4V6IDKi4SzX\nZjBg4rYbOwcHq3c4EkLb42ZmKsNRRuEDhUOR/sOqIhFVIpwLQEonKvr1+cZ7CkBb\n3GIQKvJiqrzzi8PX8yjG49BhYpJZcHgb+IPm9dqYE2oXlMIlXxTz/neYoKVYFOwx\nDE7Z4KM8So7ph/UtWK7i9nE6YHT3ch63yH4Mj3cVgZFAWZjLxIoFv+M6evzeBcQo\nhspIZxxg0fLxAaVgyC5f5hs1tQaoqCvYsvayT2u0u/ysK799KQkyE7DtHP03VMBV\nxxlguoab6A0MOUjdNwpRDqjVHi4TtM5fc4UI6wIDAQABAoIBLxQcLxiT1s62Kzbj\n6W+O9zCUf5x6UnXLnwG5BSgUoWEQv1aUJjMhB7jD+ZmpFKbBF0MHJcnK4pHo/OmL\nLLi7FqYxqMmx05PseV/FYAT19a/UOA5HV4BKeLFkP/4ov/i1ZxSGKRhHY/Lvbxxp\nLHR9N9ps4qQ7jFCFJ2j14hayx5GHyX/AcKzUx90NnXg2xMiXIiQHUYfpJEAdIGc4\njAMO8wjTQk9CGW3U/faibxdvRplpNbCV9Zmi7Wj3K3bX83LraqdbkhG7gWLono8S\ntVwcKd7JFKhooyHpVmLt7M9VhRS08/oxuwOlwL/ETdNN1BwOhiZv6U74QoiW1wjN\nfwbo4+QkE00a66E/TsX6CFQ6ec14tJKOcuHfQS+0bfBLK10XdgD696B/l1C9LwKy\nVYcnzQKBmQDDazs4EZjpdxOLoqfWpo9ae6q7RXbFcsdDehf+fbWgvJdRuZlchwPQ\nTYlmotJWuJZrmrAvkn0oo9WV8ct0teE5xcXyHCo1oACUyNpA0cRTAf5HYBghfJR8\nx4UkFDK6cqZTYKdqs9HMbHs50Mc5geXaZVzSn034VD788Nuw1v06DSWkamDBqHBp\nXYJnYdArUZGkwT7i1sdRPQKBmQDtqFU2gvTM6W7rwqxNbt90ZL+jJ/szduGsgPNO\nQNXP4SKE41k3orqwpt7QYBGefGtPoI8294D0YV1K78yYOMkA83KbjAr5aUcCRLdL\nXjk8E4esQAjWWYurdbwmrpD0WoKWgIlvM+s6aYjRzRYvamZa9bGk+a2n0zrM+HgX\nBhQYSdpd1DiSvuV561UgmAiIRmNYdT7txRmVRwKBmGZUaogrvtTSQ+vk2tquEXci\nNv8lmtI+DlYpQxNCpK9s0hg7hjFLihWz5HVYYaiDtFDYidX/cYasdBW2rgGJlEz6\nYXMsiHXYOTWwD4nNzm5hJtQdX8V5RRAqMm/4G7BChRI4FLLtQrk3PTfDOe/FM6Wv\nWnH4dY3KH8m4HnJ1wdh6NfHouo3uNB8Ylkaok6d7aTbK8rE6ItlJAoGZAJ6UHhf7\nlgFNGdhy06nve2cc+sqRmQqkHr2OZcsndAP8A56MXTHEgbHyBucf02HfP3OofSd+\nSyvF9AxWqjxAV88soqKr9X6rAti+pVfDDYnKtlL3f24X3hyQuPVOsiZ6ZnyqVApB\nqIoXdVYY9N66roWvP9QHThqX1bqDaQ5j3fC/BthpDT7N5i1OHEVdbQQRg6S4xz68\nr+9tAoGZAIyiHwn1QZqCUsIKiffm4g5sfVPcNqHhtKPCOTnNkNxAM7G4XB9WQyBA\nzDnRRpwtFq+5R4XyJUyloSflZpltJ+T/aifq6lDn9sLf0ma6y+cCkTm06Lfx4MHw\nMGvuTjj6oOeGj30kAe35j6e0xcNyhGFTRK+QROKkdMFMV2V9a9Jo3wTOr4PYr8Q6\nt1BYovwF54fuQF/ceAFz\n-----END
54
+ RSA PRIVATE KEY-----\n","ssl_certificate":null,"updated_at":"2011-11-12T12:19:26Z","available_approver_emails":"res-dom@iana.org,res-dom@iana.org,admin@example.com,administrator@example.com,hostmaster@example.com,root@example.com,webmaster@example.com,postmaster@example.com,admin@www.example.com,administrator@www.example.com,hostmaster@www.example.com,root@www.example.com,webmaster@www.example.com,postmaster@www.example.com"}}'
55
+ http_version: '1.1'
56
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
57
+ recorded_with: VCR 2.2.5
@@ -1,42 +1,50 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/contacts.json
6
- body: contact[phone]=305%20111%202222&contact[city]=Miami&contact[first_name]=John&contact[state_province]=FL&contact[last_name]=Doe&contact[postal_code]=33143&contact[country]=US&contact[address1]=1%20SW%201st%20Street&contact[email_address]=john.doe%40example.com
7
- headers:
8
- authorization:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/contacts
6
+ body:
7
+ encoding: UTF-8
8
+ string: contact[phone]=305%20111%202222&contact[city]=Miami&contact[first_name]=John&contact[state_province]=FL&contact[last_name]=Doe&contact[postal_code]=33143&contact[country]=US&contact[address1]=1%20SW%201st%20Street&contact[email_address]=john.doe%40example.com
9
+ headers:
10
+ Authorization:
9
11
  - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
10
- response: !ruby/struct:VCR::Response
11
- status: !ruby/struct:VCR::ResponseStatus
12
+ response:
13
+ status:
12
14
  code: 201
13
15
  message: Created
14
- headers:
15
- x-ua-compatible:
16
+ headers:
17
+ X-Ua-Compatible:
16
18
  - IE=Edge
17
- access-control-allow-headers:
19
+ Access-Control-Allow-Headers:
18
20
  - Authorization,Accepts,Content-Type
19
- x-dnsimple-api-version:
21
+ X-Dnsimple-Api-Version:
20
22
  - 1.0.0
21
- location:
22
- - http://localhost:3000/contacts/4
23
- access-control-allow-methods:
23
+ Location:
24
+ - https://test.dnsimple.com/contacts/4
25
+ Access-Control-Allow-Methods:
24
26
  - OPTIONS
25
- content-type:
27
+ Content-Type:
26
28
  - application/json; charset=utf-8
27
- access-control-allow-origin:
28
- - "*"
29
- date:
29
+ Access-Control-Allow-Origin:
30
+ - ! '*'
31
+ Date:
30
32
  - Fri, 11 Nov 2011 20:33:54 GMT
31
- server:
33
+ Server:
32
34
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
33
- x-runtime:
34
- - "0.326136"
35
- content-length:
36
- - "406"
37
- set-cookie:
38
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlOTBjZWJmZjc2YmJkODEwODhkNzBmNmI3YWM2NWEwNjZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--3be5473018837faded15ad4b1e10c8a95c74edb1; path=/; HttpOnly
39
- cache-control:
35
+ X-Runtime:
36
+ - '0.326136'
37
+ Content-Length:
38
+ - '406'
39
+ Set-Cookie:
40
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlOTBjZWJmZjc2YmJkODEwODhkNzBmNmI3YWM2NWEwNjZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--3be5473018837faded15ad4b1e10c8a95c74edb1;
41
+ path=/; HttpOnly
42
+ Cache-Control:
40
43
  - no-cache
41
- body: "{\"contact\":{\"address1\":\"1 SW 1st Street\",\"address2\":null,\"city\":\"Miami\",\"country\":\"US\",\"created_at\":\"2011-11-11T20:33:54Z\",\"email_address\":\"john.doe@example.com\",\"fax\":null,\"first_name\":\"John\",\"id\":4,\"job_title\":null,\"label\":null,\"last_name\":\"Doe\",\"organization_name\":null,\"phone\":\"305 111 2222\",\"phone_ext\":null,\"postal_code\":\"33143\",\"state_province\":\"FL\",\"updated_at\":\"2011-11-11T20:33:54Z\",\"user_id\":1}}"
42
- http_version: "1.1"
44
+ body:
45
+ encoding: UTF-8
46
+ string: ! '{"contact":{"address1":"1 SW 1st Street","address2":null,"city":"Miami","country":"US","created_at":"2011-11-11T20:33:54Z","email_address":"john.doe@example.com","fax":null,"first_name":"John","id":4,"job_title":null,"label":null,"last_name":"Doe","organization_name":null,"phone":"305
47
+ 111 2222","phone_ext":null,"postal_code":"33143","state_province":"FL","updated_at":"2011-11-11T20:33:54Z","user_id":1}}'
48
+ http_version: '1.1'
49
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
50
+ recorded_with: VCR 2.2.5
@@ -1,42 +1,50 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/contacts/1.json
6
- body:
7
- headers:
8
- authorization:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/contacts/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
9
11
  - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
10
- response: !ruby/struct:VCR::Response
11
- status: !ruby/struct:VCR::ResponseStatus
12
+ response:
13
+ status:
12
14
  code: 200
13
15
  message: OK
14
- headers:
15
- x-ua-compatible:
16
+ headers:
17
+ X-Ua-Compatible:
16
18
  - IE=Edge
17
- access-control-allow-headers:
19
+ Access-Control-Allow-Headers:
18
20
  - Authorization,Accepts,Content-Type
19
- x-dnsimple-api-version:
21
+ X-Dnsimple-Api-Version:
20
22
  - 1.0.0
21
- etag:
22
- - "\"e311cdfc85cf816f955c96e6777b2960\""
23
- access-control-allow-methods:
23
+ Etag:
24
+ - ! '"e311cdfc85cf816f955c96e6777b2960"'
25
+ Access-Control-Allow-Methods:
24
26
  - OPTIONS
25
- content-type:
27
+ Content-Type:
26
28
  - application/json; charset=utf-8
27
- access-control-allow-origin:
28
- - "*"
29
- date:
29
+ Access-Control-Allow-Origin:
30
+ - ! '*'
31
+ Date:
30
32
  - Fri, 11 Nov 2011 20:34:48 GMT
31
- server:
33
+ Server:
32
34
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
33
- x-runtime:
34
- - "0.435917"
35
- content-length:
36
- - "401"
37
- set-cookie:
38
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNjI1ZTcwODA3NzhjMzY2NDBmMzA4YzExOTQzZWZlYjNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--62ec9088d88ee5b5446a9e75637b33ef10ec8aed; path=/; HttpOnly
39
- cache-control:
35
+ X-Runtime:
36
+ - '0.435917'
37
+ Content-Length:
38
+ - '401'
39
+ Set-Cookie:
40
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNjI1ZTcwODA3NzhjMzY2NDBmMzA4YzExOTQzZWZlYjNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--62ec9088d88ee5b5446a9e75637b33ef10ec8aed;
41
+ path=/; HttpOnly
42
+ Cache-Control:
40
43
  - max-age=0, private, must-revalidate
41
- body: "{\"contact\":{\"address1\":\"2045 Corey Rd\",\"address2\":\"\",\"city\":\"Malabar\",\"country\":\"US\",\"created_at\":\"2011-10-16T16:46:55Z\",\"email_address\":\"anthonyeden@gmail.com\",\"fax\":\"\",\"first_name\":\"Anthony\",\"id\":1,\"job_title\":\"\",\"label\":\"\",\"last_name\":\"Eden\",\"organization_name\":\"\",\"phone\":\"321 505 0025\",\"phone_ext\":null,\"postal_code\":\"32950\",\"state_province\":\"FL\",\"updated_at\":\"2011-10-16T16:46:55Z\",\"user_id\":1}}"
42
- http_version: "1.1"
44
+ body:
45
+ encoding: UTF-8
46
+ string: ! '{"contact":{"address1":"2045 Corey Rd","address2":"","city":"Malabar","country":"US","created_at":"2011-10-16T16:46:55Z","email_address":"anthonyeden@gmail.com","fax":"","first_name":"Anthony","id":1,"job_title":"","label":"","last_name":"Eden","organization_name":"","phone":"321
47
+ 505 0025","phone_ext":null,"postal_code":"32950","state_province":"FL","updated_at":"2011-10-16T16:46:55Z","user_id":1}}'
48
+ http_version: '1.1'
49
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
50
+ recorded_with: VCR 2.2.5
@@ -1,130 +1,149 @@
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]=example0.com
7
- headers:
8
- accept:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains
6
+ body:
7
+ encoding: UTF-8
8
+ string: domain[name]=example0.com
9
+ headers:
10
+ Accept:
9
11
  - application/json
10
- authorization:
12
+ Authorization:
11
13
  - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
14
+ response:
15
+ status:
14
16
  code: 201
15
17
  message: Created
16
- headers:
17
- x-ua-compatible:
18
+ headers:
19
+ X-Ua-Compatible:
18
20
  - IE=Edge
19
- access-control-allow-headers:
21
+ Access-Control-Allow-Headers:
20
22
  - Authorization,Accepts,Content-Type
21
- x-dnsimple-api-version:
23
+ X-Dnsimple-Api-Version:
22
24
  - 1.0.0
23
- location:
24
- - http://localhost:3000/domains/example0.com
25
- access-control-allow-methods:
25
+ Location:
26
+ - https://test.dnsimple.com/domains/example0.com
27
+ Access-Control-Allow-Methods:
26
28
  - OPTIONS
27
- content-type:
29
+ Content-Type:
28
30
  - application/json; charset=utf-8
29
- access-control-allow-origin:
30
- - "*"
31
- date:
31
+ Access-Control-Allow-Origin:
32
+ - ! '*'
33
+ Date:
32
34
  - Fri, 11 Nov 2011 20:13:05 GMT
33
- server:
35
+ Server:
34
36
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- x-runtime:
36
- - "5.103398"
37
- content-length:
38
- - "413"
39
- set-cookie:
40
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMWJiOTg2ZWU2ZTdkYTkzMDFmOTRhODAwOGY2MzIxMjRJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--f054d6190541c9e7551cf14f746ac29150a64a5a; path=/; HttpOnly
41
- cache-control:
37
+ X-Runtime:
38
+ - '5.103398'
39
+ Content-Length:
40
+ - '413'
41
+ Set-Cookie:
42
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMWJiOTg2ZWU2ZTdkYTkzMDFmOTRhODAwOGY2MzIxMjRJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--f054d6190541c9e7551cf14f746ac29150a64a5a;
43
+ path=/; HttpOnly
44
+ Cache-Control:
42
45
  - no-cache
43
- body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:13:01Z\",\"expires_at\":null,\"id\":42,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example0.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:13:01Z\",\"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: :post
48
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains
49
- body: domain[name]=example1.com
50
- headers:
51
- accept:
46
+ body:
47
+ encoding: UTF-8
48
+ string: ! '{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:13:01Z","expires_at":null,"id":42,"last_name_server_status_check":null,"lockable":true,"name":"example0.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:13:01Z","user_id":1,"uses_external_name_servers":null,"record_count":0}}'
49
+ http_version: '1.1'
50
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
51
+ - request:
52
+ method: post
53
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains
54
+ body:
55
+ encoding: UTF-8
56
+ string: domain[name]=example1.com
57
+ headers:
58
+ Accept:
52
59
  - application/json
53
- authorization:
60
+ Authorization:
54
61
  - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
62
+ response:
63
+ status:
57
64
  code: 201
58
65
  message: Created
59
- headers:
60
- x-ua-compatible:
66
+ headers:
67
+ X-Ua-Compatible:
61
68
  - IE=Edge
62
- access-control-allow-headers:
69
+ Access-Control-Allow-Headers:
63
70
  - Authorization,Accepts,Content-Type
64
- x-dnsimple-api-version:
71
+ X-Dnsimple-Api-Version:
65
72
  - 1.0.0
66
- location:
67
- - http://localhost:3000/domains/example1.com
68
- access-control-allow-methods:
73
+ Location:
74
+ - https://test.dnsimple.com/domains/example1.com
75
+ Access-Control-Allow-Methods:
69
76
  - OPTIONS
70
- content-type:
77
+ Content-Type:
71
78
  - application/json; charset=utf-8
72
- access-control-allow-origin:
73
- - "*"
74
- date:
79
+ Access-Control-Allow-Origin:
80
+ - ! '*'
81
+ Date:
75
82
  - Fri, 11 Nov 2011 20:13:11 GMT
76
- server:
83
+ Server:
77
84
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
78
- x-runtime:
79
- - "6.008554"
80
- content-length:
81
- - "413"
82
- set-cookie:
83
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlOTA1OTE0NTdjNTQ0OTMwYTZkZmNhYzc2YjVmNzRlOWRJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--a0b803488b056619e9c9a90b7d3d94d63d3bd27b; path=/; HttpOnly
84
- cache-control:
85
+ X-Runtime:
86
+ - '6.008554'
87
+ Content-Length:
88
+ - '413'
89
+ Set-Cookie:
90
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlOTA1OTE0NTdjNTQ0OTMwYTZkZmNhYzc2YjVmNzRlOWRJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--a0b803488b056619e9c9a90b7d3d94d63d3bd27b;
91
+ path=/; HttpOnly
92
+ Cache-Control:
85
93
  - no-cache
86
- body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:13:06Z\",\"expires_at\":null,\"id\":43,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example1.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:13:06Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
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/domains
92
- body:
93
- headers:
94
- accept:
94
+ body:
95
+ encoding: UTF-8
96
+ string: ! '{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:13:06Z","expires_at":null,"id":43,"last_name_server_status_check":null,"lockable":true,"name":"example1.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:13:06Z","user_id":1,"uses_external_name_servers":null,"record_count":0}}'
97
+ http_version: '1.1'
98
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
99
+ - request:
100
+ method: get
101
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains
102
+ body:
103
+ encoding: US-ASCII
104
+ string: ''
105
+ headers:
106
+ Accept:
95
107
  - application/json
96
- authorization:
108
+ Authorization:
97
109
  - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
98
- response: !ruby/struct:VCR::Response
99
- status: !ruby/struct:VCR::ResponseStatus
110
+ response:
111
+ status:
100
112
  code: 200
101
113
  message: OK
102
- headers:
103
- x-ua-compatible:
114
+ headers:
115
+ X-Ua-Compatible:
104
116
  - IE=Edge
105
- access-control-allow-headers:
117
+ Access-Control-Allow-Headers:
106
118
  - Authorization,Accepts,Content-Type
107
- x-dnsimple-api-version:
119
+ X-Dnsimple-Api-Version:
108
120
  - 1.0.0
109
- etag:
110
- - "\"e20ab09f44139d8c9a7cb836af8412de\""
111
- access-control-allow-methods:
121
+ Etag:
122
+ - ! '"e20ab09f44139d8c9a7cb836af8412de"'
123
+ Access-Control-Allow-Methods:
112
124
  - OPTIONS
113
- content-type:
125
+ Content-Type:
114
126
  - application/json; charset=utf-8
115
- access-control-allow-origin:
116
- - "*"
117
- date:
127
+ Access-Control-Allow-Origin:
128
+ - ! '*'
129
+ Date:
118
130
  - Fri, 11 Nov 2011 20:13:12 GMT
119
- server:
131
+ Server:
120
132
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
121
- x-runtime:
122
- - "0.710570"
123
- content-length:
124
- - "2194"
125
- set-cookie:
126
- - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlZTQ3NTM4OWMyZTI2NTYyY2Q3YzIyYzk1ZjRkMDYyYjJJIg5yZXR1cm5fdG8GOwBGSSINL2RvbWFpbnMGOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--bc44fcfe069cfcad0aa4bdee121f273b6ba6fd25; path=/; HttpOnly
127
- cache-control:
133
+ X-Runtime:
134
+ - '0.710570'
135
+ Content-Length:
136
+ - '2194'
137
+ Set-Cookie:
138
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlZTQ3NTM4OWMyZTI2NTYyY2Q3YzIyYzk1ZjRkMDYyYjJJIg5yZXR1cm5fdG8GOwBGSSINL2RvbWFpbnMGOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--bc44fcfe069cfcad0aa4bdee121f273b6ba6fd25;
139
+ path=/; HttpOnly
140
+ Cache-Control:
128
141
  - max-age=0, private, must-revalidate
129
- body: "[{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:10:46Z\",\"expires_at\":\"11/11/2012 12:10:00 PM\",\"id\":40,\"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\",\"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}},{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:11:34Z\",\"expires_at\":\"11/11/2012 12:11:00 PM\",\"id\":41,\"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\",\"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}},{\"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}},{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:13:01Z\",\"expires_at\":null,\"id\":42,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example0.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:13:01Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}},{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:13:06Z\",\"expires_at\":null,\"id\":43,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example1.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:13:06Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}]"
130
- http_version: "1.1"
142
+ body:
143
+ encoding: UTF-8
144
+ string: ! '[{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:10:46Z","expires_at":"11/11/2012
145
+ 12:10:00 PM","id":40,"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","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}},{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:11:34Z","expires_at":"11/11/2012
146
+ 12:11:00 PM","id":41,"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","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}},{"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}},{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:13:01Z","expires_at":null,"id":42,"last_name_server_status_check":null,"lockable":true,"name":"example0.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:13:01Z","user_id":1,"uses_external_name_servers":null,"record_count":0}},{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:13:06Z","expires_at":null,"id":43,"last_name_server_status_check":null,"lockable":true,"name":"example1.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:13:06Z","user_id":1,"uses_external_name_servers":null,"record_count":0}}]'
147
+ http_version: '1.1'
148
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
149
+ recorded_with: VCR 2.2.5