dnsimple-ruby 1.4.1 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +0 -3
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +1 -0
  5. data/CHANGELOG.md +8 -0
  6. data/README.md +2 -4
  7. data/dnsimple-ruby.gemspec +3 -6
  8. data/features/README.md +9 -0
  9. data/lib/dnsimple/certificate.rb +37 -36
  10. data/lib/dnsimple/client.rb +7 -4
  11. data/lib/dnsimple/contact.rb +49 -48
  12. data/lib/dnsimple/domain.rb +79 -79
  13. data/lib/dnsimple/extended_attribute.rb +1 -1
  14. data/lib/dnsimple/record.rb +7 -12
  15. data/lib/dnsimple/service.rb +2 -2
  16. data/lib/dnsimple/template.rb +11 -17
  17. data/lib/dnsimple/template_record.rb +4 -4
  18. data/lib/dnsimple/transfer_order.rb +1 -1
  19. data/lib/dnsimple/user.rb +6 -14
  20. data/lib/dnsimple/version.rb +1 -1
  21. data/spec/ci/.dnsimple.test +1 -1
  22. data/spec/dnsimple/certificate_spec.rb +40 -30
  23. data/spec/dnsimple/client_spec.rb +9 -9
  24. data/spec/dnsimple/contact_spec.rb +34 -26
  25. data/spec/dnsimple/domain_spec.rb +21 -74
  26. data/spec/dnsimple/extended_attributes_spec.rb +42 -9
  27. data/spec/dnsimple/record_spec.rb +35 -43
  28. data/spec/dnsimple/template_spec.rb +27 -5
  29. data/spec/dnsimple/user_spec.rb +22 -14
  30. data/spec/files/certificates/index/success.http +19 -0
  31. data/spec/files/certificates/show/notfound.http +17 -0
  32. data/spec/files/certificates/show/success.http +19 -0
  33. data/spec/files/contacts/show/notfound.http +17 -0
  34. data/spec/files/contacts/show/success.http +19 -0
  35. data/spec/files/domains/show/notfound.http +17 -0
  36. data/spec/files/domains/show/success.http +19 -0
  37. data/spec/files/extended_attributes/ca.http +19 -0
  38. data/spec/files/extended_attributes/com.http +19 -0
  39. data/spec/files/extended_attributes/success.http +19 -0
  40. data/spec/files/records/index/success.http +19 -0
  41. data/spec/files/records/show/notfound.http +17 -0
  42. data/spec/files/records/show/success.http +19 -0
  43. data/spec/files/templates/show/notfound.http +17 -0
  44. data/spec/files/templates/show/success.http +19 -0
  45. data/spec/files/users/me/success.http +19 -0
  46. data/spec/spec_helper.rb +14 -17
  47. data/spec/support/helpers.rb +15 -0
  48. data/spec/support/webmock.rb +11 -0
  49. metadata +65 -84
  50. data/features/README +0 -12
  51. data/fixtures/vcr_cassettes/DNSimple_Certificate/_all.yml +0 -57
  52. data/fixtures/vcr_cassettes/DNSimple_Certificate/_purchase.yml +0 -57
  53. data/fixtures/vcr_cassettes/DNSimple_Certificate/_submit.yml +0 -57
  54. data/fixtures/vcr_cassettes/DNSimple_Contact/a_new_contact.yml +0 -50
  55. data/fixtures/vcr_cassettes/DNSimple_Contact/an_existing_contact.yml +0 -50
  56. data/fixtures/vcr_cassettes/DNSimple_Domain/_all.yml +0 -149
  57. data/fixtures/vcr_cassettes/DNSimple_Domain/applying_templates.yml +0 -246
  58. data/fixtures/vcr_cassettes/DNSimple_Domain/creating_a_new_domain.yml +0 -51
  59. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_id.yml +0 -51
  60. data/fixtures/vcr_cassettes/DNSimple_Domain/finding_an_existing_domain/by_name.yml +0 -51
  61. data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_a_new_registrant_contact.yml +0 -52
  62. data/fixtures/vcr_cassettes/DNSimple_Domain/registration/with_an_existing_contact.yml +0 -52
  63. data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_ca.yml +0 -273
  64. data/fixtures/vcr_cassettes/DNSimple_ExtendedAttribute/list_extended_attributes/for_com.yml +0 -46
  65. data/fixtures/vcr_cassettes/DNSimple_Record/_all.yml +0 -195
  66. data/fixtures/vcr_cassettes/DNSimple_Record/creating_a_new_record.yml +0 -51
  67. data/fixtures/vcr_cassettes/DNSimple_Record/find_a_record.yml +0 -51
  68. data/fixtures/vcr_cassettes/DNSimple_Template/a_template.yml +0 -53
  69. data/fixtures/vcr_cassettes/DNSimple_User/_me.yml +0 -49
  70. data/spec/README +0 -10
