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.
- checksums.yaml +15 -0
- data/.gitignore +9 -2
- data/.rspec +1 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +20 -0
- data/Gemfile +0 -2
- data/LICENSE +2 -2
- data/README.md +121 -0
- data/Rakefile +30 -14
- data/bin/dnsimple.rb +1 -1
- data/dnsimple-ruby.gemspec +9 -8
- data/features/README +1 -1
- data/features/step_definitions/cli_steps.rb +1 -1
- data/features/support/env.rb +4 -4
- data/fixtures/vcr_cassettes/DNSimple_Certificate/_all.yml +45 -32
- data/fixtures/vcr_cassettes/DNSimple_Certificate/_purchase.yml +45 -32
- data/fixtures/vcr_cassettes/DNSimple_Certificate/_submit.yml +45 -32
- data/fixtures/vcr_cassettes/DNSimple_Contact/a_new_contact.yml +39 -31
- data/fixtures/vcr_cassettes/DNSimple_Contact/an_existing_contact.yml +39 -31
- data/fixtures/vcr_cassettes/DNSimple_Domain/_all.yml +113 -94
- data/fixtures/vcr_cassettes/DNSimple_Domain/applying_templates.yml +186 -156
- data/fixtures/vcr_cassettes/DNSimple_Domain/creating_a_new_domain.yml +39 -32
- data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_id.yml +39 -32
- data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_name.yml +39 -32
- data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_a_new_registrant_contact.yml +40 -32
- data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_an_existing_contact.yml +40 -32
- data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_ca.yml +262 -29
- data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_com.yml +35 -29
- data/fixtures/vcr_cassettes/DNSimple_Record/_all.yml +147 -125
- data/fixtures/vcr_cassettes/DNSimple_Record/creating_a_new_record.yml +39 -32
- data/fixtures/vcr_cassettes/DNSimple_Record/find_a_record.yml +39 -32
- data/fixtures/vcr_cassettes/DNSimple_Template/a_template.yml +41 -32
- data/fixtures/vcr_cassettes/DNSimple_User/_me.yml +38 -31
- data/lib/dnsimple.rb +14 -1
- data/lib/dnsimple/base.rb +7 -5
- data/lib/dnsimple/certificate.rb +100 -95
- data/lib/dnsimple/cli.rb +92 -93
- data/lib/dnsimple/client.rb +109 -99
- data/lib/dnsimple/commands/{describe_certificate.rb → certificate_describe.rb} +2 -2
- data/lib/dnsimple/commands/{list_certificates.rb → certificate_list.rb} +2 -2
- data/lib/dnsimple/commands/{purchase_certificate.rb → certificate_purchase.rb} +3 -5
- data/lib/dnsimple/commands/{submit_certificate.rb → certificate_submit.rb} +3 -5
- data/lib/dnsimple/commands/{create_contact.rb → contact_create.rb} +8 -6
- data/lib/dnsimple/commands/{delete_contact.rb → contact_delete.rb} +2 -2
- data/lib/dnsimple/commands/{describe_contact.rb → contact_describe.rb} +2 -2
- data/lib/dnsimple/commands/{list_contacts.rb → contact_list.rb} +2 -2
- data/lib/dnsimple/commands/{update_contact.rb → contact_update.rb} +2 -2
- data/lib/dnsimple/commands/{apply_template.rb → domain_apply_template.rb} +2 -2
- data/lib/dnsimple/commands/{check_domain.rb → domain_check.rb} +2 -2
- data/lib/dnsimple/commands/{clear_domain.rb → domain_clear.rb} +2 -2
- data/lib/dnsimple/commands/{create_domain.rb → domain_create.rb} +2 -2
- data/lib/dnsimple/commands/{delete_domain.rb → domain_delete.rb} +2 -2
- data/lib/dnsimple/commands/{describe_domain.rb → domain_describe.rb} +2 -2
- data/lib/dnsimple/commands/{list_domains.rb → domain_list.rb} +2 -2
- data/lib/dnsimple/commands/{register_domain.rb → domain_register.rb} +2 -2
- data/lib/dnsimple/commands/{transfer_domain.rb → domain_transfer.rb} +2 -2
- data/lib/dnsimple/commands/{list_extended_attributes.rb → extended_attribute_list.rb} +2 -2
- data/lib/dnsimple/commands/{describe_user.rb → me.rb} +2 -2
- data/lib/dnsimple/commands/{create_record.rb → record_create.rb} +5 -7
- data/lib/dnsimple/commands/{delete_record.rb → record_delete.rb} +2 -2
- data/lib/dnsimple/commands/{describe_record.rb → record_describe.rb} +2 -2
- data/lib/dnsimple/commands/{list_records.rb → record_list.rb} +4 -6
- data/lib/dnsimple/commands/{update_record.rb → record_update.rb} +2 -2
- data/lib/dnsimple/commands/{add_service.rb → service_add.rb} +3 -5
- data/lib/dnsimple/commands/{describe_service.rb → service_describe.rb} +2 -2
- data/lib/dnsimple/commands/{list_services.rb → service_list.rb} +2 -2
- data/lib/dnsimple/commands/{list_applied_services.rb → service_list_applied.rb} +2 -2
- data/lib/dnsimple/commands/{list_available_services.rb → service_list_available.rb} +2 -2
- data/lib/dnsimple/commands/{remove_service.rb → service_remove.rb} +2 -2
- data/lib/dnsimple/commands/{create_template.rb → template_create.rb} +2 -2
- data/lib/dnsimple/commands/{delete_template.rb → template_delete.rb} +2 -2
- data/lib/dnsimple/commands/{add_template_record.rb → template_record_create.rb} +2 -2
- data/lib/dnsimple/commands/{delete_template_record.rb → template_record_delete.rb} +2 -2
- data/lib/dnsimple/commands/{list_template_records.rb → template_record_list.rb} +2 -2
- data/lib/dnsimple/commands/{list_templates.rb → templates_list.rb} +2 -2
- data/lib/dnsimple/contact.rb +115 -110
- data/lib/dnsimple/domain.rb +134 -132
- data/lib/dnsimple/error.rb +8 -19
- data/lib/dnsimple/extended_attribute.rb +39 -33
- data/lib/dnsimple/record.rb +71 -67
- data/lib/dnsimple/service.rb +31 -24
- data/lib/dnsimple/template.rb +52 -46
- data/lib/dnsimple/template_record.rb +61 -53
- data/lib/dnsimple/transfer_order.rb +24 -18
- data/lib/dnsimple/user.rb +22 -18
- data/lib/dnsimple/version.rb +1 -1
- data/spec/README +1 -1
- data/spec/ci/.dnsimple.test +3 -0
- data/spec/commands/{purchase_certificate_spec.rb → certificate_purchase_spec.rb} +3 -4
- data/spec/commands/{submit_certificate_spec.rb → certificate_submit_spec.rb} +3 -4
- data/spec/commands/{create_record_spec.rb → record_create_spec.rb} +4 -4
- data/spec/commands/{list_records_spec.rb → records_list_spec.rb} +2 -13
- data/spec/commands/{add_service_spec.rb → service_add_spec.rb} +3 -12
- data/spec/{certificate_spec.rb → dnsimple/certificate_spec.rb} +0 -0
- data/spec/dnsimple/client_spec.rb +45 -18
- data/spec/{contact_spec.rb → dnsimple/contact_spec.rb} +3 -1
- data/spec/{domain_spec.rb → dnsimple/domain_spec.rb} +2 -0
- data/spec/{extended_attributes_spec.rb → dnsimple/extended_attributes_spec.rb} +4 -0
- data/spec/{record_spec.rb → dnsimple/record_spec.rb} +2 -0
- data/spec/{template_spec.rb → dnsimple/template_spec.rb} +0 -0
- data/spec/{user_spec.rb → dnsimple/user_spec.rb} +2 -0
- data/spec/spec_helper.rb +24 -10
- metadata +96 -99
- data/Gemfile.lock +0 -71
- data/README +0 -108
- data/README.rdoc +0 -108
- data/README.textile +0 -138
- data/lib/dnsimple/command.rb +0 -10
- data/spec/command_spec.rb +0 -19
@@ -1,216 +1,246 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri:
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
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
|
-
|
12
|
+
Authorization:
|
11
13
|
- Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
|
12
|
-
response:
|
13
|
-
status:
|
14
|
+
response:
|
15
|
+
status:
|
14
16
|
code: 200
|
15
17
|
message: OK
|
16
|
-
headers:
|
17
|
-
|
18
|
+
headers:
|
19
|
+
X-Ua-Compatible:
|
18
20
|
- IE=Edge
|
19
|
-
|
21
|
+
Access-Control-Allow-Headers:
|
20
22
|
- Authorization,Accepts,Content-Type
|
21
|
-
|
23
|
+
X-Dnsimple-Api-Version:
|
22
24
|
- 1.0.0
|
23
|
-
|
24
|
-
- "
|
25
|
-
|
25
|
+
Etag:
|
26
|
+
- ! '"24f073eea7b01a97c81f7582b82bed62"'
|
27
|
+
Access-Control-Allow-Methods:
|
26
28
|
- OPTIONS
|
27
|
-
|
29
|
+
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
|
-
|
30
|
-
-
|
31
|
-
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- ! '*'
|
33
|
+
Date:
|
32
34
|
- Fri, 11 Nov 2011 20:16:51 GMT
|
33
|
-
|
35
|
+
Server:
|
34
36
|
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
|
35
|
-
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
39
|
-
|
40
|
-
- _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlNDZlNmVkZTc3OGYzMjY4MGUxYjdmZGJmZmEwYmE0NDJJIg5yZXR1cm5fdG8GOwBGSSIZL2RvbWFpbnMvZXhhbXBsZS5jb20GOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--cd37e0f2a6bad9c2fb8bbc62dd2c75d17a577e7d;
|
41
|
-
|
37
|
+
X-Runtime:
|
38
|
+
- '0.696375'
|
39
|
+
Content-Length:
|
40
|
+
- '412'
|
41
|
+
Set-Cookie:
|
42
|
+
- _dnsimple_session=BAh7CUkiD3Nlc3Npb25faWQGOgZFRiIlNDZlNmVkZTc3OGYzMjY4MGUxYjdmZGJmZmEwYmE0NDJJIg5yZXR1cm5fdG8GOwBGSSIZL2RvbWFpbnMvZXhhbXBsZS5jb20GOwBGSSIVdXNlcl9jcmVkZW50aWFscwY7AEZJIgGANWMyNGU2MzhmMDYxZGVkZjdmOWEzYmI2NzE3YmY1MTI5YmZlMGI3Yzg4OThmZGU1YTZhMzRjMWQ5MDllMjJjZTZiMzE3ODM0ZWU3ZmNkZGI5ZWI0Nzg3YWI2ZTAzNWNhNGZhMmJmNDFlZGMyYjljMWRhMDc2MGQ3YzM4Zjc2NTgGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AEZpBg%3D%3D--cd37e0f2a6bad9c2fb8bbc62dd2c75d17a577e7d;
|
43
|
+
path=/; HttpOnly
|
44
|
+
Cache-Control:
|
42
45
|
- max-age=0, private, must-revalidate
|
43
|
-
body:
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/records
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: ''
|
57
|
+
headers:
|
58
|
+
Accept:
|
52
59
|
- application/json
|
53
|
-
|
60
|
+
Authorization:
|
54
61
|
- Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
|
55
|
-
response:
|
56
|
-
status:
|
62
|
+
response:
|
63
|
+
status:
|
57
64
|
code: 200
|
58
65
|
message: OK
|
59
|
-
headers:
|
60
|
-
|
66
|
+
headers:
|
67
|
+
X-Ua-Compatible:
|
61
68
|
- IE=Edge
|
62
|
-
|
69
|
+
Access-Control-Allow-Headers:
|
63
70
|
- Authorization,Accepts,Content-Type
|
64
|
-
|
71
|
+
X-Dnsimple-Api-Version:
|
65
72
|
- 1.0.0
|
66
|
-
|
67
|
-
- "
|
68
|
-
|
73
|
+
Etag:
|
74
|
+
- ! '"d751713988987e9331980363e24189ce"'
|
75
|
+
Access-Control-Allow-Methods:
|
69
76
|
- OPTIONS
|
70
|
-
|
77
|
+
Content-Type:
|
71
78
|
- application/json; charset=utf-8
|
72
|
-
|
73
|
-
-
|
74
|
-
|
79
|
+
Access-Control-Allow-Origin:
|
80
|
+
- ! '*'
|
81
|
+
Date:
|
75
82
|
- Fri, 11 Nov 2011 20:16:52 GMT
|
76
|
-
|
83
|
+
Server:
|
77
84
|
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
|
78
|
-
|
79
|
-
-
|
80
|
-
|
81
|
-
-
|
82
|
-
|
83
|
-
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlZmY1ZmJiZWZiY2MwODAzZmNmYTFmZjM1ZDJiYWRiODdJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--1c9773a3d217749d1eb8e1796ae23027e20784eb;
|
84
|
-
|
85
|
+
X-Runtime:
|
86
|
+
- '0.655348'
|
87
|
+
Content-Length:
|
88
|
+
- '2'
|
89
|
+
Set-Cookie:
|
90
|
+
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlZmY1ZmJiZWZiY2MwODAzZmNmYTFmZjM1ZDJiYWRiODdJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--1c9773a3d217749d1eb8e1796ae23027e20784eb;
|
91
|
+
path=/; HttpOnly
|
92
|
+
Cache-Control:
|
85
93
|
- max-age=0, private, must-revalidate
|
86
|
-
body:
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
94
|
+
body:
|
95
|
+
encoding: UTF-8
|
96
|
+
string: ! '[]'
|
97
|
+
http_version: '1.1'
|
98
|
+
recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
|
99
|
+
- request:
|
100
|
+
method: get
|
101
|
+
uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/templates/googleapps
|
102
|
+
body:
|
103
|
+
encoding: US-ASCII
|
104
|
+
string: ''
|
105
|
+
headers:
|
106
|
+
Accept:
|
95
107
|
- application/json
|
96
|
-
|
108
|
+
Authorization:
|
97
109
|
- Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
|
98
|
-
response:
|
99
|
-
status:
|
110
|
+
response:
|
111
|
+
status:
|
100
112
|
code: 200
|
101
113
|
message: OK
|
102
|
-
headers:
|
103
|
-
|
114
|
+
headers:
|
115
|
+
X-Ua-Compatible:
|
104
116
|
- IE=Edge
|
105
|
-
|
117
|
+
Access-Control-Allow-Headers:
|
106
118
|
- Authorization,Accepts,Content-Type
|
107
|
-
|
119
|
+
X-Dnsimple-Api-Version:
|
108
120
|
- 1.0.0
|
109
|
-
|
110
|
-
- "
|
111
|
-
|
121
|
+
Etag:
|
122
|
+
- ! '"3649a89c5333cc5c491e30a29901f286"'
|
123
|
+
Access-Control-Allow-Methods:
|
112
124
|
- OPTIONS
|
113
|
-
|
125
|
+
Content-Type:
|
114
126
|
- application/json; charset=utf-8
|
115
|
-
|
116
|
-
-
|
117
|
-
|
127
|
+
Access-Control-Allow-Origin:
|
128
|
+
- ! '*'
|
129
|
+
Date:
|
118
130
|
- Fri, 11 Nov 2011 20:16:52 GMT
|
119
|
-
|
131
|
+
Server:
|
120
132
|
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
|
121
|
-
|
122
|
-
-
|
123
|
-
|
124
|
-
-
|
125
|
-
|
126
|
-
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNjdiYTQ3OTIyNzZmZjVkMGFhOGEwN2I4Y2MxMmEyZWNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--662c626a025eeafa23e41f2b6e22e4d31f9eda57;
|
127
|
-
|
133
|
+
X-Runtime:
|
134
|
+
- '0.307405'
|
135
|
+
Content-Length:
|
136
|
+
- '266'
|
137
|
+
Set-Cookie:
|
138
|
+
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNjdiYTQ3OTIyNzZmZjVkMGFhOGEwN2I4Y2MxMmEyZWNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--662c626a025eeafa23e41f2b6e22e4d31f9eda57;
|
139
|
+
path=/; HttpOnly
|
140
|
+
Cache-Control:
|
128
141
|
- max-age=0, private, must-revalidate
|
129
|
-
body:
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
142
|
+
body:
|
143
|
+
encoding: UTF-8
|
144
|
+
string: ! '{"dns_template":{"created_at":"2011-09-04T01:08:50Z","description":"The
|
145
|
+
Google Mail Servers and Google Apps CNAME records in a single template.","id":3,"name":"Google
|
146
|
+
Apps","short_name":"googleapps","updated_at":"2011-09-04T01:08:50Z","user_id":null,"visible":true}}'
|
147
|
+
http_version: '1.1'
|
148
|
+
recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
|
149
|
+
- request:
|
150
|
+
method: post
|
151
|
+
uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/templates/3/apply
|
152
|
+
body:
|
153
|
+
encoding: US-ASCII
|
154
|
+
string: ''
|
155
|
+
headers:
|
156
|
+
Accept:
|
138
157
|
- application/json
|
139
|
-
|
158
|
+
Authorization:
|
140
159
|
- Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
|
141
|
-
response:
|
142
|
-
status:
|
160
|
+
response:
|
161
|
+
status:
|
143
162
|
code: 200
|
144
163
|
message: OK
|
145
|
-
headers:
|
146
|
-
|
164
|
+
headers:
|
165
|
+
X-Ua-Compatible:
|
147
166
|
- IE=Edge
|
148
|
-
|
167
|
+
Access-Control-Allow-Headers:
|
149
168
|
- Authorization,Accepts,Content-Type
|
150
|
-
|
169
|
+
X-Dnsimple-Api-Version:
|
151
170
|
- 1.0.0
|
152
|
-
|
153
|
-
- "
|
154
|
-
|
171
|
+
Etag:
|
172
|
+
- ! '"0a15ac15403eae5130591327fd7b360f"'
|
173
|
+
Access-Control-Allow-Methods:
|
155
174
|
- OPTIONS
|
156
|
-
|
175
|
+
Content-Type:
|
157
176
|
- application/json; charset=utf-8
|
158
|
-
|
159
|
-
-
|
160
|
-
|
177
|
+
Access-Control-Allow-Origin:
|
178
|
+
- ! '*'
|
179
|
+
Date:
|
161
180
|
- Fri, 11 Nov 2011 20:16:53 GMT
|
162
|
-
|
181
|
+
Server:
|
163
182
|
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
|
164
|
-
|
165
|
-
-
|
166
|
-
|
167
|
-
-
|
168
|
-
|
169
|
-
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMzBkMDNjZjMyMGNiNjA3ZDYzZWY2NjY2ODc4YjAxM2FJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--bbd0c2e269949b143932ed13bdc8037f1e4a7ab8;
|
170
|
-
|
183
|
+
X-Runtime:
|
184
|
+
- '1.071534'
|
185
|
+
Content-Length:
|
186
|
+
- '413'
|
187
|
+
Set-Cookie:
|
188
|
+
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMzBkMDNjZjMyMGNiNjA3ZDYzZWY2NjY2ODc4YjAxM2FJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--bbd0c2e269949b143932ed13bdc8037f1e4a7ab8;
|
189
|
+
path=/; HttpOnly
|
190
|
+
Cache-Control:
|
171
191
|
- max-age=0, private, must-revalidate
|
172
|
-
body:
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
192
|
+
body:
|
193
|
+
encoding: UTF-8
|
194
|
+
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":13}}'
|
195
|
+
http_version: '1.1'
|
196
|
+
recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
|
197
|
+
- request:
|
198
|
+
method: get
|
199
|
+
uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/records
|
200
|
+
body:
|
201
|
+
encoding: US-ASCII
|
202
|
+
string: ''
|
203
|
+
headers:
|
204
|
+
Accept:
|
181
205
|
- application/json
|
182
|
-
|
206
|
+
Authorization:
|
183
207
|
- Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
|
184
|
-
response:
|
185
|
-
status:
|
208
|
+
response:
|
209
|
+
status:
|
186
210
|
code: 200
|
187
211
|
message: OK
|
188
|
-
headers:
|
189
|
-
|
212
|
+
headers:
|
213
|
+
X-Ua-Compatible:
|
190
214
|
- IE=Edge
|
191
|
-
|
215
|
+
Access-Control-Allow-Headers:
|
192
216
|
- Authorization,Accepts,Content-Type
|
193
|
-
|
217
|
+
X-Dnsimple-Api-Version:
|
194
218
|
- 1.0.0
|
195
|
-
|
196
|
-
- "
|
197
|
-
|
219
|
+
Etag:
|
220
|
+
- ! '"0294ef7bc6515407471bbe1dfb3a58ea"'
|
221
|
+
Access-Control-Allow-Methods:
|
198
222
|
- OPTIONS
|
199
|
-
|
223
|
+
Content-Type:
|
200
224
|
- application/json; charset=utf-8
|
201
|
-
|
202
|
-
-
|
203
|
-
|
225
|
+
Access-Control-Allow-Origin:
|
226
|
+
- ! '*'
|
227
|
+
Date:
|
204
228
|
- Fri, 11 Nov 2011 20:16:54 GMT
|
205
|
-
|
229
|
+
Server:
|
206
230
|
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
|
207
|
-
|
208
|
-
-
|
209
|
-
|
210
|
-
-
|
211
|
-
|
212
|
-
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMjM5MmQ5NjZjOGI4ZDBmMjNjZjc0YWQyMDRiNGFmMTZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--680fd40be1baa41b93e49c718980eb4dd293c075;
|
213
|
-
|
231
|
+
X-Runtime:
|
232
|
+
- '0.664379'
|
233
|
+
Content-Length:
|
234
|
+
- '3422'
|
235
|
+
Set-Cookie:
|
236
|
+
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMjM5MmQ5NjZjOGI4ZDBmMjNjZjc0YWQyMDRiNGFmMTZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--680fd40be1baa41b93e49c718980eb4dd293c075;
|
237
|
+
path=/; HttpOnly
|
238
|
+
Cache-Control:
|
214
239
|
- max-age=0, private, must-revalidate
|
215
|
-
body:
|
216
|
-
|
240
|
+
body:
|
241
|
+
encoding: UTF-8
|
242
|
+
string: ! '[{"record":{"content":"ghs.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":67,"name":"calendar","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"ghs.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":69,"name":"dashboard","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"ghs.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":66,"name":"docs","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"ghs.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":65,"name":"mail","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"ghs.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":68,"name":"pages","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"aspmx.l.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":57,"name":"","pdns_identifier":null,"prio":10,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"alt1.aspmx.l.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":58,"name":"","pdns_identifier":null,"prio":20,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"alt2.aspmx.l.google.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":59,"name":"","pdns_identifier":null,"prio":20,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"aspmx2.googlemail.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":60,"name":"","pdns_identifier":null,"prio":30,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"aspmx3.googlemail.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":61,"name":"","pdns_identifier":null,"prio":30,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"aspmx4.googlemail.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":62,"name":"","pdns_identifier":null,"prio":30,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"aspmx5.googlemail.com","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":63,"name":"","pdns_identifier":null,"prio":30,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}},{"record":{"content":"v=spf1
|
243
|
+
a include:_spf.google.com -all","created_at":"2011-11-11T20:16:53Z","domain_id":39,"domain_service_id":null,"id":64,"name":"","pdns_identifier":null,"prio":null,"record_type":"TXT","special_type":"SPF","ttl":3600,"updated_at":"2011-11-11T20:16:53Z"}}]'
|
244
|
+
http_version: '1.1'
|
245
|
+
recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
|
246
|
+
recorded_with: VCR 2.2.5
|
@@ -1,44 +1,51 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri:
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: domain[name]=example.com
|
9
|
+
headers:
|
10
|
+
Accept:
|
9
11
|
- application/json
|
10
|
-
|
12
|
+
Authorization:
|
11
13
|
- Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
|
12
|
-
response:
|
13
|
-
status:
|
14
|
+
response:
|
15
|
+
status:
|
14
16
|
code: 201
|
15
17
|
message: Created
|
16
|
-
headers:
|
17
|
-
|
18
|
+
headers:
|
19
|
+
X-Ua-Compatible:
|
18
20
|
- IE=Edge
|
19
|
-
|
21
|
+
Access-Control-Allow-Headers:
|
20
22
|
- Authorization,Accepts,Content-Type
|
21
|
-
|
23
|
+
X-Dnsimple-Api-Version:
|
22
24
|
- 1.0.0
|
23
|
-
|
24
|
-
-
|
25
|
-
|
25
|
+
Location:
|
26
|
+
- https://test.dnsimple.com/domains/example.com
|
27
|
+
Access-Control-Allow-Methods:
|
26
28
|
- OPTIONS
|
27
|
-
|
29
|
+
Content-Type:
|
28
30
|
- application/json; charset=utf-8
|
29
|
-
|
30
|
-
-
|
31
|
-
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- ! '*'
|
33
|
+
Date:
|
32
34
|
- Fri, 11 Nov 2011 20:05:13 GMT
|
33
|
-
|
35
|
+
Server:
|
34
36
|
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
|
35
|
-
|
36
|
-
-
|
37
|
-
|
38
|
-
-
|
39
|
-
|
40
|
-
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlODY3M2E1Yzc3ODk2MmVkNjIwZDZhMjkzYjM4OWNhMmZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--e7964c7a1589861bc35bdf8ebd826172d98be6d9;
|
41
|
-
|
37
|
+
X-Runtime:
|
38
|
+
- '6.596858'
|
39
|
+
Content-Length:
|
40
|
+
- '412'
|
41
|
+
Set-Cookie:
|
42
|
+
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlODY3M2E1Yzc3ODk2MmVkNjIwZDZhMjkzYjM4OWNhMmZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--e7964c7a1589861bc35bdf8ebd826172d98be6d9;
|
43
|
+
path=/; HttpOnly
|
44
|
+
Cache-Control:
|
42
45
|
- no-cache
|
43
|
-
body:
|
44
|
-
|
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
|