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,51 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/39
6
- body:
7
- headers:
8
- accept:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/39
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
- - "\"24f073eea7b01a97c81f7582b82bed62\""
25
- access-control-allow-methods:
25
+ Etag:
26
+ - ! '"24f073eea7b01a97c81f7582b82bed62"'
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:07:03 GMT
33
- server:
35
+ Server:
34
36
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- x-runtime:
36
- - "0.714568"
37
- content-length:
38
- - "412"
39
- set-cookie:
40
- - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlYTAzNTZkNWM4ODA0NWJiNDEzNDc5M2NhZWZlNWI3NzNJIg5yZXR1cm5fdG8GOwBGSSIQL2RvbWFpbnMvMzkGOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--bafce1f4bc906d8a8f284b6ab762ab40d51c3bf2; path=/; HttpOnly
41
- cache-control:
37
+ X-Runtime:
38
+ - '0.714568'
39
+ Content-Length:
40
+ - '412'
41
+ Set-Cookie:
42
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlYTAzNTZkNWM4ODA0NWJiNDEzNDc5M2NhZWZlNWI3NzNJIg5yZXR1cm5fdG8GOwBGSSIQL2RvbWFpbnMvMzkGOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--bafce1f4bc906d8a8f284b6ab762ab40d51c3bf2;
43
+ path=/; HttpOnly
44
+ Cache-Control:
42
45
  - max-age=0, private, must-revalidate
43
- body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:05:07Z\",\"expires_at\":null,\"id\":39,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":null,\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"state\":\"hosted\",\"updated_at\":\"2011-11-11T20:05:07Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
44
- http_version: "1.1"
46
+ body:
47
+ encoding: UTF-8
48
+ string: ! '{"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}}'
49
+ http_version: '1.1'
50
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
51
+ recorded_with: VCR 2.2.5
@@ -1,44 +1,51 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com
6
- body:
7
- headers:
8
- accept:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
- - "\"24f073eea7b01a97c81f7582b82bed62\""
25
- access-control-allow-methods:
25
+ Etag:
26
+ - ! '"24f073eea7b01a97c81f7582b82bed62"'
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:07:04 GMT
33
- server:
35
+ Server:
34
36
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- x-runtime:
36
- - "0.750983"
37
- content-length:
38
- - "412"
39
- set-cookie:
40
- - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlYWE0MWY3YTU3MGUwYzI4Njg5MjY4M2EzOTI1NGIxZTNJIg5yZXR1cm5fdG8GOwBGSSIZL2RvbWFpbnMvZXhhbXBsZS5jb20GOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--bf2ced8c665b5c9e93ec8a2e94d0db86a960235c; path=/; HttpOnly
41
- cache-control:
37
+ X-Runtime:
38
+ - '0.750983'
39
+ Content-Length:
40
+ - '412'
41
+ Set-Cookie:
42
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlYWE0MWY3YTU3MGUwYzI4Njg5MjY4M2EzOTI1NGIxZTNJIg5yZXR1cm5fdG8GOwBGSSIZL2RvbWFpbnMvZXhhbXBsZS5jb20GOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--bf2ced8c665b5c9e93ec8a2e94d0db86a960235c;
43
+ path=/; HttpOnly
44
+ Cache-Control:
42
45
  - max-age=0, private, must-revalidate
