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,40 +1,46 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/extended_attributes/com.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/com
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
- - "\"d751713988987e9331980363e24189ce\""
23
- access-control-allow-methods:
23
+ Etag:
24
+ - ! '"d751713988987e9331980363e24189ce"'
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:27 GMT
31
- server:
33
+ Server:
32
34
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
33
- x-runtime:
34
- - "2.685911"
35
- content-length:
36
- - "2"
37
- cache-control:
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
- http_version: "1.1"
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
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com/records
6
- body: record[ttl]=3600&record[prio]=&record[record_type]=A&record[name]=&record[content]=4.5.6.7
7
- headers:
8
- accept:
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
- 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/example.com/records/71
25
- access-control-allow-methods:
25
+ Location:
26
+ - https://test.dnsimple.com/domains/example.com/records/71
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:25:12 GMT
33
- server:
35
+ Server:
34
36
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- x-runtime:
36
- - "0.755786"
37
- content-length:
38
- - "246"
39
- set-cookie:
40
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlZDRiZTNkMzczODIxOWFjMjgwMTNkN2Q3MmMxZDAwZjVJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--571e0078375cca8c0e962c7103968d6d20174b2d; path=/; HttpOnly
41
- cache-control:
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: "{\"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\"}}"
44
- http_version: "1.1"
45
- - !ruby/struct:VCR::HTTPInteraction
46
- request: !ruby/struct:VCR::Request
47
- method: :post
48
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com/records
49
- body: record[ttl]=3600&record[prio]=&record[record_type]=CNAME&record[name]=www&record[content]=testdomain.com
50
- headers:
51
- accept:
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
- authorization:
60
+ Authorization:
54
61
  - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
62
+ response:
63
+ status:
57
64
  code: 201
58
65
  message: Created
59
- headers:
60
- x-ua-compatible:
66
+ headers:
67
+ X-Ua-Compatible:
61
68
  - IE=Edge
62
- access-control-allow-headers:
69
+ Access-Control-Allow-Headers:
63
70
  - Authorization,Accepts,Content-Type
64
- x-dnsimple-api-version:
71
+ X-Dnsimple-Api-Version:
65
72
  - 1.0.0
66
- location:
67
- - http://localhost:3000/domains/example.com/records/72
68
- access-control-allow-methods:
73
+ Location:
74
+ - https://test.dnsimple.com/domains/example.com/records/72
75
+ Access-Control-Allow-Methods:
69
76
  - OPTIONS
70
- content-type:
77
+ Content-Type:
71
78
  - application/json; charset=utf-8
72
- access-control-allow-origin:
73
- - "*"
74
- date:
79
+ Access-Control-Allow-Origin:
80
+ - ! '*'
81
+ Date:
75
82
  - Fri, 11 Nov 2011 20:25:13 GMT
76
- server:
83
+ Server:
77
84
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
78
- x-runtime:
79
- - "0.816315"
80
- content-length:
81
- - "260"
82
- set-cookie:
83
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlODQzNjQzZjU4OTQxYmI5YjVlMWM3YTI1NTE3MWZkYjBJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--175b4b9da12ec818bbfee205d0a3446ba0623781; path=/; HttpOnly
84
- cache-control:
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: "{\"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\"}}"
87
- http_version: "1.1"
88
- - !ruby/struct:VCR::HTTPInteraction
89
- request: !ruby/struct:VCR::Request
90
- method: :post
91
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com/records
92
- body: record[ttl]=3600&record[prio]=10&record[record_type]=MX&record[name]=&record[content]=mail.foo.com
93
- headers:
94
- accept:
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
- authorization:
108
+ Authorization:
97
109
  - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
98
- response: !ruby/struct:VCR::Response
99
- status: !ruby/struct:VCR::ResponseStatus
110
+ response:
111
+ status:
100
112
  code: 201
101
113
  message: Created
102
- headers:
103
- x-ua-compatible:
114
+ headers:
115
+ X-Ua-Compatible:
104
116
  - IE=Edge
105
- access-control-allow-headers:
117
+ Access-Control-Allow-Headers:
106
118
  - Authorization,Accepts,Content-Type
107
- x-dnsimple-api-version:
119
+ X-Dnsimple-Api-Version:
108
120
  - 1.0.0
109
- location:
110
- - http://localhost:3000/domains/example.com/records/73
111
- access-control-allow-methods:
121
+ Location:
122
+ - https://test.dnsimple.com/domains/example.com/records/73
123
+ Access-Control-Allow-Methods:
112
124
  - OPTIONS
