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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/ssh_keys/3738?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/ssh_keys/3738?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -42,9 +42,9 @@ http_interactions:
42
42
  - miss
43
43
  body:
44
44
  encoding: US-ASCII
45
- string: ! '{"status":"OK","ssh_key":{"id":3738,"name":"default","ssh_pub_key":"ssh-dss
45
+ string: "{\"status\":\"OK\",\"ssh_key\":{\"id\":3738,\"name\":\"default\",\"ssh_pub_key\":\"ssh-dss
46
46
  AAAAB3NzaC1kc3MAAACBAPThLrORruKPqm9B9WQ3Sc215mytV0R0tmGX3LowdFwLrsuhshgBQc0jQzXMrr4V+INn51ICHnNVQAgNdpglexvkevyGIw2uWqeKhHOFwKX4/vrFeCtb+MNFiI4bTuAZ2WPOrUqm9gXal3VysanjK3DQ9HxNQUjHOcPVMXrm2OzvAAAAFQCHMswAbrQ/stlOaAjz0tyxHGEHywAAAIEA0SmM7J6nZhhvY2HTviFDBsyq1acRAQ0t3ZOY030Z4XE56JvMGgkIl1ioejVNObWyNs5omSO+zpntBrvVdl2+dKe8OxUH5YS54rNA1hkJmcoPla3P/oVqvRsVoFdWjOv/KeWFoBdC/x/KGdVsI0/vJF6jpnrjkOKcGR0ih4ss29wAAACBALZxAEu9qlgTaGNPc0J041UMmbROlgayVZ0HlhqQn7jd1jjqmtJeNlG86axtbza2F3VwOhXmegTLLMHowlOoLLLzB3cCgYLT0N98uov3+1nAudnTmUVujBHNwa/oAH+1pE94ob/BPgef2mp59LRgMaes1/u8yOCURcrWU4oPsEO5
47
- rmoriz@moriz\r\n"}}'
47
+ rmoriz@moriz\\r\\n\"}}"
48
48
  http_version:
49
49
  recorded_at: Wed, 23 Jan 2013 20:12:12 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/ssh_keys/3738?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
5
+ uri: https://api.digitalocean.com/ssh_keys/3738?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&client_id=client_id_XXXXXXXXXXXXXXXXXXX
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -42,9 +42,9 @@ http_interactions:
42
42
  - miss
43
43
  body:
44
44
  encoding: US-ASCII
45
- string: ! '{"status":"OK","ssh_key":{"id":3738,"name":"default","ssh_pub_key":"ssh-dss
45
+ string: "{\"status\":\"OK\",\"ssh_key\":{\"id\":3738,\"name\":\"default\",\"ssh_pub_key\":\"ssh-dss
46
46
  AAAAB3NzaC1kc3MAAACBAPThLrORruKPqm9B9WQ3Sc215mytV0R0tmGX3LowdFwLrsuhshgBQc0jQzXMrr4V+INn51ICHnNVQAgNdpglexvkevyGIw2uWqeKhHOFwKX4/vrFeCtb+MNFiI4bTuAZ2WPOrUqm9gXal3VysanjK3DQ9HxNQUjHOcPVMXrm2OzvAAAAFQCHMswAbrQ/stlOaAjz0tyxHGEHywAAAIEA0SmM7J6nZhhvY2HTviFDBsyq1acRAQ0t3ZOY030Z4XE56JvMGgkIl1ioejVNObWyNs5omSO+zpntBrvVdl2+dKe8OxUH5YS54rNA1hkJmcoPla3P/oVqvRsVoFdWjOv/KeWFoBdC/x/KGdVsI0/vJF6jpnrjkOKcGR0ih4ss29wAAACBALZxAEu9qlgTaGNPc0J041UMmbROlgayVZ0HlhqQn7jd1jjqmtJeNlG86axtbza2F3VwOhXmegTLLMHowlOoLLLzB3cCgYLT0N98uov3+1nAudnTmUVujBHNwa/oAH+1pE94ob/BPgef2mp59LRgMaes1/u8yOCURcrWU4oPsEO5
47
- rmoriz@moriz\r\n"}}'
47
+ rmoriz@moriz\\r\\n\"}}"
48
48
  http_version:
49
49
  recorded_at: Wed, 23 Jan 2013 20:13:12 GMT
50
50
  recorded_with: VCR 2.4.0
metadata CHANGED
@@ -1,153 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digital_ocean
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roland Moriz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-30 00:00:00.000000000 Z
11
+ date: 2014-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.7
19
+ version: 0.9.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.7
26
+ version: 0.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.9.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.9.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rash
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: vcr
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '2.4'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '2.4'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: fakeweb
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: 1.3.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.3.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: yard
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: coveralls
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  description: A Ruby gem to interact with DigitalOcean, a cloud hosting provider
@@ -157,9 +157,9 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
- - .gitignore
161
- - .rspec
162
- - .travis.yml
160
+ - ".gitignore"
161
+ - ".rspec"
162
+ - ".travis.yml"
163
163
  - CHANGELOG.md
164
164
  - Gemfile
165
165
  - Guardfile
@@ -274,17 +274,17 @@ require_paths:
274
274
  - lib
275
275
  required_ruby_version: !ruby/object:Gem::Requirement
276
276
  requirements:
277
- - - '>='
277
+ - - ">="
278
278
  - !ruby/object:Gem::Version
279
279
  version: '0'
280
280
  required_rubygems_version: !ruby/object:Gem::Requirement
281
281
  requirements:
282
- - - '>='
282
+ - - ">="
283
283
  - !ruby/object:Gem::Version
284
284
  version: '0'
285
285
  requirements: []
286
286
  rubyforge_project:
287
- rubygems_version: 2.0.14
287
+ rubygems_version: 2.2.2
288
288
  signing_key:
289
289
  specification_version: 4
290
290
  summary: This gem wraps the DigitalOcean API documented at https://api.digitalocean.com/