43
- body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:05:07Z\",\"expires_at\":null,\"id\":39,\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"example.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":null,\"real_time\":true,\"registrant_id\":null,\"registration_status\":\"hosted\",\"state\":\"hosted\",\"updated_at\":\"2011-11-11T20:05:07Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
44
- http_version: "1.1"
46
+ body:
47
+ encoding: UTF-8
48
+ string: ! '{"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}}'
49
+ http_version: '1.1'
50
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
51
+ recorded_with: VCR 2.2.5
@@ -1,44 +1,52 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domain_registrations
6
- body: domain[name]=dnsimple-example-1321042288.com&contact[last_name]=Smith&contact[state_province]=FL&contact[phone]=321%20555%201212&contact[address1]=123%20SW%201st%20Street&contact[city]=Miami&contact[country]=US&contact[first_name]=John&contact[postal_code]=33143
7
- headers:
8
- accept:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domain_registrations
6
+ body:
7
+ encoding: UTF-8
8
+ string: domain[name]=dnsimple-example-1321042288.com&contact[last_name]=Smith&contact[state_province]=FL&contact[phone]=321%20555%201212&contact[address1]=123%20SW%201st%20Street&contact[city]=Miami&contact[country]=US&contact[first_name]=John&contact[postal_code]=33143
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/dnsimple-example-1321042288.com
25
- access-control-allow-methods:
25
+ Location:
26
+ - https://test.dnsimple.com/domains/dnsimple-example-1321042288.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:12:00 GMT
33
- server:
35
+ Server:
34
36
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- x-runtime:
36
- - "32.052851"
37
- content-length:
38
- - "531"
39
- set-cookie:
40
- - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlMmIxNzg4ODcxYmM0ODgwMWY5ZDcxYTUxM2Y2NThhZTdJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkGSSIJbmFtZQY7AEZJIiRkbnNpbXBsZS1leGFtcGxlLTEzMjEwNDIyODguY29tBjsAVA%3D%3D--e314feed5f06252ed43bc76f7a38dcf564468e4f; path=/; HttpOnly
41
- cache-control:
37
+ X-Runtime:
38
+ - '32.052851'
39
+ Content-Length:
40
+ - '531'
41
+ Set-Cookie:
42
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlMmIxNzg4ODcxYmM0ODgwMWY5ZDcxYTUxM2Y2NThhZTdJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkGSSIJbmFtZQY7AEZJIiRkbnNpbXBsZS1leGFtcGxlLTEzMjEwNDIyODguY29tBjsAVA%3D%3D--e314feed5f06252ed43bc76f7a38dcf564468e4f;
43
+ path=/; HttpOnly
44
+ Cache-Control:
42
45
  - no-cache
43
- body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:11:34Z\",\"expires_at\":\"11/11/2012 12:11:00 PM\",\"id\":41,\"last_enom_order_id\":\"157773080\",\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"dnsimple-example-1321042288.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":\"2012-11-11T12:11:00Z\",\"pdns_identifier\":null,\"real_time\":true,\"registrant_id\":3,\"registration_status\":\"registered\",\"state\":\"registered\",\"updated_at\":\"2011-11-11T20:12:00Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
44
- http_version: "1.1"
46
+ body:
47
+ encoding: UTF-8
48
+ string: ! '{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:11:34Z","expires_at":"11/11/2012
49
+ 12:11:00 PM","id":41,"last_enom_order_id":"157773080","last_name_server_status_check":null,"lockable":true,"name":"dnsimple-example-1321042288.com","name_server_status":"unknown","parsed_expiration_date":"2012-11-11T12:11:00Z","pdns_identifier":null,"real_time":true,"registrant_id":3,"registration_status":"registered","state":"registered","updated_at":"2011-11-11T20:12:00Z","user_id":1,"uses_external_name_servers":null,"record_count":0}}'
50
+ http_version: '1.1'
51
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
52
+ recorded_with: VCR 2.2.5
@@ -1,44 +1,52 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domain_registrations
6
- body: domain[registrant_id]=1&domain[name]=dnsimple-example-1321042237.com
7
- headers:
8
- accept:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domain_registrations
6
+ body:
7
+ encoding: UTF-8
8
+ string: domain[registrant_id]=1&domain[name]=dnsimple-example-1321042237.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/dnsimple-example-1321042237.com
25
- access-control-allow-methods:
25
+ Location:
26
+ - https://test.dnsimple.com/domains/dnsimple-example-1321042237.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:11:09 GMT
33
- server:
35
+ Server:
34
36
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- x-runtime:
36
- - "31.776131"
37
- content-length:
38
- - "531"
39
- set-cookie:
40
- - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlMzA0NzU5OThhM2Q5MmYwMGM4MGQzNzkxNWQ3ZThhNzFJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkGSSIJbmFtZQY7AEZJIiRkbnNpbXBsZS1leGFtcGxlLTEzMjEwNDIyMzcuY29tBjsAVA%3D%3D--557950d7421074c1db19f6b637c603cd90a185ec; path=/; HttpOnly
41
- cache-control:
37
+ X-Runtime:
38
+ - '31.776131'
39
+ Content-Length:
40
+ - '531'
41
+ Set-Cookie:
42
+ - _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlMzA0NzU5OThhM2Q5MmYwMGM4MGQzNzkxNWQ3ZThhNzFJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkGSSIJbmFtZQY7AEZJIiRkbnNpbXBsZS1leGFtcGxlLTEzMjEwNDIyMzcuY29tBjsAVA%3D%3D--557950d7421074c1db19f6b637c603cd90a185ec;
43
+ path=/; HttpOnly
44
+ Cache-Control:
42
45
  - no-cache