@@ -1,46 +0,0 @@
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:
11
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
- response:
13
- status:
14
- code: 200
15
- message: OK
16
- headers:
17
- X-Ua-Compatible:
18
- - IE=Edge
19
- Access-Control-Allow-Headers:
20
- - Authorization,Accepts,Content-Type
21
- X-Dnsimple-Api-Version:
22
- - 1.0.0
23
- Etag:
24
- - ! '"d751713988987e9331980363e24189ce"'
25
- Access-Control-Allow-Methods:
26
- - OPTIONS
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Access-Control-Allow-Origin:
30
- - ! '*'
31
- Date:
32
- - Fri, 11 Nov 2011 20:33:27 GMT
33
- Server:
34
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- X-Runtime:
36
- - '2.685911'
37
- Content-Length:
38
- - '2'
39
- Cache-Control:
40
- - max-age=0, private, must-revalidate
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,195 +0,0 @@
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:
11
- - application/json
12
- Authorization:
13
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
14
- response:
15
- status:
16
- code: 201
17
- message: Created
18
- headers:
19
- X-Ua-Compatible:
20
- - IE=Edge
21
- Access-Control-Allow-Headers:
22
- - Authorization,Accepts,Content-Type
23
- X-Dnsimple-Api-Version:
24
- - 1.0.0
25
- Location:
26
- - https://test.dnsimple.com/domains/example.com/records/71
27
- Access-Control-Allow-Methods:
28
- - OPTIONS
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Access-Control-Allow-Origin:
32
- - ! '*'
33
- Date:
34
- - Fri, 11 Nov 2011 20:25:12 GMT
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
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:
45
- - no-cache
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:
59
- - application/json
60
- Authorization:
61
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
62
- response:
63
- status:
64
- code: 201
65
- message: Created
66
- headers:
67
- X-Ua-Compatible:
68
- - IE=Edge
69
- Access-Control-Allow-Headers:
70
- - Authorization,Accepts,Content-Type
71
- X-Dnsimple-Api-Version:
72
- - 1.0.0
73
- Location:
74
- - https://test.dnsimple.com/domains/example.com/records/72
75
- Access-Control-Allow-Methods:
76
- - OPTIONS
77
- Content-Type:
78
- - application/json; charset=utf-8
79
- Access-Control-Allow-Origin:
80
- - ! '*'
81
- Date:
82
- - Fri, 11 Nov 2011 20:25:13 GMT
83
- Server:
84
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
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:
93
- - no-cache
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:
107
- - application/json
108
- Authorization:
109
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
110
- response:
111
- status:
112
- code: 201
113
- message: Created
114
- headers:
115
- X-Ua-Compatible:
116
- - IE=Edge
117
- Access-Control-Allow-Headers:
118
- - Authorization,Accepts,Content-Type
119
- X-Dnsimple-Api-Version:
120
- - 1.0.0
121
- Location:
122
- - https://test.dnsimple.com/domains/example.com/records/73
123
- Access-Control-Allow-Methods:
124
- - OPTIONS
125
- Content-Type:
126
- - application/json; charset=utf-8
127
- Access-Control-Allow-Origin:
128
- - ! '*'
129
- Date:
130
- - Fri, 11 Nov 2011 20:25:14 GMT
131
- Server:
132
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
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:
141
- - no-cache
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:
155
- - application/json
156
- Authorization:
157
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
158
- response:
159
- status:
160
- code: 200
161
- message: OK
162
- headers:
163
- X-Ua-Compatible:
164
- - IE=Edge
165
- Access-Control-Allow-Headers:
166
- - Authorization,Accepts,Content-Type
167
- X-Dnsimple-Api-Version:
168
- - 1.0.0
169
- Etag:
170
- - ! '"e052e8e045e0166446419cf0dc97cf36"'
171
- Access-Control-Allow-Methods:
172
- - OPTIONS
173
- Content-Type:
174
- - application/json; charset=utf-8
175
- Access-Control-Allow-Origin:
176
- - ! '*'
177
- Date:
178
- - Fri, 11 Nov 2011 20:25:14 GMT
179
- Server:
180
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
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:
189
- - max-age=0, private, must-revalidate
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,51 +0,0 @@
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:
11
- - application/json
12
- Authorization:
13
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
14
- response:
15
- status:
16
- code: 201
17
- message: Created
18
- headers:
19
- X-Ua-Compatible:
20
- - IE=Edge
21
- Access-Control-Allow-Headers:
22
- - Authorization,Accepts,Content-Type
23
- X-Dnsimple-Api-Version:
24
- - 1.0.0
25
- Location:
26
- - https://test.dnsimple.com/domains/example.com/records/70
27
- Access-Control-Allow-Methods:
28
- - OPTIONS
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Access-Control-Allow-Origin:
32
- - ! '*'
33
- Date:
34
- - Fri, 11 Nov 2011 20:22:26 GMT
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
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:
45
- - no-cache
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
@@ -1,51 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/domains/example.com/records/70
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- Authorization:
13
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- X-Ua-Compatible:
20
- - IE=Edge
21
- Access-Control-Allow-Headers:
22
- - Authorization,Accepts,Content-Type
23
- X-Dnsimple-Api-Version:
24
- - 1.0.0
25
- Etag:
26
- - ! '"e44e23e8947baa8e4e07637aaae785a2"'
27
- Access-Control-Allow-Methods:
28
- - OPTIONS
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Access-Control-Allow-Origin:
32
- - ! '*'
33
- Date:
34
- - Fri, 11 Nov 2011 20:23:36 GMT
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
37
- X-Runtime:
38
- - '0.599019'
39
- Content-Length:
40
- - '245'
41
- Set-Cookie:
42
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMWJiN2NjM2IzYTM5MzMzOTUyNzllYjk5MzJlYmQ2YWFJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--a2cdbda5d90cb97836aa557e8d2511b91c1b1b80;
43
- path=/; HttpOnly
44
- Cache-Control:
45
- - max-age=0, private, must-revalidate
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
@@ -1,53 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/templates/googleapps
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- Authorization:
13
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- X-Ua-Compatible:
20
- - IE=Edge
21
- Access-Control-Allow-Headers:
22
- - Authorization,Accepts,Content-Type
23
- X-Dnsimple-Api-Version:
24
- - 1.0.0
25
- Etag:
26
- - ! '"3649a89c5333cc5c491e30a29901f286"'
27
- Access-Control-Allow-Methods:
28
- - OPTIONS
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Access-Control-Allow-Origin:
32
- - ! '*'
33
- Date:
34
- - Fri, 11 Nov 2011 20:26:05 GMT
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
37
- X-Runtime:
38
- - '0.301433'
39
- Content-Length:
40
- - '266'
41
- Set-Cookie:
42
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlYjMyMDBiMjQwNDdiN2FlMjE4OTUxMDU5ZGYzY2EyMjNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--f1d49fb81f9ca5dae40e254e327c1c69b5352921;
43
- path=/; HttpOnly
44
- Cache-Control:
45
- - max-age=0, private, must-revalidate
46
- body:
47
- encoding: UTF-8
48
- string: ! '{"dns_template":{"created_at":"2011-09-04T01:08:50Z","description":"The
49
- Google Mail Servers and Google Apps CNAME records in a single template.","id":3,"name":"Google
50
- Apps","short_name":"googleapps","updated_at":"2011-09-04T01:08:50Z","user_id":null,"visible":true}}'
51
- http_version: '1.1'
52
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
53
- recorded_with: VCR 2.2.5
@@ -1,49 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://<USERNAME>:<PASSWORD>@test.dnsimple.com/users/me
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Authorization:
11
- - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
12
- response:
13
- status:
14
- code: 200
15
- message: OK
16
- headers:
17
- X-Ua-Compatible:
18
- - IE=Edge
19
- Access-Control-Allow-Headers:
20
- - Authorization,Accepts,Content-Type
21
- X-Dnsimple-Api-Version:
22
- - 1.0.0
23
- Etag:
24
- - ! '"3aec1a878ad478216d54579f95258697"'
25
- Access-Control-Allow-Methods:
26
- - OPTIONS
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Access-Control-Allow-Origin:
30
- - ! '*'
31
- Date:
32
- - Fri, 11 Nov 2011 20:33:01 GMT
33
- Server:
34
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- X-Runtime:
36
- - '5.589996'
37
- Content-Length:
38
- - '325'
39
- Set-Cookie:
40
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlZTBlZTI5ZGMzYmNkZDgxY2QzMjZmMTQwZWEwOTdmMDVJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--ec4d0fa610542fdbeb1dca4838d8b4bb91e8597a;
41
- path=/; HttpOnly
42
- Cache-Control:
43
- - max-age=0, private, must-revalidate
44
- body:
45
- encoding: UTF-8
46
- string: ! '{"user":{"access_code":null,"created_at":"2011-09-25T09:11:23Z","default_contact_id":null,"email":"anthonyeden@gmail.com","failed_login_count":0,"first_name":null,"id":1,"last_name":null,"login_count":2,"referral_token":"a93b6fa7c98483","style":"light","updated_at":"2011-11-11T20:32:56Z","domain_count":5,"domain_limit":10}}'
47
- http_version: '1.1'
48
- recorded_at: Thu, 06 Sep 2012 18:52:19 GMT
49
- recorded_with: VCR 2.2.5