digital_ocean 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -1
  3. data/digital_ocean.gemspec +1 -1
  4. data/lib/digital_ocean/version.rb +1 -1
  5. data/spec/api_spec.rb +1 -1
  6. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_create/should_be_successful.yml +2 -2
  7. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_create/should_return_domain_id.yml +2 -2
  8. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_create_record/should_be_successful.yml +2 -2
  9. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_create_record/should_return_record_id.yml +2 -2
  10. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_delete/should_be_successful.yml +2 -2
  11. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_delete_record/should_be_successful.yml +2 -2
  12. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_edit_record/should_be_successful.yml +2 -2
  13. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_list/should_be_successful.yml +17 -11
  14. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_list/should_return_a_list_of_all_domains.yml +17 -11
  15. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_list_records/should_be_successful.yml +2 -2
  16. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_list_records/should_return_a_list_of_all_domain_records.yml +2 -2
  17. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_show/should_be_successful.yml +7 -5
  18. data/spec/vcr/cassettes/DigitalOcean_API/_domains/_show_record/should_be_successful.yml +2 -2
  19. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_be_successful.yml +2 -2
  20. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_return_droplet_id.yml +2 -2
  21. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_delete/should_be_successful.yml +4 -4
  22. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_disable_backups/should_be_successful.yml +2 -2
  23. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_enable_backups/should_be_successful.yml +2 -2
  24. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_be_successful.yml +2 -2
  25. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_return_a_list_of_all_droplets.yml +2 -2
  26. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_password_reset/should_be_successful.yml +2 -2
  27. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_cycle/should_be_successful.yml +2 -2
  28. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_off/should_be_successful.yml +2 -2
  29. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_on/should_be_successful.yml +2 -2
  30. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_reboot/should_be_successful.yml +2 -2
  31. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_rebuild/should_be_successful.yml +2 -2
  32. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_resize/should_be_successful.yml +2 -2
  33. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_restore/should_be_successful.yml +2 -2
  34. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_show/should_be_successful.yml +2 -2
  35. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_shutdown/should_be_successful.yml +2 -2
  36. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_snapshot/should_be_successful.yml +2 -2
  37. data/spec/vcr/cassettes/DigitalOcean_API/_images/_delete/invalid/should_not_be_successful.yml +2 -2
  38. data/spec/vcr/cassettes/DigitalOcean_API/_images/_delete/valid/should_be_successful.yml +3 -3
  39. data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/with_filter_global/should_be_successful.yml +31 -23
  40. data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/with_filter_global/should_return_global_images.yml +31 -23
  41. data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/with_filter_my_images/should_be_successful.yml +2 -2
  42. data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/with_filter_my_images/should_return_my_images.yml +2 -2
  43. data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/without_filter/should_be_successful.yml +32 -24
  44. data/spec/vcr/cassettes/DigitalOcean_API/_images/_list/without_filter/should_return_a_list_of_all_images.yml +32 -24
  45. data/spec/vcr/cassettes/DigitalOcean_API/_images/_show/invalid/should_not_be_successful.yml +2 -2
  46. data/spec/vcr/cassettes/DigitalOcean_API/_images/_show/valid/should_be_successful.yml +2 -2
  47. data/spec/vcr/cassettes/DigitalOcean_API/_images/_show/valid/should_return_the_image.yml +2 -2
  48. data/spec/vcr/cassettes/DigitalOcean_API/_regions/_list/should_be_successful.yml +3 -3
  49. data/spec/vcr/cassettes/DigitalOcean_API/_regions/_list/should_return_a_list_of_all_available_regions.yml +3 -3
  50. data/spec/vcr/cassettes/DigitalOcean_API/_regions/_list/should_return_a_list_of_all_regions.yml +3 -3
  51. data/spec/vcr/cassettes/DigitalOcean_API/_sizes/_list/should_be_successful.yml +2 -2
  52. data/spec/vcr/cassettes/DigitalOcean_API/_sizes/_list/should_return_a_list_of_all_droplet_sizes.yml +2 -2
  53. data/spec/vcr/cassettes/DigitalOcean_API/_sizes/_list/should_return_the_correct_ID_for_the_96GB_size.yml +2 -2
  54. data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_add/should_be_successful.yml +3 -3
  55. data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_delete/should_be_successful.yml +5 -5
  56. data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_edit/should_be_successful.yml +3 -3
  57. data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_list/should_be_successful.yml +2 -2
  58. data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_list/should_return_a_list_of_all_SSH_keys.yml +2 -2
  59. data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/invalid/should_not_be_successful.yml +2 -2
  60. data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/valid/should_be_successful.yml +3 -3
  61. data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/valid/should_return_a_list_of_all_SSH_keys.yml +3 -3
  62. data/spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/valid/should_return_the_public_keykey.yml +3 -3
  63. metadata +30 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9b679f2953506f52ec911d908ae9fe544db9e09