43
- body: "{\"domain\":{\"auto_renew\":null,\"created_at\":\"2011-11-11T20:10:46Z\",\"expires_at\":\"11/11/2012 12:10:00 PM\",\"id\":40,\"last_enom_order_id\":\"157773079\",\"last_name_server_status_check\":null,\"lockable\":true,\"name\":\"dnsimple-example-1321042237.com\",\"name_server_status\":\"unknown\",\"parsed_expiration_date\":\"2012-11-11T12:10:00Z\",\"pdns_identifier\":null,\"real_time\":true,\"registrant_id\":1,\"registration_status\":\"registered\",\"state\":\"registered\",\"updated_at\":\"2011-11-11T20:11:09Z\",\"user_id\":1,\"uses_external_name_servers\":null,\"record_count\":0}}"
44
- http_version: "1.1"
46
+ body:
47
+ encoding: UTF-8
48
+ string: ! '{"domain":{"auto_renew":null,"created_at":"2011-11-11T20:10:46Z","expires_at":"11/11/2012
49
+ 12:10:00 PM","id":40,"last_enom_order_id":"157773079","last_name_server_status_check":null,"lockable":true,"name":"dnsimple-example-1321042237.com","name_server_status":"unknown","parsed_expiration_date":"2012-11-11T12:10:00Z","pdns_identifier":null,"real_time":true,"registrant_id":1,"registration_status":"registered","state":"registered","updated_at":"2011-11-11T20:11:09Z","user_id":1,"uses_external_name_servers":null,"record_count":0}}'
50
+ http_version: '1.1'
51
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
52
+ recorded_with: VCR 2.2.5
@@ -1,40 +1,273 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/extended_attributes/ca.json
6
- body:
7
- headers:
8
- authorization:
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/extended_attributes/ca
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
- - "\"b4b5d46d690d56a070c696851b300f22\""
23
- access-control-allow-methods:
23
+ Etag:
24
+ - ! '"b4b5d46d690d56a070c696851b300f22"'
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:29 GMT
31
- server:
33
+ Server:
32
34
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
33
- x-runtime:
34
- - "2.158712"
35
- content-length:
36
- - "18621"
37
- cache-control:
35
+ X-Runtime:
36
+ - '2.158712'
37
+ Content-Length:
38
+ - '18621'
39
+ Cache-Control:
38
40
  - max-age=0, private, must-revalidate
