dnsimple-ruby 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/Gemfile +3 -1
  2. data/Gemfile.lock +4 -0
  3. data/VERSION +1 -1
  4. data/fixtures/vcr_cassettes/DNSimple_Contact/a_new_contact.yml +44 -0
  5. data/fixtures/vcr_cassettes/DNSimple_Contact/an_existing_contact.yml +44 -0
  6. data/fixtures/vcr_cassettes/DNSimple_Domain/_all.yml +181 -0
  7. data/fixtures/vcr_cassettes/DNSimple_Domain/applying_templates.yml +316 -0
  8. data/fixtures/vcr_cassettes/DNSimple_Domain/creating_a_new_domain.yml +46 -0
  9. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain.yml +46 -0
  10. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_id.yml +46 -0
  11. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_name.yml +46 -0
  12. data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_a_new_registrant_contact.yml +46 -0
  13. data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_an_existing_contact.yml +46 -0
  14. data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_ca.yml +42 -0
  15. data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_com.yml +42 -0
  16. data/fixtures/vcr_cassettes/DNSimple_Record/_all.yml +361 -0
  17. data/fixtures/vcr_cassettes/DNSimple_Record/creating_a_new_record.yml +91 -0
  18. data/fixtures/vcr_cassettes/DNSimple_Record/find_a_record.yml +91 -0
  19. data/fixtures/vcr_cassettes/DNSimple_Template/a_template.yml +46 -0
  20. data/fixtures/vcr_cassettes/DNSimple_User/_me.yml +44 -0
  21. data/lib/dnsimple/extended_attribute.rb +0 -1
  22. data/spec/contact_spec.rb +12 -9
  23. data/spec/domain_spec.rb +46 -47
  24. data/spec/extended_attributes_spec.rb +2 -0
  25. data/spec/record_spec.rb +14 -20
  26. data/spec/spec_helper.rb +10 -0
  27. data/spec/template_spec.rb +1 -0
  28. data/spec/user_spec.rb +1 -0
  29. metadata +50 -5