4
- data.tar.gz: eabc729485e8d0fdbd1c53c62aaab28b0cfa7271
3
+ metadata.gz: 0fcfb8cab261fe88b3d65fef73972e56cc9dc1ed
4
+ data.tar.gz: de2ba582c1187ab7a08a42bf1fbb4e407c93c131
5
5
  SHA512:
6
- metadata.gz: 3fab6a786da74aefcd02c3ec0d3f64d295c878dba8ab47dfe4faed018c85bd692107c79e78b1f7feeecaee411b32bf1008da52d7164e991ad5600b4f68f2abc5
7
- data.tar.gz: ddd7fdb9fbb17336b0be289f02bdcaf4e2ef038619c5e98b959d132d4b76f861b1175b6efa61f9dabe189dbaff56095014bd65319a8f7a5de80a5fc3b31f7209
6
+ metadata.gz: 514ff9bd2314457f22f7e5ae57bb559cb4409a38d7aaadbaa3fd21df84e1cc181323bd69b088376d2bc531d850748c97b6b46534a3e6a6f30a37934648391e1f
7
+ data.tar.gz: 9c0ae838d4a2d151b108815cf055190e32026136f5f5e8ceeb5a0a10513b31381470fe18bd06b23fe91607d782c9a3c14a4c23d480b20db500a5e034fe16a0f0
@@ -1,12 +1,21 @@
1
1
  ## unreleased
2
2
 