113
- content-type:
125
+ Content-Type:
114
126
  - application/json; charset=utf-8
115
- access-control-allow-origin:
116
- - "*"
117
- date:
127
+ Access-Control-Allow-Origin:
128
+ - ! '*'
129
+ Date:
118
130
  - Fri, 11 Nov 2011 20:25:14 GMT
119
- server:
131
+ Server:
120
132
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
121
- x-runtime:
122
- - "0.804281"
123
- content-length:
124
- - "250"
125
- set-cookie:
126
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlMDE3NjJhNzQyOWFmNjgwMjhlYWFiMWQ1YzIyNzhlMmNJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--01c6645c8d99e164b3b6e80ae5b70e5231defb65; path=/; HttpOnly
127
- cache-control:
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: "{\"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\"}}"
130
- http_version: "1.1"
131
- - !ruby/struct:VCR::HTTPInteraction
132
- request: !ruby/struct:VCR::Request
133
- method: :get
134
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com/records
135
- body:
136
- headers:
137
- accept:
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
- authorization:
156
+ Authorization:
140
157
  - Basic YW50aG9ueWVkZW5AZ21haWwuY29tOmxldG1laW4=
141
- response: !ruby/struct:VCR::Response
142
- status: !ruby/struct:VCR::ResponseStatus
158
+ response:
159
+ status:
143
160
  code: 200
144
161
  message: OK
145
- headers:
146
- x-ua-compatible:
162
+ headers:
163
+ X-Ua-Compatible:
147
164
  - IE=Edge
148
- access-control-allow-headers:
165
+ Access-Control-Allow-Headers:
149
166
  - Authorization,Accepts,Content-Type
150
- x-dnsimple-api-version:
167
+ X-Dnsimple-Api-Version:
151
168
  - 1.0.0
152
- etag:
153
- - "\"e052e8e045e0166446419cf0dc97cf36\""
154
- access-control-allow-methods:
169
+ Etag:
170
+ - ! '"e052e8e045e0166446419cf0dc97cf36"'
171
+ Access-Control-Allow-Methods:
155
172
  - OPTIONS
156
- content-type:
173
+ Content-Type:
157
174
  - application/json; charset=utf-8
158
- access-control-allow-origin:
159
- - "*"
160
- date:
175
+ Access-Control-Allow-Origin:
176
+ - ! '*'
177
+ Date:
161
178
  - Fri, 11 Nov 2011 20:25:14 GMT
162
- server:
179
+ Server:
163
180
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
164
- x-runtime:
165
- - "0.661836"
166
- content-length:
167
- - "760"
168
- set-cookie:
169
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlNDMxYTNlYjk3MTRlZTkyZTNhYWYwNTMxYzY3ZjIzOTJJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--4e3f8a898eea079fd9e05c8ea98ba2d31fc9f278; path=/; HttpOnly
170
- cache-control:
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: "[{\"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\"}}]"
173
- http_version: "1.1"
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
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://<USERNAME>:<PASSWORD>@localhost:3000/domains/example.com/records
6
- body: record[ttl]=600&record[prio]=&record[record_type]=A&record[name]=&record[content]=1.2.3.4
7
- headers:
8
- accept:
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
- 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/example.com/records/70
25
- access-control-allow-methods:
25
+ Location:
26
+ - https://test.dnsimple.com/domains/example.com/records/70
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:22:26 GMT
33
- server:
35
+ Server:
34
36
  - WEBrick/1.3.1 (Ruby/1.9.2/2011-07-09)
35
- x-runtime:
36
- - "0.804759"
37
- content-length:
38
- - "245"
39
- set-cookie:
40
- - _dnsimple_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiIlOGZlNTcwZDdlNzdjZGRkZmZjMzIxZjYzNzQwZGM4YjZJIhV1c2VyX2NyZWRlbnRpYWxzBjsARkkiAYA1YzI0ZTYzOGYwNjFkZWRmN2Y5YTNiYjY3MTdiZjUxMjliZmUwYjdjODg5OGZkZTVhNmEzNGMxZDkwOWUyMmNlNmIzMTc4MzRlZTdmY2RkYjllYjQ3ODdhYjZlMDM1Y2E0ZmEyYmY0MWVkYzJiOWMxZGEwNzYwZDdjMzhmNzY1OAY7AFRJIhh1c2VyX2NyZWRlbnRpYWxzX2lkBjsARmkG--436bfd6056d83bfaa12a0017bfaefa3eb2cd22ac; path=/; HttpOnly
41
- cache-control:
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: "{\"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\"}}"
44
- http_version: "1.1"
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