@@ -0,0 +1,46 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains
6
+ body: domain[name]=testdomain.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,chrome=1
19
+ access-control-allow-headers:
20
+ - Authorization
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ location:
24
+ - /domains/141
25
+ access-control-allow-methods:
26
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
27
+ access-control-allow-origin:
28
+ - "*"
29
+ content-type:
30
+ - application/json; charset=utf-8
31
+ x-runtime:
32
+ - "2.538610"
33
+ date:
34
+ - Sun, 22 May 2011 18:40:49 GMT
35
+ server:
36
+ - nginx/1.0.2
37
+ set-cookie:
38
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlZWY4YjI4ZTcwMjBiZDFiM2ZiM2JlYmRjN2ExNzJiYzZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA4YzdkZTI4YjQ2MmY0YWI1MzMxMDM1ZDViM2UzZDRkZTVjMjQ0NTU1NTYzYjBhMzkxNWFjODk4MmQ5ZjBhZGM0YjRiODkwNTM1ZGQyYzYwNDIyNDUzNTRhOTU0YjhjZDc3M2IxNzdkNzgwNDhlNGU5ODhkNWNjMzQ2MGUwYTkzZgY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkH--5e7e6e7c9548b58fed8ce9fda5255822a1901360; path=/; HttpOnly
39
+ cache-control:
40
+ - no-cache
41
+ status:
42
+ - 201 Created
43
+ transfer-encoding:
44
+ - chunked
45
+ body: "{\"domain\":{\"created_at\":\"2011-05-22T18:40:47Z\",\"expires_at\":null,\"id\":141,\"lockable\":true,\"name\":\"testdomain.com\",\"name_server_status\":\"unknown\",\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"updated_at\":\"2011-05-22T18:40:47Z\",\"user_id\":2,\"uses_external_name_servers\":null,\"record_count\":0}}"
46
+ http_version: "1.1"
@@ -0,0 +1,46 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/141
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,chrome=1
19
+ access-control-allow-headers:
20
+ - Authorization
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ etag:
24
+ - "\"40fbb4db6924a5c6e1d913296632b709\""
25
+ access-control-allow-methods:
26
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
27
+ access-control-allow-origin:
28
+ - "*"
29
+ content-type:
30
+ - application/json; charset=utf-8
31
+ x-runtime:
32
+ - "0.016685"
33
+ date:
34
+ - Sun, 22 May 2011 18:41:28 GMT
35
+ server:
36
+ - nginx/1.0.2
37
+ set-cookie:
38
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlYjBiYzU2ZDU0M2U0YmNlYzhmZGM1ZTVkNzM1NjI3NmJJIg5yZXR1cm5fdG8GOwBGIhEvZG9tYWlucy8xNDFJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA4YzdkZTI4YjQ2MmY0YWI1MzMxMDM1ZDViM2UzZDRkZTVjMjQ0NTU1NTYzYjBhMzkxNWFjODk4MmQ5ZjBhZGM0YjRiODkwNTM1ZGQyYzYwNDIyNDUzNTRhOTU0YjhjZDc3M2IxNzdkNzgwNDhlNGU5ODhkNWNjMzQ2MGUwYTkzZgY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkH--180d45db5439632daa0682bb763e4bfa404c20f8; path=/; HttpOnly
39
+ cache-control:
40
+ - max-age=0, private, must-revalidate
41
+ status:
42
+ - 200 OK
43
+ transfer-encoding:
44
+ - chunked
45
+ body: "{\"domain\":{\"created_at\":\"2011-05-22T18:40:47Z\",\"expires_at\":null,\"id\":141,\"lockable\":true,\"name\":\"testdomain.com\",\"name_server_status\":\"unknown\",\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"updated_at\":\"2011-05-22T18:40:51Z\",\"user_id\":2,\"uses_external_name_servers\":null,\"record_count\":0}}"
46
+ http_version: "1.1"
@@ -0,0 +1,46 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/141
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,chrome=1
19
+ access-control-allow-headers:
20
+ - Authorization
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ etag:
24
+ - "\"40fbb4db6924a5c6e1d913296632b709\""
25
+ access-control-allow-methods:
26
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
27
+ access-control-allow-origin:
28
+ - "*"
29
+ content-type:
30
+ - application/json; charset=utf-8
31
+ x-runtime:
32
+ - "0.021471"
33
+ date:
34
+ - Sun, 22 May 2011 18:44:12 GMT
35
+ server:
36
+ - nginx/1.0.2
37
+ set-cookie:
38
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlM2JlNWJlNjIzODM4Zjg3YmJlYTkzMjFiZjYyYWJmYjVJIg5yZXR1cm5fdG8GOwBGIhEvZG9tYWlucy8xNDFJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA4YzdkZTI4YjQ2MmY0YWI1MzMxMDM1ZDViM2UzZDRkZTVjMjQ0NTU1NTYzYjBhMzkxNWFjODk4MmQ5ZjBhZGM0YjRiODkwNTM1ZGQyYzYwNDIyNDUzNTRhOTU0YjhjZDc3M2IxNzdkNzgwNDhlNGU5ODhkNWNjMzQ2MGUwYTkzZgY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkH--8291a0edbff03b88b297823cc5f8813d2237b6f6; path=/; HttpOnly
39
+ cache-control:
40
+ - max-age=0, private, must-revalidate
41
+ status:
42
+ - 200 OK
43
+ transfer-encoding:
44
+ - chunked
45
+ body: "{\"domain\":{\"created_at\":\"2011-05-22T18:40:47Z\",\"expires_at\":null,\"id\":141,\"lockable\":true,\"name\":\"testdomain.com\",\"name_server_status\":\"unknown\",\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"updated_at\":\"2011-05-22T18:40:51Z\",\"user_id\":2,\"uses_external_name_servers\":null,\"record_count\":0}}"
46
+ http_version: "1.1"
@@ -0,0 +1,46 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/testdomain.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,chrome=1
19
+ access-control-allow-headers:
20
+ - Authorization
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ etag:
24
+ - "\"40fbb4db6924a5c6e1d913296632b709\""
25
+ access-control-allow-methods:
26
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
27
+ access-control-allow-origin:
28
+ - "*"
29
+ content-type:
30
+ - application/json; charset=utf-8
31
+ x-runtime:
32
+ - "0.017518"
33
+ date:
34
+ - Sun, 22 May 2011 18:44:13 GMT
35
+ server:
36
+ - nginx/1.0.2
37
+ set-cookie:
38
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlZjg2NzNjOTdlNmMzZDE0MmY2N2ExN2JmYjY0MzdkMDZJIg5yZXR1cm5fdG8GOwBGIhwvZG9tYWlucy90ZXN0ZG9tYWluLmNvbUkiFXVzZXJfY3JlZGVudGlhbHMGOwBGSSIBgDhjN2RlMjhiNDYyZjRhYjUzMzEwMzVkNWIzZTNkNGRlNWMyNDQ1NTU1NjNiMGEzOTE1YWM4OTgyZDlmMGFkYzRiNGI4OTA1MzVkZDJjNjA0MjI0NTM1NGE5NTRiOGNkNzczYjE3N2Q3ODA0OGU0ZTk4OGQ1Y2MzNDYwZTBhOTNmBjsAVEkiGHVzZXJfY3JlZGVudGlhbHNfaWQGOwBGaQc%3D--d27aa73046b6797f941b268d97b9f9981313bd2f; path=/; HttpOnly
39
+ cache-control:
40
+ - max-age=0, private, must-revalidate
41
+ status:
42
+ - 200 OK
43
+ transfer-encoding:
44
+ - chunked
45
+ body: "{\"domain\":{\"created_at\":\"2011-05-22T18:40:47Z\",\"expires_at\":null,\"id\":141,\"lockable\":true,\"name\":\"testdomain.com\",\"name_server_status\":\"unknown\",\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"updated_at\":\"2011-05-22T18:40:51Z\",\"user_id\":2,\"uses_external_name_servers\":null,\"record_count\":0}}"
46
+ http_version: "1.1"
@@ -0,0 +1,46 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domain_registrations
6
+ body: domain[name]=testdomain-1306090283.net&contact[phone]=321%20555%201212&contact[state_province]=FL&contact[address1]=123%20SW%201st%20Street&contact[city]=Miami&contact[country]=US&contact[first_name]=John&contact[postal_code]=33143&contact[last_name]=Smith
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,chrome=1
19
+ access-control-allow-headers:
20
+ - Authorization
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ location:
24
+ - /domains/142
25
+ access-control-allow-methods:
26
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
27
+ access-control-allow-origin:
28
+ - "*"
29
+ content-type:
30
+ - application/json; charset=utf-8
31
+ x-runtime:
32
+ - "10.839024"
33
+ date:
34
+ - Sun, 22 May 2011 18:51:34 GMT
35
+ server:
36
+ - nginx/1.0.2
37
+ set-cookie:
38
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlOTExZjRkZWFjNjRjZjA4N2U1ZGMzZTI2YzA0ZDJkNDBJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA4YzdkZTI4YjQ2MmY0YWI1MzMxMDM1ZDViM2UzZDRkZTVjMjQ0NTU1NTYzYjBhMzkxNWFjODk4MmQ5ZjBhZGM0YjRiODkwNTM1ZGQyYzYwNDIyNDUzNTRhOTU0YjhjZDc3M2IxNzdkNzgwNDhlNGU5ODhkNWNjMzQ2MGUwYTkzZgY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkHSSIJbmFtZQY7AEZJIh50ZXN0ZG9tYWluLTEzMDYwOTAyODMubmV0BjsAVA%3D%3D--d4da7bde08216ce5b9b46933cded61359cee2268; path=/; HttpOnly
39
+ cache-control:
40
+ - no-cache
41
+ status:
42
+ - 201 Created
43
+ transfer-encoding:
44
+ - chunked
45
+ body: "{\"domain\":{\"created_at\":\"2011-05-22T18:51:30Z\",\"expires_at\":\"5/22/2012 2:51:00 PM\",\"id\":142,\"last_enom_order_id\":\"157715708\",\"lockable\":true,\"name\":\"testdomain.net\",\"name_server_status\":\"unknown\",\"pdns_identifier\":null,\"real_time\":true,\"registrant_id\":30,\"registration_status\":\"registered\",\"updated_at\":\"2011-05-22T18:51:34Z\",\"user_id\":2,\"uses_external_name_servers\":null,\"record_count\":0}}"
46
+ http_version: "1.1"
@@ -0,0 +1,46 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domain_registrations
6
+ body: domain[registrant_id]=4&domain[name]=testdomain-1306090402.net
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,chrome=1
19
+ access-control-allow-headers:
20
+ - Authorization
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ location:
24
+ - /domains/143
25
+ access-control-allow-methods:
26
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
27
+ access-control-allow-origin:
28
+ - "*"
29
+ content-type:
30
+ - application/json; charset=utf-8
31
+ x-runtime:
32
+ - "11.273003"
33
+ date:
34
+ - Sun, 22 May 2011 18:53:34 GMT
35
+ server:
36
+ - nginx/1.0.2
37
+ set-cookie:
38
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlMDY0NGJjODNkY2FjYzI3MDBkYTc4MjJlOTY2ZDIxMThJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA4YzdkZTI4YjQ2MmY0YWI1MzMxMDM1ZDViM2UzZDRkZTVjMjQ0NTU1NTYzYjBhMzkxNWFjODk4MmQ5ZjBhZGM0YjRiODkwNTM1ZGQyYzYwNDIyNDUzNTRhOTU0YjhjZDc3M2IxNzdkNzgwNDhlNGU5ODhkNWNjMzQ2MGUwYTkzZgY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkHSSIJbmFtZQY7AEZJIh50ZXN0ZG9tYWluLTEzMDYwOTA0MDIubmV0BjsAVA%3D%3D--19039087f1d72e48160415d545eebd9304ff7ce6; path=/; HttpOnly
39
+ cache-control:
40
+ - no-cache
41
+ status:
42
+ - 201 Created
43
+ transfer-encoding:
44
+ - chunked
45
+ body: "{\"domain\":{\"created_at\":\"2011-05-22T18:53:30Z\",\"expires_at\":\"5/22/2012 2:53:00 PM\",\"id\":143,\"last_enom_order_id\":\"157715709\",\"lockable\":true,\"name\":\"testdomain.net\",\"name_server_status\":\"unknown\",\"pdns_identifier\":null,\"real_time\":true,\"registrant_id\":2,\"registration_status\":\"registered\",\"updated_at\":\"2011-05-22T18:53:34Z\",\"user_id\":2,\"uses_external_name_servers\":null,\"record_count\":0}}"
46
+ http_version: "1.1"
@@ -0,0 +1,42 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/extended_attributes/ca.json
6
+ body:
7
+ headers:
8
+ authorization:
9
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ x-ua-compatible:
16
+ - IE=Edge,chrome=1
17
+ access-control-allow-headers:
18
+ - Authorization
19
+ x-dnsimple-api-version:
20
+ - 1.0.0
21
+ etag:
22
+ - "\"b4b5d46d690d56a070c696851b300f22\""
23
+ access-control-allow-methods:
24
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
25
+ access-control-allow-origin:
26
+ - "*"
27
+ content-type:
28
+ - application/json; charset=utf-8
29
+ x-runtime:
30
+ - "1.393553"
31
+ date:
32
+ - Sun, 22 May 2011 20:30:20 GMT
33
+ server:
34
+ - nginx/1.0.2
35
+ cache-control:
36
+ - max-age=0, private, must-revalidate
37
+ status:
38
+ - 200 OK
39
+ transfer-encoding:
40
+ - chunked
41
+ body: "[{\"name\":\"cira_legal_type\",\"description\":\"Legal type of registrant contact\",\"child\":false,\"required\":true,\"application\":\"2\",\"user_defined\":false,\"options\":[{\"title\":\"Corporation\",\"value\":\"CCO\",\"description\":\"A corporation under the laws of Canada or any province or territory of Canada, Charities, Cooperative, Council.<br/>Requirements: Registrant name must be the full legal name of the corporation and must be followed by the jurisdiction of incorporation (eg. Canada, Ontario, NWT...), unless it is obvious from the corporation's name. Canadian Internet Registration Authority (Canada). For Charities, the NFP should be included in the organization name. If this is a not-for-profit organization, you are also required to submit the registration number i.e.: 123456789 RR0001\"},{\"title\":\"Canadian Citizen\",\"value\":\"CCT\",\"description\":\"A Canadian citizen of the age of majority under the laws of the province or territory in Canada in which he or she resides or last resided.<br/>Requirements: The Registrant's name must be the full legal name of the Canadian Citizen who will hold the domain name registration as the name would appear on a passport, driver's license or other identification document issued by a government. The name can be followed by a space and \\\"o/a xxxx\\\" where \\\"o/a\\\" stands for \\\"Operating As\\\" and \\\"xxxx\\\" can be any alpha-numeric string designated by the applicant and subject to applicable rules and length restrictions (e.g. \\\"John Doe o/a Doe Consulting Group\\\"). The name may also be followed by a space and a degree granted to the registrant (eg. PhD.) Full legal names of individuals may only consist of alphabetic characters and the special characters: single quote mark('), hyphen(-), period(.).\"},{\"title\":\"Canadian Resident\",\"value\":\"RES\",\"description\":\"A permanent resident as defined in the Immigration and Refugee Protection Act (Canada) S.C. 2001, c.27, as amended from time to time, who is \\\"ordinarily resident\\\" (as defined below) in Canada and of the age of majority under the laws of the province or territory in Canada in which he or she resides or last resided. \\\"Ordinarily resident in Canada\\\" means an individual who resides in Canada for more than 183 days in the twelve month period immediately preceding the date of the applicable request for registration of the .ca domain name or sub-domain name and in each twelve month period thereafter for the duration of the domain name registration.<br/>Requirements: The Registrant's name must be the full legal name of the Permanent Resident who will hold the domain name registration as the name would appear on a driver's license or other identification document issued by a government. The full legal name may be followed by a space and \\\"o/a xxxx\\\" where \\\"o/a\\\" stands for \\\"Operating As\\\" and \\\"xxxx\\\" can be any alpha-numeric string designated by the applicant and subject to applicable rules and length restrictions (e.g. \\\"John Doe o/a Doe Consulting Group\\\"). The name may also be followed by a space and a degree granted to the registrant by a recognized degree granting institution or a recognized professional designation which the registrant has the right to use (eg. PhD, MD, DDS.) Full legal names of individuals may only consist of alphabetic characters and the special characters: single quote mark('), hyphen(-), period(.).\"},{\"title\":\"Government Entity\",\"value\":\"GOV\",\"description\":\"Her Majesty the Queen in right of Canada, a province or a territory; an agent of Her Majesty the Queen in right of Canada, of a province or of a territory; a federal, provincial or territorial Crown corporation, government agency or government entity; or a regional, municipal or local area government.<br />Requirements: The Registrant's name must be the complete official name of the entity that will hold the domain name registration, without any abbreviations. (A common abbreviation may follow the official name in parentheses). If the Registrant is not a government, the Registrant's name must be followed by the name of the jurisdiction (eg. Canada, province, territory, municipality, etc) to which the Registrant is related.\"},{\"title\":\"Educational\",\"value\":\"EDU\",\"description\":\"(i) A university or college which is located in Canada and which is authorized or recognized as a university or college under an Act of the legislature of a province or territory of Canada; or<br />(ii) A college, post-secondary school, vocational school, secondary school, pre-school or other school or educational institution which is located in Canada and which is recognized by the educational authorities of a province or territory of Canada or licensed under or maintained by an Act of Parliament of Canada or of the legislature of a province or territory of Canada.<br />Requirements: The Registrant's name must be the complete official name of the institution that will hold the domain name registration, without any abbreviations. A common abbreviation may follow the official name in parentheses. The Registrant name must be followed by the jurisdiction (e.g. name of province, municipality) in which the institution is accredited if not obvious from the Registrant's name.\"},{\"title\":\"Unincorporated Association\",\"value\":\"ASS\",\"description\":\"This Registrant Type is principally intended for religious congregations, social and sports clubs and community groups, council (not registered) or society (not registered) which are based and operating in Canada. An unincorporated organization, association or club:<br />(i) At least 80% of whose members: (A) are ordinarily resident in Canada (if such members are individuals); or (B) meet the requirements of any one of the following Registrant Types: Corporation (Canada or Canadian province or territory), Canadian citizen, Permanent Resident of Canada, Partnership Registered in Canada, Trust established in Canada, Legal Representative of a Canadian Citizen or Permanent Resident; and<br />(ii) At least 80% of whose directors, officers, employees, managers, administrators or other representatives are ordinarily resident in Canada.<br />Requirements: The Registrant's name must be the complete name of the association that will hold the domain name registration, without any abbreviations. (A common abbreviation may follow the complete name in parentheses).\"},{\"title\":\"Hospital\",\"value\":\"HOP\",\"description\":\"A hospital which is located in Canada and which is licensed, authorized or approved to operate as a hospital under an Act of the legislature of a province or territory of Canada<br />Requirements: The Registrant's name must be the complete official name of the hospital that will hold the domain name registration, without any abbreviations. (A common abbreviation may follow the complete name in parentheses.) The Registrant's name must be followed by the jurisdiction (eg. name of province) which accredited the hospital if not obvious from the Registrant's name.\"},{\"title\":\"Partnership\",\"value\":\"PRT\",\"description\":\"A partnership, more than 66 2/3 per cent of whose partners meet the requirements of one of the following Registrant Types: Corporation (Canada or Canadian province or territory), Canadian citizen, Permanent Resident of Canada, Trust established in Canada or a Legal Representative of a Canadian Citizen or Permanent Resident, which is registered as a partnership under the laws of any province or territory of Canada.<br />Requirements: The Registrant's name must be the registered name of the partnership that will hold the domain name registration. The Registrant name must be followed by the jurisdiction of registration (eg. Alberta) and the registration number.\"},{\"title\":\"Trade-mark\",\"value\":\"TDM\",\"description\":\"A Person which does not fall under any other registrant type, but which is the owner of a trade-mark which is the subject of a registration under the Trade-marks Act (Canada) R.S.C. 1985, c.T-13 as amended from time to time, but in this case such permission is limited to a request to register a .ca domain name consisting of or including the exact word component of that registered trade-mark.<br />This Registrant Type is only intended for Registrants which do not meet the requirements associated with any other registrant type but which have a trade-mark registered in Canada. (Trade-marks subject of trade-mark applications and trade-marks registered in other jurisdictions, such as the United States, do not qualify.)<br />The domain name to be registered must include the trade-mark. (eg. If the trade-mark is AVEA this type of registrant can register avea.ca or aveaisus.ca but not xyz.ca).\"},{\"title\":\"Trade Union\",\"value\":\"TRD\",\"description\":\"A trade union which is recognized by a labour board under the laws of Canada or any province or territory of Canada and which has its head office in Canada.<br />Requirements: The Registrant's name must be the complete official name of the trade union that will hold the domain name registration, without abbreviations. (A common abbreviation may follow the official name in parentheses.) The Registrant name must be followed by the jurisdiction in Canada which recognizes it (if it is not obvious from the Registrant's name.)\"},{\"title\":\"Political Party\",\"value\":\"PLT\",\"description\":\"A political party registered under a relevant electoral law of Canada or any province or territory of Canada<br />Requirements: The Registrant's name must be the complete official name of the political party holding the domain name registration, without abbreviations. (A common abbreviation may follow the official name in parentheses.) The Registrant name must also by followed by the jurisdiction in Canada in which it is registered (if it is not obvious from the official name).\"},{\"title\":\"Library, Archive or Museum\",\"value\":\"LAM\",\"description\":\"An institution, whether or not incorporated, that:<br />(i) is located in Canada; and<br />(ii) is not established or conducted for profit or does not form part of, or is not administered or directly or indirectly controlled by, a body that is established or conducted for profit in which is held and maintained a collection of documents and other materials that is open to the public or to researchers.<br />Requirements: The Registrant's name must be the complete legal name of the institution which will hold the domain name registration without abbreviations. (A common abbreviation may follow the complete name in parentheses.)\"},{\"title\":\"Trust\",\"value\":\"TRS\",\"description\":\"A trust established and subsisting under the laws of a province or territory of Canada, more than 66 2/3 % of whose trustees meet the requirements of one of the following Registrant Types: Corporation (Canada or Canadian province or territory), Canadian citizen, Permanent Resident of Canada, or a Legal Representative of a Canadian Citizen or Permanent Resident.<br />Requirements: The Registrant's name must be the complete official name of the trust, without any abbreviations. (A common abbreviation may follow the official name in parentheses.) The Registrant name must also indicate the total percentage of the trustees that meet one or more of the following requirements: Canadian citizen, permanent resident, Canadian corporation, legal representative.\"},{\"title\":\"Aboriginal Peoples\",\"value\":\"ABO\",\"description\":\"Any individual belonging to any Inuit, First Nation, Metis or other people indigenous to Canada.<br />Requirements: The Registrant's name must be the full legal name of the Aboriginal Person applying for the Registration as it would appear on a driver's license or other identification document issued by government.<br />The Registrant may enter its full legal name followed by a space and \\\"o/a xxxx\\\" where \\\"o/a\\\" stands for \\\"Operating As\\\" and \\\"xxxx\\\" can be any alpha-numeric string designated by the applicant and subject to applicable rules and length restrictions (e.g. \\\"John Doe o/a Doe Consulting Group\\\"). The name may also be followed by a space and a degree granted to the registrant by a recognized degree granting institution or a recognized professional designation which the registrant has the right to use (eg. PhD, MD, DDS.)<br />Full legal names of individuals may only consist of alphabetic characters and the special characters: single quote mark(''), hyphen(-), period(.).<br/>Groups: Any Inuit, First Nation, Metis or other people indigenous to Canada, and any collectivity of such Aboriginal peoples.<br />Requirements: The Registrant's name must be the complete official name of the indigenous people a collectivity of Aboriginal Persons or, if there is no official name, the name by which the collectivity is commonly known.\"},{\"title\":\"Indian Band\",\"value\":\"INB\",\"description\":\"Any Indian band as defined in the Indian Act, R.S.C. 1985, c. I-5, as amended from time to time, and any group of Indian bands;<br />Requirements: The name of Registrant must be the Indian Band Name as registered with the Department of Indian and Northern Affairs, Canada.\"},{\"title\":\"Legal Representative\",\"value\":\"LGR\",\"description\":\"An executor, administrator or other legal representative of a Person listed as a Canadian Citizen or Permanent Resident of Canada.<br />Note: This registrant type is only available to a person or entity that has been appointed by legal process to represent an individual who is not competent to represent him or herself. It is not available to anyone who represents a Canadian or foreign corporation in any capacity.<br />Requirements: The Registrant's name must be the full legal name of the Canadian Citizen or Permanent Resident of Canada who is being represented as it would appear on a passport, driver's license or other government identification document. This must be followed by the full legal name and capacity of at least one of the official representatives. The representative should be identified as the administrative contact for these registrations.\"},{\"title\":\"Official Mark\",\"value\":\"OMK\",\"description\":\"A Person which does not meet the requirements for any other Registrant Type, but which is a Person intended to be protected by Subsection 9(1) of the Trade-Marks Act (Canada) at whose request the Registrar of Trade-marks has published notice of adoption of any badge, crest, emblem, official mark or other mark pursuant to Subsection 9(1), but in this case such permission is limited to a request to register a .ca domain name consisting of or including the exact word component of such badge, crest, emblem, official mark or other mark in respect of which such Person requested publications.<br />Notes: This registrant type is only intended for Registrants which do not meet the requirements associated with any other registrant type but which have an Official Mark registered in Canada. The domain name must include the official mark (eg. If the official mark is WIPO, the registrant can register wipo.ca but not intellectual-property.ca)<br />Requirements: The Registrant's name must be the complete official name of the entity holding the domain name registration without any abbreviations. (A common abbreviation may follow the complete name in parentheses.) The registration number of the official mark must follow the Registrant Name.\"},{\"title\":\"The Queen\",\"value\":\"MAJ\",\"description\":\"Her Majesty Queen Elizabeth the Second and her successors. Requirements: The Registrant's name must be that of Her Majesty the Queen or, after a succession, the name of her successor.\"}]},{\"name\":\"cira_whois_display\",\"description\":\"Hide registrant data in CIRA WHOIS\",\"child\":true,\"required\":false,\"application\":\"2\",\"user_defined\":false,\"options\":[{\"title\":\"No\",\"value\":\"FULL\",\"description\":\"Do not hide the registrant contact information in CIRA WHOIS.\"},{\"title\":\"Yes\",\"value\":\"PRIVATE\",\"description\":\"Hide the registrant contact information in Cira WHOIS (only available to individuals).\"}]},{\"name\":\"cira_language\",\"description\":\"The contact's preferred language for communication\",\"child\":false,\"required\":true,\"application\":\"2\",\"user_defined\":false,\"options\":[{\"title\":\"English\",\"value\":\"en\",\"description\":\"Use English for Registry to Registrant communication\"},{\"title\":\"French\",\"value\":\"fr\",\"description\":\"Use French for Registry to Registrant communication\"}]},{\"name\":\"cira_agreement_version\",\"description\":\"Version of the CIRA Registrant Agreement displayed and agreed to by the Registrant on the Registrar website\",\"child\":false,\"required\":true,\"application\":\"2\",\"user_defined\":false,\"options\":[{\"title\":\"2.0\",\"value\":\"2.0\",\"description\":\"Current Version of Registrant Agreement\"}]},{\"name\":\"cira_agreement_value\",\"description\":\"Registrant has agreed to CIRA's Registrant Agreement\",\"child\":false,\"required\":true,\"application\":\"2\",\"user_defined\":false,\"options\":[{\"title\":\"No\",\"value\":\"N\",\"description\":\"\\\"You have read, understood and agree to the terms and conditions of the Registrant\\nAgreement, and that CIRA may, from time to time and at its discretion, amend any or all of\\nthe terms and conditions of the Registrant Agreement, as CIRA deems appropriate, by\\nposting a notice of the changes on the CIRA website and by sending a notice of any\\nmaterial changes to Registrant.\\\"\\n\\n\\\"You meet all the requirements of the Registrant Agreement to be a Registrant, to apply for\\nthe registration of a Domain Name Registration, and to hold and maintain a Domain Name\\nRegistration, including without limitation CIRA's Canadian Presence Requirements for\\nRegistrants, at: www.cira.ca/assets/Documents/Legal/Registrants/CPR.pdf.\\\"\\n\\n\\\"CIRA will collect, use and disclose your personal information, as set out in CIRA's\\nPrivacy Policy, at: www.cira.ca/assets/Documents/Legal/Registrants/privacy.pdf.\\\"\"},{\"title\":\"Yes\",\"value\":\"Y\",\"description\":\"\\\"You have read, understood and agree to the terms and conditions of the Registrant\\nAgreement, and that CIRA may, from time to time and at its discretion, amend any or all of\\nthe terms and conditions of the Registrant Agreement, as CIRA deems appropriate, by\\nposting a notice of the changes on the CIRA website and by sending a notice of any\\nmaterial changes to Registrant.\\\"\\n\\n\\\"You meet all the requirements of the Registrant Agreement to be a Registrant, to apply for\\nthe registration of a Domain Name Registration, and to hold and maintain a Domain Name\\nRegistration, including without limitation CIRA's Canadian Presence Requirements for\\nRegistrants, at: www.cira.ca/assets/Documents/Legal/Registrants/CPR.pdf.\\\"\\n\\n\\\"CIRA will collect, use and disclose your personal information, as set out in CIRA's\\nPrivacy Policy, at: www.cira.ca/assets/Documents/Legal/Registrants/privacy.pdf.\\\"\"}]}]"
42
+ http_version: "1.1"
@@ -0,0 +1,42 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/extended_attributes/com.json
6
+ body:
7
+ headers:
8
+ authorization:
9
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
10
+ response: !ruby/struct:VCR::Response
11
+ status: !ruby/struct:VCR::ResponseStatus
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ x-ua-compatible:
16
+ - IE=Edge,chrome=1
17
+ access-control-allow-headers:
18
+ - Authorization
19
+ x-dnsimple-api-version:
20
+ - 1.0.0
21
+ etag:
22
+ - "\"d751713988987e9331980363e24189ce\""
23
+ access-control-allow-methods:
24
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
25
+ access-control-allow-origin:
26
+ - "*"
27
+ content-type:
28
+ - application/json; charset=utf-8
29
+ x-runtime:
30
+ - "0.997032"
31
+ date:
32
+ - Sun, 22 May 2011 20:54:37 GMT
33
+ server:
34
+ - nginx/1.0.2
35
+ cache-control:
36
+ - max-age=0, private, must-revalidate
37
+ status:
38
+ - 200 OK
39
+ transfer-encoding:
40
+ - chunked
41
+ body: "[]"
42
+ http_version: "1.1"
@@ -0,0 +1,361 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/testdomain.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,chrome=1
19
+ access-control-allow-headers:
20
+ - Authorization
21
+ x-dnsimple-api-version:
22
+ - 1.0.0
23
+ etag:
24
+ - "\"ed7071e1643f24d485731425afd72130\""
25
+ access-control-allow-methods:
26
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
27
+ access-control-allow-origin:
28
+ - "*"
29
+ content-type:
30
+ - application/json; charset=utf-8
31
+ x-runtime:
32
+ - "0.025032"
33
+ date:
34
+ - Sun, 22 May 2011 21:01:33 GMT
35
+ server:
36
+ - nginx/1.0.2
37
+ set-cookie:
38
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlYTkzYWQzN2Y3NDZiNjUzNWVjNGJmNDg3MjY2ZTgzZTdJIg5yZXR1cm5fdG8GOwBGIhwvZG9tYWlucy90ZXN0ZG9tYWluLmNvbUkiFXVzZXJfY3JlZGVudGlhbHMGOwBGSSIBgDhjN2RlMjhiNDYyZjRhYjUzMzEwMzVkNWIzZTNkNGRlNWMyNDQ1NTU1NjNiMGEzOTE1YWM4OTgyZDlmMGFkYzRiNGI4OTA1MzVkZDJjNjA0MjI0NTM1NGE5NTRiOGNkNzczYjE3N2Q3ODA0OGU0ZTk4OGQ1Y2MzNDYwZTBhOTNmBjsAVEkiGHVzZXJfY3JlZGVudGlhbHNfaWQGOwBGaQc%3D--95feb573fa48a5502548d137dc63010109b2c18d; path=/; HttpOnly
39
+ cache-control:
40
+ - max-age=0, private, must-revalidate
41
+ status:
42
+ - 200 OK
43
+ transfer-encoding:
44
+ - chunked
45
+ body: "{\"domain\":{\"created_at\":\"2011-05-22T21:01:03Z\",\"expires_at\":null,\"id\":155,\"lockable\":true,\"name\":\"testdomain.com\",\"name_server_status\":\"unknown\",\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"updated_at\":\"2011-05-22T21:01:07Z\",\"user_id\":2,\"uses_external_name_servers\":null,\"record_count\":0}}"
46
+ http_version: "1.1"
47
+ - !ruby/struct:VCR::HTTPInteraction
48
+ request: !ruby/struct:VCR::Request
49
+ method: :post
50
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/155/records?record[content]=4.5.6.7&record[ttl]=3600&record[prio]=&record[name]=&record[record_type]=A
51
+ body:
52
+ headers:
53
+ accept:
54
+ - application/json
55
+ authorization:
56
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
57
+ response: !ruby/struct:VCR::Response
58
+ status: !ruby/struct:VCR::ResponseStatus
59
+ code: 201
60
+ message: Created
61
+ headers:
62
+ x-ua-compatible:
63
+ - IE=Edge,chrome=1
64
+ access-control-allow-headers:
65
+ - Authorization
66
+ x-dnsimple-api-version:
67
+ - 1.0.0
68
+ location:
69
+ - /domains/155/records/197
70
+ access-control-allow-methods:
71
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
72
+ access-control-allow-origin:
73
+ - "*"
74
+ content-type:
75
+ - application/json; charset=utf-8
76
+ x-runtime:
77
+ - "0.133319"
78
+ date:
79
+ - Sun, 22 May 2011 21:01:34 GMT
80
+ server:
81
+ - nginx/1.0.2
82
+ set-cookie:
83
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMTcxMmQyM2Q4YzdhN2I5MTIyNzllZWUyY2Q4Mjk5MDhJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA4YzdkZTI4YjQ2MmY0YWI1MzMxMDM1ZDViM2UzZDRkZTVjMjQ0NTU1NTYzYjBhMzkxNWFjODk4MmQ5ZjBhZGM0YjRiODkwNTM1ZGQyYzYwNDIyNDUzNTRhOTU0YjhjZDc3M2IxNzdkNzgwNDhlNGU5ODhkNWNjMzQ2MGUwYTkzZgY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkH--071aa967b290fb21d17aac723b6572cc29e332c6; path=/; HttpOnly
84
+ cache-control:
85
+ - no-cache
86
+ status:
87
+ - 201 Created
88
+ transfer-encoding:
89
+ - chunked
90
+ body: "{\"record\":{\"content\":\"4.5.6.7\",\"created_at\":\"2011-05-22T21:01:34Z\",\"domain_id\":155,\"domain_service_id\":null,\"id\":197,\"name\":\"\",\"pdns_identifier\":null,\"prio\":null,\"record_type\":\"A\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-05-22T21:01:34Z\"}}"
91
+ http_version: "1.1"
92
+ - !ruby/struct:VCR::HTTPInteraction
93
+ request: !ruby/struct:VCR::Request
94
+ method: :get
95
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/testdomain.com
96
+ body:
97
+ headers:
98
+ accept:
99
+ - application/json
100
+ authorization:
101
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
102
+ response: !ruby/struct:VCR::Response
103
+ status: !ruby/struct:VCR::ResponseStatus
104
+ code: 200
105
+ message: OK
106
+ headers:
107
+ x-ua-compatible:
108
+ - IE=Edge,chrome=1
109
+ access-control-allow-headers:
110
+ - Authorization
111
+ x-dnsimple-api-version:
112
+ - 1.0.0
113
+ etag:
114
+ - "\"5648c94e23539afe7ce706dbbed8365c\""
115
+ access-control-allow-methods:
116
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
117
+ access-control-allow-origin:
118
+ - "*"
119
+ content-type:
120
+ - application/json; charset=utf-8
121
+ x-runtime:
122
+ - "0.017271"
123
+ date:
124
+ - Sun, 22 May 2011 21:01:34 GMT
125
+ server:
126
+ - nginx/1.0.2
127
+ set-cookie:
128
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlMjY5YzczYjczMTQyOWZiNDZjZDg4MTYwZGFjMjgzNThJIg5yZXR1cm5fdG8GOwBGIhwvZG9tYWlucy90ZXN0ZG9tYWluLmNvbUkiFXVzZXJfY3JlZGVudGlhbHMGOwBGSSIBgDhjN2RlMjhiNDYyZjRhYjUzMzEwMzVkNWIzZTNkNGRlNWMyNDQ1NTU1NjNiMGEzOTE1YWM4OTgyZDlmMGFkYzRiNGI4OTA1MzVkZDJjNjA0MjI0NTM1NGE5NTRiOGNkNzczYjE3N2Q3ODA0OGU0ZTk4OGQ1Y2MzNDYwZTBhOTNmBjsAVEkiGHVzZXJfY3JlZGVudGlhbHNfaWQGOwBGaQc%3D--782a0e3ffccc6d3a00494fe6cf0687eafcf3a26b; path=/; HttpOnly
129
+ cache-control:
130
+ - max-age=0, private, must-revalidate
131
+ status:
132
+ - 200 OK
133
+ transfer-encoding:
134
+ - chunked
135
+ body: "{\"domain\":{\"created_at\":\"2011-05-22T21:01:03Z\",\"expires_at\":null,\"id\":155,\"lockable\":true,\"name\":\"testdomain.com\",\"name_server_status\":\"unknown\",\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"updated_at\":\"2011-05-22T21:01:34Z\",\"user_id\":2,\"uses_external_name_servers\":null,\"record_count\":1}}"
136
+ http_version: "1.1"
137
+ - !ruby/struct:VCR::HTTPInteraction
138
+ request: !ruby/struct:VCR::Request
139
+ method: :post
140
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/155/records?record[content]=testdomain.com&record[ttl]=3600&record[prio]=&record[name]=www&record[record_type]=CNAME
141
+ body:
142
+ headers:
143
+ accept:
144
+ - application/json
145
+ authorization:
146
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
147
+ response: !ruby/struct:VCR::Response
148
+ status: !ruby/struct:VCR::ResponseStatus
149
+ code: 201
150
+ message: Created
151
+ headers:
152
+ x-ua-compatible:
153
+ - IE=Edge,chrome=1
154
+ access-control-allow-headers:
155
+ - Authorization
156
+ x-dnsimple-api-version:
157
+ - 1.0.0
158
+ location:
159
+ - /domains/155/records/198
160
+ access-control-allow-methods:
161
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
162
+ access-control-allow-origin:
163
+ - "*"
164
+ content-type:
165
+ - application/json; charset=utf-8
166
+ x-runtime:
167
+ - "0.035818"
168
+ date:
169
+ - Sun, 22 May 2011 21:01:35 GMT
170
+ server:
171
+ - nginx/1.0.2
172
+ set-cookie:
173
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMmE5Yzc0NjYyYzRhYzMxZGNlYjNjZWMxN2JhNmMyOTVJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA4YzdkZTI4YjQ2MmY0YWI1MzMxMDM1ZDViM2UzZDRkZTVjMjQ0NTU1NTYzYjBhMzkxNWFjODk4MmQ5ZjBhZGM0YjRiODkwNTM1ZGQyYzYwNDIyNDUzNTRhOTU0YjhjZDc3M2IxNzdkNzgwNDhlNGU5ODhkNWNjMzQ2MGUwYTkzZgY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkH--e022b693ece8f139043ce61914fede3a394f3c6c; path=/; HttpOnly
174
+ cache-control:
175
+ - no-cache
176
+ status:
177
+ - 201 Created
178
+ transfer-encoding:
179
+ - chunked
180
+ body: "{\"record\":{\"content\":\"testdomain.com\",\"created_at\":\"2011-05-22T21:01:35Z\",\"domain_id\":155,\"domain_service_id\":null,\"id\":198,\"name\":\"www\",\"pdns_identifier\":null,\"prio\":null,\"record_type\":\"CNAME\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-05-22T21:01:35Z\"}}"
181
+ http_version: "1.1"
182
+ - !ruby/struct:VCR::HTTPInteraction
183
+ request: !ruby/struct:VCR::Request
184
+ method: :get
185
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/testdomain.com
186
+ body:
187
+ headers:
188
+ accept:
189
+ - application/json
190
+ authorization:
191
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
192
+ response: !ruby/struct:VCR::Response
193
+ status: !ruby/struct:VCR::ResponseStatus
194
+ code: 200
195
+ message: OK
196
+ headers:
197
+ x-ua-compatible:
198
+ - IE=Edge,chrome=1
199
+ access-control-allow-headers:
200
+ - Authorization
201
+ x-dnsimple-api-version:
202
+ - 1.0.0
203
+ etag:
204
+ - "\"36286e8d7684beea7dda8bf7592faf9e\""
205
+ access-control-allow-methods:
206
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
207
+ access-control-allow-origin:
208
+ - "*"
209
+ content-type:
210
+ - application/json; charset=utf-8
211
+ x-runtime:
212
+ - "0.015917"
213
+ date:
214
+ - Sun, 22 May 2011 21:01:35 GMT
215
+ server:
216
+ - nginx/1.0.2
217
+ set-cookie:
218
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlOGExM2Y4Y2MxY2IzNjEyNmRhNTQ0ZDI1YmJmZTU2ZDdJIg5yZXR1cm5fdG8GOwBGIhwvZG9tYWlucy90ZXN0ZG9tYWluLmNvbUkiFXVzZXJfY3JlZGVudGlhbHMGOwBGSSIBgDhjN2RlMjhiNDYyZjRhYjUzMzEwMzVkNWIzZTNkNGRlNWMyNDQ1NTU1NjNiMGEzOTE1YWM4OTgyZDlmMGFkYzRiNGI4OTA1MzVkZDJjNjA0MjI0NTM1NGE5NTRiOGNkNzczYjE3N2Q3ODA0OGU0ZTk4OGQ1Y2MzNDYwZTBhOTNmBjsAVEkiGHVzZXJfY3JlZGVudGlhbHNfaWQGOwBGaQc%3D--85536da81e8a5e5eae7a92cc897ece97c8318ae0; path=/; HttpOnly
219
+ cache-control:
220
+ - max-age=0, private, must-revalidate
221
+ status:
222
+ - 200 OK
223
+ transfer-encoding:
224
+ - chunked
225
+ body: "{\"domain\":{\"created_at\":\"2011-05-22T21:01:03Z\",\"expires_at\":null,\"id\":155,\"lockable\":true,\"name\":\"testdomain.com\",\"name_server_status\":\"unknown\",\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"updated_at\":\"2011-05-22T21:01:35Z\",\"user_id\":2,\"uses_external_name_servers\":null,\"record_count\":2}}"
226
+ http_version: "1.1"
227
+ - !ruby/struct:VCR::HTTPInteraction
228
+ request: !ruby/struct:VCR::Request
229
+ method: :post
230
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/155/records?record[content]=mail.foo.com&record[ttl]=3600&record[prio]=10&record[name]=&record[record_type]=MX
231
+ body:
232
+ headers:
233
+ accept:
234
+ - application/json
235
+ authorization:
236
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
237
+ response: !ruby/struct:VCR::Response
238
+ status: !ruby/struct:VCR::ResponseStatus
239
+ code: 201
240
+ message: Created
241
+ headers:
242
+ x-ua-compatible:
243
+ - IE=Edge,chrome=1
244
+ access-control-allow-headers:
245
+ - Authorization
246
+ x-dnsimple-api-version:
247
+ - 1.0.0
248
+ location:
249
+ - /domains/155/records/199
250
+ access-control-allow-methods:
251
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
252
+ access-control-allow-origin:
253
+ - "*"
254
+ content-type:
255
+ - application/json; charset=utf-8
256
+ x-runtime:
257
+ - "0.033714"
258
+ date:
259
+ - Sun, 22 May 2011 21:01:36 GMT
260
+ server:
261
+ - nginx/1.0.2
262
+ set-cookie:
263
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlZWQzYWQwYTIwYjk4OGZiMTQ4YzM2ZDAzYjQyYjI5OTdJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA4YzdkZTI4YjQ2MmY0YWI1MzMxMDM1ZDViM2UzZDRkZTVjMjQ0NTU1NTYzYjBhMzkxNWFjODk4MmQ5ZjBhZGM0YjRiODkwNTM1ZGQyYzYwNDIyNDUzNTRhOTU0YjhjZDc3M2IxNzdkNzgwNDhlNGU5ODhkNWNjMzQ2MGUwYTkzZgY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkH--3e350545b7d70202cc857d867a2521076b167590; path=/; HttpOnly
264
+ cache-control:
265
+ - no-cache
266
+ status:
267
+ - 201 Created
268
+ transfer-encoding:
269
+ - chunked
270
+ body: "{\"record\":{\"content\":\"mail.foo.com\",\"created_at\":\"2011-05-22T21:01:36Z\",\"domain_id\":155,\"domain_service_id\":null,\"id\":199,\"name\":\"\",\"pdns_identifier\":null,\"prio\":10,\"record_type\":\"MX\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-05-22T21:01:36Z\"}}"
271
+ http_version: "1.1"
272
+ - !ruby/struct:VCR::HTTPInteraction
273
+ request: !ruby/struct:VCR::Request
274
+ method: :get
275
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/testdomain.com
276
+ body:
277
+ headers:
278
+ accept:
279
+ - application/json
280
+ authorization:
281
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
282
+ response: !ruby/struct:VCR::Response
283
+ status: !ruby/struct:VCR::ResponseStatus
284
+ code: 200
285
+ message: OK
286
+ headers:
287
+ x-ua-compatible:
288
+ - IE=Edge,chrome=1
289
+ access-control-allow-headers:
290
+ - Authorization
291
+ x-dnsimple-api-version:
292
+ - 1.0.0
293
+ etag:
294
+ - "\"924dace3b361563617f915c6260a0057\""
295
+ access-control-allow-methods:
296
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
297
+ access-control-allow-origin:
298
+ - "*"
299
+ content-type:
300
+ - application/json; charset=utf-8
301
+ x-runtime:
302
+ - "0.019064"
303
+ date:
304
+ - Sun, 22 May 2011 21:01:37 GMT
305
+ server:
306
+ - nginx/1.0.2
307
+ set-cookie:
308
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlMTU2YTgwMDA3OGRjY2E2ODE1ZTZjYTc4OTY4YmY5ZjFJIg5yZXR1cm5fdG8GOwBGIhwvZG9tYWlucy90ZXN0ZG9tYWluLmNvbUkiFXVzZXJfY3JlZGVudGlhbHMGOwBGSSIBgDhjN2RlMjhiNDYyZjRhYjUzMzEwMzVkNWIzZTNkNGRlNWMyNDQ1NTU1NjNiMGEzOTE1YWM4OTgyZDlmMGFkYzRiNGI4OTA1MzVkZDJjNjA0MjI0NTM1NGE5NTRiOGNkNzczYjE3N2Q3ODA0OGU0ZTk4OGQ1Y2MzNDYwZTBhOTNmBjsAVEkiGHVzZXJfY3JlZGVudGlhbHNfaWQGOwBGaQc%3D--5a69f10d15f9525c5840444f2738cf8fbec5c6de; path=/; HttpOnly
309
+ cache-control:
310
+ - max-age=0, private, must-revalidate
311
+ status:
312
+ - 200 OK
313
+ transfer-encoding:
314
+ - chunked
315
+ body: "{\"domain\":{\"created_at\":\"2011-05-22T21:01:03Z\",\"expires_at\":null,\"id\":155,\"lockable\":true,\"name\":\"testdomain.com\",\"name_server_status\":\"unknown\",\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"updated_at\":\"2011-05-22T21:01:36Z\",\"user_id\":2,\"uses_external_name_servers\":null,\"record_count\":3}}"
316
+ http_version: "1.1"
317
+ - !ruby/struct:VCR::HTTPInteraction
318
+ request: !ruby/struct:VCR::Request
319
+ method: :get
320
+ uri: https://anthonyeden%40gmail.com:letmein@test.dnsimple.com:443/domains/155/records
321
+ body:
322
+ headers:
323
+ accept:
324
+ - application/json
325
+ authorization:
326
+ - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
327
+ response: !ruby/struct:VCR::Response
328
+ status: !ruby/struct:VCR::ResponseStatus
329
+ code: 200
330
+ message: OK
331
+ headers:
332
+ x-ua-compatible:
333
+ - IE=Edge,chrome=1
334
+ access-control-allow-headers:
335
+ - Authorization
336
+ x-dnsimple-api-version:
337
+ - 1.0.0
338
+ etag:
339
+ - "\"60be600e2c0da8141d4bc007c38f2234\""
340
+ access-control-allow-methods:
341
+ - "[\"GET\", \"POST\", \"PUT\", \"DELETE\"]"
342
+ access-control-allow-origin:
343
+ - "*"
344
+ content-type:
345
+ - application/json; charset=utf-8
346
+ x-runtime:
347
+ - "0.018110"
348
+ date:
349
+ - Sun, 22 May 2011 21:01:37 GMT
350
+ server:
351
+ - nginx/1.0.2
352
+ set-cookie:
353
+ - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlM2M1MjdiMjY0N2VmYWFhNzk4ODkwYjBhNjkyMjcxOThJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA4YzdkZTI4YjQ2MmY0YWI1MzMxMDM1ZDViM2UzZDRkZTVjMjQ0NTU1NTYzYjBhMzkxNWFjODk4MmQ5ZjBhZGM0YjRiODkwNTM1ZGQyYzYwNDIyNDUzNTRhOTU0YjhjZDc3M2IxNzdkNzgwNDhlNGU5ODhkNWNjMzQ2MGUwYTkzZgY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkH--27cb90c5458487c6cecf59e2c07a2a712d9780a2; path=/; HttpOnly
354
+ cache-control:
355
+ - max-age=0, private, must-revalidate
356
+ status:
357
+ - 200 OK
358
+ transfer-encoding:
359
+ - chunked
360
+ body: "[{\"record\":{\"content\":\"4.5.6.7\",\"created_at\":\"2011-05-22T21:01:34Z\",\"domain_id\":155,\"domain_service_id\":null,\"id\":197,\"name\":\"\",\"pdns_identifier\":null,\"prio\":null,\"record_type\":\"A\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-05-22T21:01:34Z\"}},{\"record\":{\"content\":\"testdomain.com\",\"created_at\":\"2011-05-22T21:01:35Z\",\"domain_id\":155,\"domain_service_id\":null,\"id\":198,\"name\":\"www\",\"pdns_identifier\":null,\"prio\":null,\"record_type\":\"CNAME\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-05-22T21:01:35Z\"}},{\"record\":{\"content\":\"mail.foo.com\",\"created_at\":\"2011-05-22T21:01:36Z\",\"domain_id\":155,\"domain_service_id\":null,\"id\":199,\"name\":\"\",\"pdns_identifier\":null,\"prio\":10,\"record_type\":\"MX\",\"special_type\":null,\"ttl\":3600,\"updated_at\":\"2011-05-22T21:01:36Z\"}}]"
361
+ http_version: "1.1"