3
- * [Full Changelog](https://github.com/rmoriz/digital_ocean/compare/v1.3.0...master)
3
+ * [Full Changelog](https://github.com/rmoriz/digital_ocean/compare/v1.4.0...master)
4
+
5
+
6
+ ## 1.4.0 / 2014-04-26
7
+
8
+ * upgrade Faraday (contributed by github user mrloop)
9
+
10
+ * [Full Changelog](https://github.com/rmoriz/digital_ocean/compare/v1.3.0...v1.4.0)
4
11
 
5
12
 
6
13
  ## 1.3.0 / 2013-12-30
7
14
 
8
15
  * on droplet delete use ```scrub_data``` by default
9
16
 
17
+ * [Full Changelog](https://github.com/rmoriz/digital_ocean/compare/v1.2.0...v1.3.0)
18
+
10
19
 
11
20
  ## 1.2.0 / 2013-09-07
12
21
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
23
23
  gem.add_runtime_dependency 'jruby-openssl'
24
24
  end
25
25
 
26
- gem.add_dependency 'faraday', '~> 0.8.7'
26
+ gem.add_dependency 'faraday', '~> 0.9.0'
27
27
  gem.add_dependency 'faraday_middleware', '~> 0.9.0'
28
28
  gem.add_dependency 'json'
29
29
  gem.add_dependency 'rash'
@@ -1,3 +1,3 @@
1
1
  module DigitalOcean
2
- VERSION = '1.3.0'
2
+ VERSION = '1.4.0'
3
3
  end
@@ -14,7 +14,7 @@ describe DigitalOcean::API, :vcr do
14
14
 
15
15
  describe 'ssl settings' do
16
16
  it 'should by default enforce ssl' do
17
- subject.default_faraday.ssl.should == { :verify => true }
17
+ expect(subject.default_faraday.ssl.verify).to be true
18
18
  end
19
19
  end
20
20
 
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&name=test.do.cityhawk.ru&ip_address=192.81.213.70
5
+ uri: https://api.digitalocean.com/domains/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&ip_address=192.81.213.70&name=test.do.cityhawk.ru
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK","domain":{"id":30001,"name":"test.do.cityhawk.ru"}}'
43
+ string: "{\"status\":\"OK\",\"domain\":{\"id\":30001,\"name\":\"test.do.cityhawk.ru\"}}"
44
44
  http_version:
45
45
  recorded_at: Sun, 09 Jun 2013 02:35:34 GMT
46
46
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&name=test.do.cityhawk.ru&ip_address=192.81.213.70
5
+ uri: https://api.digitalocean.com/domains/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&ip_address=192.81.213.70&name=test.do.cityhawk.ru
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK","domain":{"id":30004,"name":"test.do.cityhawk.ru"}}'
43
+ string: "{\"status\":\"OK\",\"domain\":{\"id\":30004,\"name\":\"test.do.cityhawk.ru\"}}"
44
44
  http_version:
45
45
  recorded_at: Sun, 09 Jun 2013 02:38:54 GMT
46
46
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/30163/records/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&record_type=TXT&name=foo&data=bar
5
+ uri: https://api.digitalocean.com/domains/30163/records/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&data=bar&name=foo&record_type=TXT
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK","record":{"id":206996,"domain_id":30163,"record_type":"TXT","name":"foo","data":"bar","priority":null,"port":null,"weight":null}}'
43
+ string: "{\"status\":\"OK\",\"record\":{\"id\":206996,\"domain_id\":30163,\"record_type\":\"TXT\",\"name\":\"foo\",\"data\":\"bar\",\"priority\":null,\"port\":null,\"weight\":null}}"
44
44
  http_version:
45
45
  recorded_at: Sun, 09 Jun 2013 15:36:11 GMT
46
46
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/30163/records/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&record_type=TXT&name=foo&data=bar
5
+ uri: https://api.digitalocean.com/domains/30163/records/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&data=bar&name=foo&record_type=TXT
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK","record":{"id":206997,"domain_id":30163,"record_type":"TXT","name":"foo","data":"bar","priority":null,"port":null,"weight":null}}'
43
+ string: "{\"status\":\"OK\",\"record\":{\"id\":206997,\"domain_id\":30163,\"record_type\":\"TXT\",\"name\":\"foo\",\"data\":\"bar\",\"priority\":null,\"port\":null,\"weight\":null}}"
44
44
  http_version:
45
45
  recorded_at: Sun, 09 Jun 2013 15:36:11 GMT
46
46
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/30158/destroy?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/domains/30158/destroy?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK"}'
43
+ string: "{\"status\":\"OK\"}"
44
44
  http_version:
45
45
  recorded_at: Sun, 09 Jun 2013 15:16:12 GMT
46
46
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/30163/records/206997/destroy?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/domains/30163/records/206997/destroy?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK"}'
43
+ string: "{\"status\":\"OK\"}"
44
44
  http_version:
45
45
  recorded_at: Sun, 09 Jun 2013 15:39:29 GMT
46
46
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/30163/records/206982/edit?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&data=8.8.8.8&record_type=A
5
+ uri: https://api.digitalocean.com/domains/30163/records/206982/edit?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&data=8.8.8.8&record_type=A
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK","record":{"id":206982,"domain_id":30163,"record_type":"A","name":"@","data":"8.8.8.8","priority":null,"port":null,"weight":null}}'
43
+ string: "{\"status\":\"OK\",\"record\":{\"id\":206982,\"domain_id\":30163,\"record_type\":\"A\",\"name\":\"@\",\"data\":\"8.8.8.8\",\"priority\":null,\"port\":null,\"weight\":null}}"
44
44
  http_version:
45
45
  recorded_at: Sun, 09 Jun 2013 15:30:49 GMT
46
46
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/domains?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -42,16 +42,22 @@ http_interactions:
42
42
  - miss
43
43
  body:
44
44
  encoding: US-ASCII
45
- string: ! '{"status":"OK","domains":[{"id":26230,"name":"chefserver.do.cityhawk.ru","ttl":10800,"live_zone_file":"$TTL\t600\n@\t\tIN\tSOA\tNS1.DIGITALOCEAN.COM.\thostmaster.chefserver.do.cityhawk.ru.
46
- (\n\t\t\t1369610095 ; last update: 2013-05-26 23:14:55 UTC\n\t\t\t3600 ; refresh\n\t\t\t900
47
- ; retry\n\t\t\t1209600 ; expire\n\t\t\t10800 ; ttl\n\t\t\t)\n IN NS NS1.DIGITALOCEAN.COM.\n NS NS2.DIGITALOCEAN.COM.\n NS NS3.DIGITALOCEAN.COM.\n@\tIN
48
- A\t192.81.213.70\n","error":null,"zone_file_with_error":null},{"id":26233,"name":"hadoop001.do.cityhawk.ru","ttl":10800,"live_zone_file":"$TTL\t600\n@\t\tIN\tSOA\tNS1.DIGITALOCEAN.COM.\thostmaster.hadoop001.do.cityhawk.ru.
49
- (\n\t\t\t1370638105 ; last update: 2013-06-07 20:48:25 UTC\n\t\t\t3600 ; refresh\n\t\t\t900
50
- ; retry\n\t\t\t1209600 ; expire\n\t\t\t10800 ; ttl\n\t\t\t)\n IN NS NS1.DIGITALOCEAN.COM.\n NS NS2.DIGITALOCEAN.COM.\n NS NS3.DIGITALOCEAN.COM.\n@\tIN
51
- A\t198.199.71.249\n","error":null,"zone_file_with_error":null},{"id":28755,"name":"hadoop006.do.cityhawk.ru","ttl":1800,"live_zone_file":"$TTL\t600\n@\t\tIN\tSOA\tNS1.DIGITALOCEAN.COM.\thostmaster.hadoop006.do.cityhawk.ru.
52
- (\n\t\t\t1370376343 ; last update: 2013-06-04 20:05:43 UTC\n\t\t\t3600 ; refresh\n\t\t\t900
53
- ; retry\n\t\t\t1209600 ; expire\n\t\t\t1800 ; ttl\n\t\t\t)\n IN NS NS1.DIGITALOCEAN.COM.\n NS NS2.DIGITALOCEAN.COM.\n NS NS3.DIGITALOCEAN.COM.\n@\tIN
54
- A\t198.211.100.176\n","error":null,"zone_file_with_error":null}]}'
45
+ string: "{\"status\":\"OK\",\"domains\":[{\"id\":26230,\"name\":\"chefserver.do.cityhawk.ru\",\"ttl\":10800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.chefserver.do.cityhawk.ru.
46
+ (\\n\\t\\t\\t1369610095 ; last update: 2013-05-26 23:14:55 UTC\\n\\t\\t\\t3600
47
+ ; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t10800
48
+ ; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
49
+ \ NS NS2.DIGITALOCEAN.COM.\\n NS
50
+ \ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t192.81.213.70\\n\",\"error\":null,\"zone_file_with_error\":null},{\"id\":26233,\"name\":\"hadoop001.do.cityhawk.ru\",\"ttl\":10800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.hadoop001.do.cityhawk.ru.
51
+ (\\n\\t\\t\\t1370638105 ; last update: 2013-06-07 20:48:25 UTC\\n\\t\\t\\t3600
52
+ ; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t10800
53
+ ; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
54
+ \ NS NS2.DIGITALOCEAN.COM.\\n NS
55
+ \ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t198.199.71.249\\n\",\"error\":null,\"zone_file_with_error\":null},{\"id\":28755,\"name\":\"hadoop006.do.cityhawk.ru\",\"ttl\":1800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.hadoop006.do.cityhawk.ru.
56
+ (\\n\\t\\t\\t1370376343 ; last update: 2013-06-04 20:05:43 UTC\\n\\t\\t\\t3600
57
+ ; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t1800
58
+ ; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
59
+ \ NS NS2.DIGITALOCEAN.COM.\\n NS
60
+ \ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t198.211.100.176\\n\",\"error\":null,\"zone_file_with_error\":null}]}"
55
61
  http_version:
56
62
  recorded_at: Sat, 08 Jun 2013 17:03:38 GMT
57
63
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/domains?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -42,16 +42,22 @@ http_interactions:
42
42
  - miss
43
43
  body:
44
44
  encoding: US-ASCII
45
- string: ! '{"status":"OK","domains":[{"id":26230,"name":"chefserver.do.cityhawk.ru","ttl":10800,"live_zone_file":"$TTL\t600\n@\t\tIN\tSOA\tNS1.DIGITALOCEAN.COM.\thostmaster.chefserver.do.cityhawk.ru.
46
- (\n\t\t\t1369610095 ; last update: 2013-05-26 23:14:55 UTC\n\t\t\t3600 ; refresh\n\t\t\t900
47
- ; retry\n\t\t\t1209600 ; expire\n\t\t\t10800 ; ttl\n\t\t\t)\n IN NS NS1.DIGITALOCEAN.COM.\n NS NS2.DIGITALOCEAN.COM.\n NS NS3.DIGITALOCEAN.COM.\n@\tIN
48
- A\t192.81.213.70\n","error":null,"zone_file_with_error":null},{"id":26233,"name":"hadoop001.do.cityhawk.ru","ttl":10800,"live_zone_file":"$TTL\t600\n@\t\tIN\tSOA\tNS1.DIGITALOCEAN.COM.\thostmaster.hadoop001.do.cityhawk.ru.
49
- (\n\t\t\t1370638105 ; last update: 2013-06-07 20:48:25 UTC\n\t\t\t3600 ; refresh\n\t\t\t900
50
- ; retry\n\t\t\t1209600 ; expire\n\t\t\t10800 ; ttl\n\t\t\t)\n IN NS NS1.DIGITALOCEAN.COM.\n NS NS2.DIGITALOCEAN.COM.\n NS NS3.DIGITALOCEAN.COM.\n@\tIN
51
- A\t198.199.71.249\n","error":null,"zone_file_with_error":null},{"id":28755,"name":"hadoop006.do.cityhawk.ru","ttl":1800,"live_zone_file":"$TTL\t600\n@\t\tIN\tSOA\tNS1.DIGITALOCEAN.COM.\thostmaster.hadoop006.do.cityhawk.ru.
52
- (\n\t\t\t1370376343 ; last update: 2013-06-04 20:05:43 UTC\n\t\t\t3600 ; refresh\n\t\t\t900
53
- ; retry\n\t\t\t1209600 ; expire\n\t\t\t1800 ; ttl\n\t\t\t)\n IN NS NS1.DIGITALOCEAN.COM.\n NS NS2.DIGITALOCEAN.COM.\n NS NS3.DIGITALOCEAN.COM.\n@\tIN
54
- A\t198.211.100.176\n","error":null,"zone_file_with_error":null}]}'
45
+ string: "{\"status\":\"OK\",\"domains\":[{\"id\":26230,\"name\":\"chefserver.do.cityhawk.ru\",\"ttl\":10800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.chefserver.do.cityhawk.ru.
46
+ (\\n\\t\\t\\t1369610095 ; last update: 2013-05-26 23:14:55 UTC\\n\\t\\t\\t3600
47
+ ; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t10800
48
+ ; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
49
+ \ NS NS2.DIGITALOCEAN.COM.\\n NS
50
+ \ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t192.81.213.70\\n\",\"error\":null,\"zone_file_with_error\":null},{\"id\":26233,\"name\":\"hadoop001.do.cityhawk.ru\",\"ttl\":10800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.hadoop001.do.cityhawk.ru.
51
+ (\\n\\t\\t\\t1370638105 ; last update: 2013-06-07 20:48:25 UTC\\n\\t\\t\\t3600
52
+ ; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t10800
53
+ ; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
54
+ \ NS NS2.DIGITALOCEAN.COM.\\n NS
55
+ \ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t198.199.71.249\\n\",\"error\":null,\"zone_file_with_error\":null},{\"id\":28755,\"name\":\"hadoop006.do.cityhawk.ru\",\"ttl\":1800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.hadoop006.do.cityhawk.ru.
56
+ (\\n\\t\\t\\t1370376343 ; last update: 2013-06-04 20:05:43 UTC\\n\\t\\t\\t3600
57
+ ; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t1800
58
+ ; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
59
+ \ NS NS2.DIGITALOCEAN.COM.\\n NS
60
+ \ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t198.211.100.176\\n\",\"error\":null,\"zone_file_with_error\":null}]}"
55
61
  http_version:
56
62
  recorded_at: Sat, 08 Jun 2013 17:03:38 GMT
57
63
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/30163/records?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/domains/30163/records?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK","records":[{"id":206982,"domain_id":30163,"record_type":"A","name":"@","data":"192.81.213.70","priority":null,"port":null,"weight":null},{"id":206983,"domain_id":30163,"record_type":"NS","name":null,"data":"NS1.DIGITALOCEAN.COM.","priority":null,"port":null,"weight":null},{"id":206984,"domain_id":30163,"record_type":"NS","name":null,"data":"NS2.DIGITALOCEAN.COM.","priority":null,"port":null,"weight":null},{"id":206985,"domain_id":30163,"record_type":"NS","name":null,"data":"NS3.DIGITALOCEAN.COM.","priority":null,"port":null,"weight":null}]}'
43
+ string: "{\"status\":\"OK\",\"records\":[{\"id\":206982,\"domain_id\":30163,\"record_type\":\"A\",\"name\":\"@\",\"data\":\"192.81.213.70\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206983,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS1.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206984,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS2.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206985,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS3.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null}]}"
44
44
  http_version:
45
45
  recorded_at: Sun, 09 Jun 2013 15:23:34 GMT
46
46
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/30163/records?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/domains/30163/records?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK","records":[{"id":206982,"domain_id":30163,"record_type":"A","name":"@","data":"192.81.213.70","priority":null,"port":null,"weight":null},{"id":206983,"domain_id":30163,"record_type":"NS","name":null,"data":"NS1.DIGITALOCEAN.COM.","priority":null,"port":null,"weight":null},{"id":206984,"domain_id":30163,"record_type":"NS","name":null,"data":"NS2.DIGITALOCEAN.COM.","priority":null,"port":null,"weight":null},{"id":206985,"domain_id":30163,"record_type":"NS","name":null,"data":"NS3.DIGITALOCEAN.COM.","priority":null,"port":null,"weight":null}]}'
43
+ string: "{\"status\":\"OK\",\"records\":[{\"id\":206982,\"domain_id\":30163,\"record_type\":\"A\",\"name\":\"@\",\"data\":\"192.81.213.70\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206983,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS1.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206984,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS2.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null},{\"id\":206985,\"domain_id\":30163,\"record_type\":\"NS\",\"name\":null,\"data\":\"NS3.DIGITALOCEAN.COM.\",\"priority\":null,\"port\":null,\"weight\":null}]}"
44
44
  http_version:
45
45
  recorded_at: Sun, 09 Jun 2013 15:26:20 GMT
46
46
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/26230?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/domains/26230?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,10 +40,12 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK","domain":{"id":26230,"name":"chefserver.do.cityhawk.ru","ttl":10800,"live_zone_file":"$TTL\t600\n@\t\tIN\tSOA\tNS1.DIGITALOCEAN.COM.\thostmaster.chefserver.do.cityhawk.ru.
44
- (\n\t\t\t1369610095 ; last update: 2013-05-26 23:14:55 UTC\n\t\t\t3600 ; refresh\n\t\t\t900
45
- ; retry\n\t\t\t1209600 ; expire\n\t\t\t10800 ; ttl\n\t\t\t)\n IN NS NS1.DIGITALOCEAN.COM.\n NS NS2.DIGITALOCEAN.COM.\n NS NS3.DIGITALOCEAN.COM.\n@\tIN
46
- A\t192.81.213.70\n","error":null,"zone_file_with_error":null}}'
43
+ string: "{\"status\":\"OK\",\"domain\":{\"id\":26230,\"name\":\"chefserver.do.cityhawk.ru\",\"ttl\":10800,\"live_zone_file\":\"$TTL\\t600\\n@\\t\\tIN\\tSOA\\tNS1.DIGITALOCEAN.COM.\\thostmaster.chefserver.do.cityhawk.ru.
44
+ (\\n\\t\\t\\t1369610095 ; last update: 2013-05-26 23:14:55 UTC\\n\\t\\t\\t3600
45
+ ; refresh\\n\\t\\t\\t900 ; retry\\n\\t\\t\\t1209600 ; expire\\n\\t\\t\\t10800
46
+ ; ttl\\n\\t\\t\\t)\\n IN NS NS1.DIGITALOCEAN.COM.\\n
47
+ \ NS NS2.DIGITALOCEAN.COM.\\n NS
48
+ \ NS3.DIGITALOCEAN.COM.\\n@\\tIN A\\t192.81.213.70\\n\",\"error\":null,\"zone_file_with_error\":null}}"
47
49
  http_version:
48
50
  recorded_at: Sat, 08 Jun 2013 17:17:59 GMT
49
51
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/domains/30163/records/206982?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/domains/30163/records/206982?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  - miss
41
41
  body:
42
42
  encoding: US-ASCII
43
- string: ! '{"status":"OK","record":{"id":206982,"domain_id":30163,"record_type":"A","name":"@","data":"192.81.213.70","priority":null,"port":null,"weight":null}}'
43
+ string: "{\"status\":\"OK\",\"record\":{\"id\":206982,\"domain_id\":30163,\"record_type\":\"A\",\"name\":\"@\",\"data\":\"192.81.213.70\",\"priority\":null,\"port\":null,\"weight\":null}}"
44
44
  http_version:
45
45
  recorded_at: Sun, 09 Jun 2013 15:30:49 GMT
46
46
  recorded_with: VCR 2.5.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/droplets/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&name=t1&size_id=66&image_id=25306&region_id=2
5
+ uri: https://api.digitalocean.com/droplets/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&image_id=25306&name=t1&region_id=2&size_id=66
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -44,7 +44,7 @@ http_interactions:
44
44
  - miss
45
45
  body:
46
46
  encoding: US-ASCII
47
- string: ! '{"status":"OK","droplet":{"id":106267,"name":"t1","image_id":25306,"size_id":66,"event_id":765542}}'
47
+ string: "{\"status\":\"OK\",\"droplet\":{\"id\":106267,\"name\":\"t1\",\"image_id\":25306,\"size_id\":66,\"event_id\":765542}}"
48
48
  http_version:
49
49
  recorded_at: Wed, 20 Feb 2013 11:05:16 GMT
50
50
  recorded_with: VCR 2.4.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/droplets/new?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&name=t1&size_id=66&image_id=25306&region_id=2
5
+ uri: https://api.digitalocean.com/droplets/new?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&image_id=25306&name=t1&region_id=2&size_id=66
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -44,7 +44,7 @@ http_interactions:
44
44
  - miss
45
45
  body:
46
46
  encoding: US-ASCII
47
- string: ! '{"status":"OK","droplet":{"id":106268,"name":"t1","image_id":25306,"size_id":66,"event_id":765543}}'
47
+ string: "{\"status\":\"OK\",\"droplet\":{\"id\":106268,\"name\":\"t1\",\"image_id\":25306,\"size_id\":66,\"event_id\":765543}}"
48
48
  http_version:
49
49
  recorded_at: Wed, 20 Feb 2013 11:05:17 GMT
50
50
  recorded_with: VCR 2.4.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: delete
5
- uri: https://api.digitalocean.com/droplets/106265/destroy?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&scrub_data=1
5
+ uri: https://api.digitalocean.com/droplets/106265/destroy?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX&scrub_data=1
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,7 +10,7 @@ http_interactions:
10
10
  response:
11
11
  status:
12
12
  code: 200
13
- message:
13
+ message:
14
14
  headers:
15
15
  server:
16
16
  - nginx
@@ -44,7 +44,7 @@ http_interactions:
44
44
  - invalidate, pass
45
45
  body:
46
46
  encoding: US-ASCII
47
- string: ! '{"status":"OK","event_id":765555}'
48
- http_version:
47
+ string: "{\"status\":\"OK\",\"event_id\":765555}"
48
+ http_version:
49
49
  recorded_at: Wed, 20 Feb 2013 11:05:27 GMT
50
50
  recorded_with: VCR 2.4.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://api.digitalocean.com/droplets/106265/disable_backups?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/droplets/106265/disable_backups?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -44,7 +44,7 @@ http_interactions:
44
44
  - invalidate, pass
45
45
  body:
46
46
  encoding: US-ASCII
47
- string: ! '{"status":"OK","event_id":765554}'
47
+ string: "{\"status\":\"OK\",\"event_id\":765554}"
48
48
  http_version:
49
49
  recorded_at: Wed, 20 Feb 2013 11:05:26 GMT
50
50
  recorded_with: VCR 2.4.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://api.digitalocean.com/droplets/106265/enable_backups?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/droplets/106265/enable_backups?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -44,7 +44,7 @@ http_interactions:
44
44
  - invalidate, pass
45
45
  body:
46
46
  encoding: US-ASCII
47
- string: ! '{"status":"OK","event_id":765553}'
47
+ string: "{\"status\":\"OK\",\"event_id\":765553}"
48
48
  http_version:
49
49
  recorded_at: Wed, 20 Feb 2013 11:05:25 GMT
50
50
  recorded_with: VCR 2.4.0