39
- 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.\\\"\"}]}]"
40
- http_version: "1.1"
41
+ body:
42
+ encoding: UTF-8
43
+ string: ! '[{"name":"cira_legal_type","description":"Legal type of registrant
44
+ contact","child":false,"required":true,"application":"2","user_defined":false,"options":[{"title":"Corporation","value":"CCO","description":"A
45
+ corporation under the laws of Canada or any province or territory of Canada,
46
+ Charities, Cooperative, Council.<br/>Requirements: Registrant name must be
47
+ the full legal name of the corporation and must be followed by the jurisdiction
48
+ of incorporation (eg. Canada, Ontario, NWT...), unless it is obvious from
49
+ the corporation''s name. Canadian Internet Registration Authority (Canada).
50
+ For Charities, the NFP should be included in the organization name. If this
51
+ is a not-for-profit organization, you are also required to submit the registration
52
+ number i.e.: 123456789 RR0001"},{"title":"Canadian Citizen","value":"CCT","description":"A
53
+ Canadian citizen of the age of majority under the laws of the province or
54
+ territory in Canada in which he or she resides or last resided.<br/>Requirements:
55
+ The Registrant''s name must be the full legal name of the Canadian Citizen
56
+ who will hold the domain name registration as the name would appear on a passport,
57
+ driver''s license or other identification document issued by a government.
58
+ The name can be followed by a space and \"o/a xxxx\" where \"o/a\" stands
59
+ for \"Operating As\" and \"xxxx\" can be any alpha-numeric string designated
60
+ by the applicant and subject to applicable rules and length restrictions (e.g.
61
+ \"John Doe o/a Doe Consulting Group\"). The name may also be followed by a
62
+ space and a degree granted to the registrant (eg. PhD.) Full legal names of
63
+ individuals may only consist of alphabetic characters and the special characters:
64
+ single quote mark(''), hyphen(-), period(.)."},{"title":"Canadian Resident","value":"RES","description":"A
65
+ permanent resident as defined in the Immigration and Refugee Protection Act
66
+ (Canada) S.C. 2001, c.27, as amended from time to time, who is \"ordinarily
67
+ resident\" (as defined below) in Canada and of the age of majority under the
68
+ laws of the province or territory in Canada in which he or she resides or
69
+ last resided. \"Ordinarily resident in Canada\" means an individual who resides
70
+ in Canada for more than 183 days in the twelve month period immediately preceding
71
+ the date of the applicable request for registration of the .ca domain name
72
+ or sub-domain name and in each twelve month period thereafter for the duration
73
+ of the domain name registration.<br/>Requirements: The Registrant''s name
74
+ must be the full legal name of the Permanent Resident who will hold the domain
75
+ name registration as the name would appear on a driver''s license or other
76
+ identification document issued by a government. The full legal name may be
77
+ followed by a space and \"o/a xxxx\" where \"o/a\" stands for \"Operating
78
+ As\" and \"xxxx\" can be any alpha-numeric string designated by the applicant
79
+ and subject to applicable rules and length restrictions (e.g. \"John Doe o/a
80
+ Doe Consulting Group\"). The name may also be followed by a space and a degree
81
+ granted to the registrant by a recognized degree granting institution or a
82
+ recognized professional designation which the registrant has the right to
83
+ use (eg. PhD, MD, DDS.) Full legal names of individuals may only consist of
84
+ alphabetic characters and the special characters: single quote mark(''), hyphen(-),
85
+ period(.)."},{"title":"Government Entity","value":"GOV","description":"Her
86
+ Majesty the Queen in right of Canada, a province or a territory; an agent
87
+ of Her Majesty the Queen in right of Canada, of a province or of a territory;
88
+ a federal, provincial or territorial Crown corporation, government agency
89
+ or government entity; or a regional, municipal or local area government.<br
90
+ />Requirements: The Registrant''s name must be the complete official name
91
+ of the entity that will hold the domain name registration, without any abbreviations.
92
+ (A common abbreviation may follow the official name in parentheses). If the
93
+ Registrant is not a government, the Registrant''s name must be followed by
94
+ the name of the jurisdiction (eg. Canada, province, territory, municipality,
95
+ etc) to which the Registrant is related."},{"title":"Educational","value":"EDU","description":"(i)
96
+ A university or college which is located in Canada and which is authorized
97
+ or recognized as a university or college under an Act of the legislature of
98
+ a province or territory of Canada; or<br />(ii) A college, post-secondary
99
+ school, vocational school, secondary school, pre-school or other school or
100
+ educational institution which is located in Canada and which is recognized
101
+ by the educational authorities of a province or territory of Canada or licensed
102
+ under or maintained by an Act of Parliament of Canada or of the legislature
103
+ of a province or territory of Canada.<br />Requirements: The Registrant''s
104
+ name must be the complete official name of the institution that will hold
105
+ the domain name registration, without any abbreviations. A common abbreviation
106
+ may follow the official name in parentheses. The Registrant name must be followed
107
+ by the jurisdiction (e.g. name of province, municipality) in which the institution
108
+ is accredited if not obvious from the Registrant''s name."},{"title":"Unincorporated
109
+ Association","value":"ASS","description":"This Registrant Type is principally
110
+ intended for religious congregations, social and sports clubs and community
111
+ groups, council (not registered) or society (not registered) which are based
112
+ and operating in Canada. An unincorporated organization, association or club:<br
113
+ />(i) At least 80% of whose members: (A) are ordinarily resident in Canada
114
+ (if such members are individuals); or (B) meet the requirements of any one
115
+ of the following Registrant Types: Corporation (Canada or Canadian province
116
+ or territory), Canadian citizen, Permanent Resident of Canada, Partnership
117
+ Registered in Canada, Trust established in Canada, Legal Representative of
118
+ a Canadian Citizen or Permanent Resident; and<br />(ii) At least 80% of whose
119
+ directors, officers, employees, managers, administrators or other representatives
120
+ are ordinarily resident in Canada.<br />Requirements: The Registrant''s name
121
+ must be the complete name of the association that will hold the domain name
122
+ registration, without any abbreviations. (A common abbreviation may follow
123
+ the complete name in parentheses)."},{"title":"Hospital","value":"HOP","description":"A
124
+ hospital which is located in Canada and which is licensed, authorized or approved
125
+ to operate as a hospital under an Act of the legislature of a province or
126
+ territory of Canada<br />Requirements: The Registrant''s name must be the
127
+ complete official name of the hospital that will hold the domain name registration,
128
+ without any abbreviations. (A common abbreviation may follow the complete
129
+ name in parentheses.) The Registrant''s name must be followed by the jurisdiction
130
+ (eg. name of province) which accredited the hospital if not obvious from the
131
+ Registrant''s name."},{"title":"Partnership","value":"PRT","description":"A
132
+ partnership, more than 66 2/3 per cent of whose partners meet the requirements
133
+ of one of the following Registrant Types: Corporation (Canada or Canadian
134
+ province or territory), Canadian citizen, Permanent Resident of Canada, Trust
135
+ established in Canada or a Legal Representative of a Canadian Citizen or Permanent
136
+ Resident, which is registered as a partnership under the laws of any province
137
+ or territory of Canada.<br />Requirements: The Registrant''s name must be
138
+ the registered name of the partnership that will hold the domain name registration.
139
+ The Registrant name must be followed by the jurisdiction of registration (eg.
140
+ Alberta) and the registration number."},{"title":"Trade-mark","value":"TDM","description":"A
141
+ Person which does not fall under any other registrant type, but which is the
142
+ owner of a trade-mark which is the subject of a registration under the Trade-marks
143
+ Act (Canada) R.S.C. 1985, c.T-13 as amended from time to time, but in this
144
+ case such permission is limited to a request to register a .ca domain name
145
+ consisting of or including the exact word component of that registered trade-mark.<br
146
+ />This Registrant Type is only intended for Registrants which do not meet
147
+ the requirements associated with any other registrant type but which have
148
+ a trade-mark registered in Canada. (Trade-marks subject of trade-mark applications
149
+ and trade-marks registered in other jurisdictions, such as the United States,
150
+ do not qualify.)<br />The domain name to be registered must include the trade-mark.
151
+ (eg. If the trade-mark is AVEA this type of registrant can register avea.ca
152
+ or aveaisus.ca but not xyz.ca)."},{"title":"Trade Union","value":"TRD","description":"A
153
+ trade union which is recognized by a labour board under the laws of Canada
154
+ or any province or territory of Canada and which has its head office in Canada.<br
155
+ />Requirements: The Registrant''s name must be the complete official name
156
+ of the trade union that will hold the domain name registration, without abbreviations.
157
+ (A common abbreviation may follow the official name in parentheses.) The Registrant
158
+ name must be followed by the jurisdiction in Canada which recognizes it (if
159
+ it is not obvious from the Registrant''s name.)"},{"title":"Political Party","value":"PLT","description":"A
160
+ political party registered under a relevant electoral law of Canada or any
161
+ province or territory of Canada<br />Requirements: The Registrant''s name
162
+ must be the complete official name of the political party holding the domain
163
+ name registration, without abbreviations. (A common abbreviation may follow
164
+ the official name in parentheses.) The Registrant name must also by followed
165
+ by the jurisdiction in Canada in which it is registered (if it is not obvious
166
+ from the official name)."},{"title":"Library, Archive or Museum","value":"LAM","description":"An
167
+ institution, whether or not incorporated, that:<br />(i) is located in Canada;
168
+ and<br />(ii) is not established or conducted for profit or does not form
169
+ part of, or is not administered or directly or indirectly controlled by, a
170
+ body that is established or conducted for profit in which is held and maintained
171
+ a collection of documents and other materials that is open to the public or
172
+ to researchers.<br />Requirements: The Registrant''s name must be the complete
173
+ legal name of the institution which will hold the domain name registration
174
+ without abbreviations. (A common abbreviation may follow the complete name
175
+ in parentheses.)"},{"title":"Trust","value":"TRS","description":"A trust established
176
+ and subsisting under the laws of a province or territory of Canada, more than
177
+ 66 2/3 % of whose trustees meet the requirements of one of the following Registrant
178
+ Types: Corporation (Canada or Canadian province or territory), Canadian citizen,
179
+ Permanent Resident of Canada, or a Legal Representative of a Canadian Citizen
180
+ or Permanent Resident.<br />Requirements: The Registrant''s name must be the
181
+ complete official name of the trust, without any abbreviations. (A common
182
+ abbreviation may follow the official name in parentheses.) The Registrant
183
+ name must also indicate the total percentage of the trustees that meet one
184
+ or more of the following requirements: Canadian citizen, permanent resident,
185
+ Canadian corporation, legal representative."},{"title":"Aboriginal Peoples","value":"ABO","description":"Any
186
+ individual belonging to any Inuit, First Nation, Metis or other people indigenous
187
+ to Canada.<br />Requirements: The Registrant''s name must be the full legal
188
+ name of the Aboriginal Person applying for the Registration as it would appear
189
+ on a driver''s license or other identification document issued by government.<br
190
+ />The Registrant may enter its full legal name followed by a space and \"o/a
191
+ xxxx\" where \"o/a\" stands for \"Operating As\" and \"xxxx\" can be any alpha-numeric
192
+ string designated by the applicant and subject to applicable rules and length
193
+ restrictions (e.g. \"John Doe o/a Doe Consulting Group\"). The name may also
194
+ be followed by a space and a degree granted to the registrant by a recognized
195
+ degree granting institution or a recognized professional designation which
196
+ the registrant has the right to use (eg. PhD, MD, DDS.)<br />Full legal names
197
+ of individuals may only consist of alphabetic characters and the special characters:
198
+ single quote mark(''''), hyphen(-), period(.).<br/>Groups: Any Inuit, First
199
+ Nation, Metis or other people indigenous to Canada, and any collectivity of
200
+ such Aboriginal peoples.<br />Requirements: The Registrant''s name must be
201
+ the complete official name of the indigenous people a collectivity of Aboriginal
202
+ Persons or, if there is no official name, the name by which the collectivity
203
+ is commonly known."},{"title":"Indian Band","value":"INB","description":"Any
204
+ Indian band as defined in the Indian Act, R.S.C. 1985, c. I-5, as amended
205
+ from time to time, and any group of Indian bands;<br />Requirements: The name
206
+ of Registrant must be the Indian Band Name as registered with the Department
207
+ of Indian and Northern Affairs, Canada."},{"title":"Legal Representative","value":"LGR","description":"An
208
+ executor, administrator or other legal representative of a Person listed as
209
+ a Canadian Citizen or Permanent Resident of Canada.<br />Note: This registrant
210
+ type is only available to a person or entity that has been appointed by legal
211
+ process to represent an individual who is not competent to represent him or
212
+ herself. It is not available to anyone who represents a Canadian or foreign
213
+ corporation in any capacity.<br />Requirements: The Registrant''s name must
214
+ be the full legal name of the Canadian Citizen or Permanent Resident of Canada
215
+ who is being represented as it would appear on a passport, driver''s license
216
+ or other government identification document. This must be followed by the
217
+ full legal name and capacity of at least one of the official representatives.
218
+ The representative should be identified as the administrative contact for
219
+ these registrations."},{"title":"Official Mark","value":"OMK","description":"A
220
+ Person which does not meet the requirements for any other Registrant Type,
221
+ but which is a Person intended to be protected by Subsection 9(1) of the Trade-Marks
222
+ Act (Canada) at whose request the Registrar of Trade-marks has published notice
223
+ of adoption of any badge, crest, emblem, official mark or other mark pursuant
224
+ to Subsection 9(1), but in this case such permission is limited to a request
225
+ to register a .ca domain name consisting of or including the exact word component
226
+ of such badge, crest, emblem, official mark or other mark in respect of which
227
+ such Person requested publications.<br />Notes: This registrant type is only
228
+ intended for Registrants which do not meet the requirements associated with
229
+ any other registrant type but which have an Official Mark registered in Canada.
230
+ The domain name must include the official mark (eg. If the official mark is
231
+ WIPO, the registrant can register wipo.ca but not intellectual-property.ca)<br
232
+ />Requirements: The Registrant''s name must be the complete official name
233
+ of the entity holding the domain name registration without any abbreviations.
234
+ (A common abbreviation may follow the complete name in parentheses.) The registration
235
+ number of the official mark must follow the Registrant Name."},{"title":"The
236
+ Queen","value":"MAJ","description":"Her Majesty Queen Elizabeth the Second
237
+ and her successors. Requirements: The Registrant''s name must be that of Her
238
+ Majesty the Queen or, after a succession, the name of her successor."}]},{"name":"cira_whois_display","description":"Hide
239
+ registrant data in CIRA WHOIS","child":true,"required":false,"application":"2","user_defined":false,"options":[{"title":"No","value":"FULL","description":"Do
240
+ not hide the registrant contact information in CIRA WHOIS."},{"title":"Yes","value":"PRIVATE","description":"Hide
241
+ the registrant contact information in Cira WHOIS (only available to individuals)."}]},{"name":"cira_language","description":"The
242
+ contact''s preferred language for communication","child":false,"required":true,"application":"2","user_defined":false,"options":[{"title":"English","value":"en","description":"Use
243
+ English for Registry to Registrant communication"},{"title":"French","value":"fr","description":"Use
244
+ French for Registry to Registrant communication"}]},{"name":"cira_agreement_version","description":"Version
245
+ of the CIRA Registrant Agreement displayed and agreed to by the Registrant
246
+ on the Registrar website","child":false,"required":true,"application":"2","user_defined":false,"options":[{"title":"2.0","value":"2.0","description":"Current
247
+ Version of Registrant Agreement"}]},{"name":"cira_agreement_value","description":"Registrant
248
+ has agreed to CIRA''s Registrant Agreement","child":false,"required":true,"application":"2","user_defined":false,"options":[{"title":"No","value":"N","description":"\"You
249
+ have read, understood and agree to the terms and conditions of the Registrant\nAgreement,
250
+ and that CIRA may, from time to time and at its discretion, amend any or all
251
+ of\nthe terms and conditions of the Registrant Agreement, as CIRA deems appropriate,
252
+ by\nposting a notice of the changes on the CIRA website and by sending a notice
253
+ of any\nmaterial changes to Registrant.\"\n\n\"You meet all the requirements
254
+ of the Registrant Agreement to be a Registrant, to apply for\nthe registration
255
+ of a Domain Name Registration, and to hold and maintain a Domain Name\nRegistration,
256
+ including without limitation CIRA''s Canadian Presence Requirements for\nRegistrants,
257
+ at: www.cira.ca/assets/Documents/Legal/Registrants/CPR.pdf.\"\n\n\"CIRA will
258
+ collect, use and disclose your personal information, as set out in CIRA''s\nPrivacy
259
+ Policy, at: www.cira.ca/assets/Documents/Legal/Registrants/privacy.pdf.\""},{"title":"Yes","value":"Y","description":"\"You
260
+ have read, understood and agree to the terms and conditions of the Registrant\nAgreement,
261
+ and that CIRA may, from time to time and at its discretion, amend any or all
262
+ of\nthe terms and conditions of the Registrant Agreement, as CIRA deems appropriate,
263
+ by\nposting a notice of the changes on the CIRA website and by sending a notice
264
+ of any\nmaterial changes to Registrant.\"\n\n\"You meet all the requirements
265
+ of the Registrant Agreement to be a Registrant, to apply for\nthe registration
266
+ of a Domain Name Registration, and to hold and maintain a Domain Name\nRegistration,
267
+ including without limitation CIRA''s Canadian Presence Requirements for\nRegistrants,
268
+ at: www.cira.ca/assets/Documents/Legal/Registrants/CPR.pdf.\"\n\n\"CIRA will
269
+ collect, use and disclose your personal information, as set out in CIRA''s\nPrivacy
270
+ Policy, at: www.cira.ca/assets/Documents/Legal/Registrants/privacy.pdf.\""}]}]'
271
+ http_version: '1.1'
272
+ recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
273
+ recorded_with: VCR 2.2.5