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,40 +1,46 @@
|
|
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/extended_attributes/com
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
9
11
|
- Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
|
10
|
-
response:
|
11
|
-
status:
|
12
|
+
response:
|
13
|
+
status:
|
12
14
|
code: 200
|
13
15
|
message: OK
|
14
|
-
headers:
|
15
|
-
|
16
|
+
headers:
|
17
|
+
X-Ua-Compatible:
|
16
18
|
- IE=Edge
|
17
|
-
|
19
|
+
Access-Control-Allow-Headers:
|
18
20
|
- Authorization,Accepts,Content-Type
|
19
|
-
|
21
|
+
X-Dnsimple-Api-Version:
|
20
22
|
- 1.0.0
|
21
|
-
|
22
|
-
- "
|
23
|
-
|
23
|
+
Etag:
|
24
|
+
- ! '"d751713988987e9331980363e24189ce"'
|
25
|
+
Access-Control-Allow-Methods:
|
24
26
|
- OPTIONS
|
25
|
-
|
27
|
+
Content-Type:
|
26
28
|
- application/json; charset=utf-8
|
27
|
-
|
28
|
-
-
|
29
|
-
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- ! '*'
|
31
|
+
Date:
|
30
32
|
- Fri, 11 Nov 2011 20:33:27 GMT
|
31
|
-
|
33
|
+
Server:
|
32
34
|
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
-
|
37
|
-
|
35
|
+
X-Runtime:
|
36
|
+
- '2.685911'
|
37
|
+
Content-Length:
|
38
|
+
- '2'
|
39
|
+
Cache-Control:
|
38
40
|
- max-age=0, private, must-revalidate
|
39
|
-
body:
|
40
|
-
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: ! '[]'
|
44
|
+
http_version: '1.1'
|
45
|
+
recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
|
46
|
+
recorded_with: VCR 2.2.5
|
@@ -1,173 +1,195 @@
|
|
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/example.com/records
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: record[ttl]=3600&record[prio]=&record[record_type]=A&record[name]=&record[content]=4.5.6.7
|
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/records/71
|
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:25:12 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=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlZDRiZTNkMzczODIxOWFjMjgwMTNkN2Q3MmMxZDAwZjVJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--571e0078375cca8c0e962c7103968d6d20174b2d;
|
41
|
-
|
37
|
+
X-Runtime:
|
38
|
+
- '0.755786'
|
39
|
+
Content-Length:
|
40
|
+
- '246'
|
41
|
+
Set-Cookie:
|
42
|
+
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlZDRiZTNkMzczODIxOWFjMjgwMTNkN2Q3MmMxZDAwZjVJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--571e0078375cca8c0e962c7103968d6d20174b2d;
|
43
|
+
path=/; HttpOnly
|
44
|
+
Cache-Control:
|
42
45
|
- no-cache
|
43
|
-
body:
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: ! '{"record":{"content":"4.5.6.7","created_at":"2011-11-11T20:25:12Z","domain_id":39,"domain_service_id":null,"id":71,"name":"","pdns_identifier":null,"prio":null,"record_type":"A","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:25:12Z"}}'
|
49
|
+
http_version: '1.1'
|
50
|
+
recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/records
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: record[ttl]=3600&record[prio]=&record[record_type]=CNAME&record[name]=www&record[content]=testdomain.com
|
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: 201
|
58
65
|
message: Created
|
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
|
+
Location:
|
74
|
+
- https://test.dnsimple.com/domains/example.com/records/72
|
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:25:13 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=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlODQzNjQzZjU4OTQxYmI5YjVlMWM3YTI1NTE3MWZkYjBJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--175b4b9da12ec818bbfee205d0a3446ba0623781;
|
84
|
-
|
85
|
+
X-Runtime:
|
86
|
+
- '0.816315'
|
87
|
+
Content-Length:
|
88
|
+
- '260'
|
89
|
+
Set-Cookie:
|
90
|
+
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlODQzNjQzZjU4OTQxYmI5YjVlMWM3YTI1NTE3MWZkYjBJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--175b4b9da12ec818bbfee205d0a3446ba0623781;
|
91
|
+
path=/; HttpOnly
|
92
|
+
Cache-Control:
|
85
93
|
- no-cache
|
86
|
-
body:
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
94
|
+
body:
|
95
|
+
encoding: UTF-8
|
96
|
+
string: ! '{"record":{"content":"testdomain.com","created_at":"2011-11-11T20:25:13Z","domain_id":39,"domain_service_id":null,"id":72,"name":"www","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:25:13Z"}}'
|
97
|
+
http_version: '1.1'
|
98
|
+
recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
|
99
|
+
- request:
|
100
|
+
method: post
|
101
|
+
uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/records
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: record[ttl]=3600&record[prio]=10&record[record_type]=MX&record[name]=&record[content]=mail.foo.com
|
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: 201
|
101
113
|
message: Created
|
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
|
+
Location:
|
122
|
+
- https://test.dnsimple.com/domains/example.com/records/73
|
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:25:14 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=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMDE3NjJhNzQyOWFmNjgwMjhlYWFiMWQ1YzIyNzhlMmNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--01c6645c8d99e164b3b6e80ae5b70e5231defb65;
|
127
|
-
|
133
|
+
X-Runtime:
|
134
|
+
- '0.804281'
|
135
|
+
Content-Length:
|
136
|
+
- '250'
|
137
|
+
Set-Cookie:
|
138
|
+
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMDE3NjJhNzQyOWFmNjgwMjhlYWFiMWQ1YzIyNzhlMmNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--01c6645c8d99e164b3b6e80ae5b70e5231defb65;
|
139
|
+
path=/; HttpOnly
|
140
|
+
Cache-Control:
|
128
141
|
- no-cache
|
129
|
-
body:
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
142
|
+
body:
|
143
|
+
encoding: UTF-8
|
144
|
+
string: ! '{"record":{"content":"mail.foo.com","created_at":"2011-11-11T20:25:14Z","domain_id":39,"domain_service_id":null,"id":73,"name":"","pdns_identifier":null,"prio":10,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:25:14Z"}}'
|
145
|
+
http_version: '1.1'
|
146
|
+
recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
|
147
|
+
- request:
|
148
|
+
method: get
|
149
|
+
uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/records
|
150
|
+
body:
|
151
|
+
encoding: US-ASCII
|
152
|
+
string: ''
|
153
|
+
headers:
|
154
|
+
Accept:
|
138
155
|
- application/json
|
139
|
-
|
156
|
+
Authorization:
|
140
157
|
- Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
|
141
|
-
response:
|
142
|
-
status:
|
158
|
+
response:
|
159
|
+
status:
|
143
160
|
code: 200
|
144
161
|
message: OK
|
145
|
-
headers:
|
146
|
-
|
162
|
+
headers:
|
163
|
+
X-Ua-Compatible:
|
147
164
|
- IE=Edge
|
148
|
-
|
165
|
+
Access-Control-Allow-Headers:
|
149
166
|
- Authorization,Accepts,Content-Type
|
150
|
-
|
167
|
+
X-Dnsimple-Api-Version:
|
151
168
|
- 1.0.0
|
152
|
-
|
153
|
-
- "
|
154
|
-
|
169
|
+
Etag:
|
170
|
+
- ! '"e052e8e045e0166446419cf0dc97cf36"'
|
171
|
+
Access-Control-Allow-Methods:
|
155
172
|
- OPTIONS
|
156
|
-
|
173
|
+
Content-Type:
|
157
174
|
- application/json; charset=utf-8
|
158
|
-
|
159
|
-
-
|
160
|
-
|
175
|
+
Access-Control-Allow-Origin:
|
176
|
+
- ! '*'
|
177
|
+
Date:
|
161
178
|
- Fri, 11 Nov 2011 20:25:14 GMT
|
162
|
-
|
179
|
+
Server:
|
163
180
|
- WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
|
164
|
-
|
165
|
-
-
|
166
|
-
|
167
|
-
-
|
168
|
-
|
169
|
-
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNDMxYTNlYjk3MTRlZTkyZTNhYWYwNTMxYzY3ZjIzOTJJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--4e3f8a898eea079fd9e05c8ea98ba2d31fc9f278;
|
170
|
-
|
181
|
+
X-Runtime:
|
182
|
+
- '0.661836'
|
183
|
+
Content-Length:
|
184
|
+
- '760'
|
185
|
+
Set-Cookie:
|
186
|
+
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNDMxYTNlYjk3MTRlZTkyZTNhYWYwNTMxYzY3ZjIzOTJJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--4e3f8a898eea079fd9e05c8ea98ba2d31fc9f278;
|
187
|
+
path=/; HttpOnly
|
188
|
+
Cache-Control:
|
171
189
|
- max-age=0, private, must-revalidate
|
172
|
-
body:
|
173
|
-
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: ! '[{"record":{"content":"4.5.6.7","created_at":"2011-11-11T20:25:12Z","domain_id":39,"domain_service_id":null,"id":71,"name":"","pdns_identifier":null,"prio":null,"record_type":"A","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:25:12Z"}},{"record":{"content":"testdomain.com","created_at":"2011-11-11T20:25:13Z","domain_id":39,"domain_service_id":null,"id":72,"name":"www","pdns_identifier":null,"prio":null,"record_type":"CNAME","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:25:13Z"}},{"record":{"content":"mail.foo.com","created_at":"2011-11-11T20:25:14Z","domain_id":39,"domain_service_id":null,"id":73,"name":"","pdns_identifier":null,"prio":10,"record_type":"MX","special_type":null,"ttl":3600,"updated_at":"2011-11-11T20:25:14Z"}}]'
|
193
|
+
http_version: '1.1'
|
194
|
+
recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
|
195
|
+
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/example.com/records
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: record[ttl]=600&record[prio]=&record[record_type]=A&record[name]=&record[content]=1.2.3.4
|
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/records/70
|
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:22:26 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=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlOGZlNTcwZDdlNzdjZGRkZmZjMzIxZjYzNzQwZGM4YjZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--436bfd6056d83bfaa12a0017bfaefa3eb2cd22ac;
|
41
|
-
|
37
|
+
X-Runtime:
|
38
|
+
- '0.804759'
|
39
|
+
Content-Length:
|
40
|
+
- '245'
|
41
|
+
Set-Cookie:
|
42
|
+
- _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlOGZlNTcwZDdlNzdjZGRkZmZjMzIxZjYzNzQwZGM4YjZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--436bfd6056d83bfaa12a0017bfaefa3eb2cd22ac;
|
43
|
+
path=/; HttpOnly
|
44
|
+
Cache-Control:
|
42
45
|
- no-cache
|
43
|
-
body:
|
44
|
-
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: ! '{"record":{"content":"1.2.3.4","created_at":"2011-11-11T20:22:26Z","domain_id":39,"domain_service_id":null,"id":70,"name":"","pdns_identifier":null,"prio":null,"record_type":"A","special_type":null,"ttl":600,"updated_at":"2011-11-11T20:22:26Z"}}'
|
49
|
+
http_version: '1.1'
|
50
|
+
recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
|
51
|
+
recorded_with: VCR 2.2.5
|