digital_ocean 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/.gitignore +0 -1
  2. data/CHANGELOG.md +40 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +114 -2
  5. data/digital_ocean.gemspec +1 -0
  6. data/doc/DigitalOcean/API.html +844 -0
  7. data/doc/DigitalOcean/AuthenticationMiddleware.html +342 -0
  8. data/doc/DigitalOcean/Resource/Base.html +206 -0
  9. data/doc/DigitalOcean/Resource/Droplet.html +1016 -0
  10. data/doc/DigitalOcean/Resource/Image.html +312 -0
  11. data/doc/DigitalOcean/Resource/Region.html +247 -0
  12. data/doc/DigitalOcean/Resource/SSHKey.html +312 -0
  13. data/doc/DigitalOcean/Resource/Size.html +208 -0
  14. data/doc/DigitalOcean/Resource.html +117 -0
  15. data/doc/DigitalOcean.html +131 -0
  16. data/doc/_index.html +213 -0
  17. data/doc/class_list.html +53 -0
  18. data/doc/css/common.css +1 -0
  19. data/doc/css/full_list.css +57 -0
  20. data/doc/css/style.css +328 -0
  21. data/doc/file.README.html +402 -0
  22. data/doc/file_list.html +55 -0
  23. data/doc/frames.html +28 -0
  24. data/doc/index.html +402 -0
  25. data/doc/js/app.js +214 -0
  26. data/doc/js/full_list.js +173 -0
  27. data/doc/js/jquery.js +4 -0
  28. data/doc/method_list.html +332 -0
  29. data/doc/top-level-namespace.html +112 -0
  30. data/lib/digital_ocean/api.rb +28 -0
  31. data/lib/digital_ocean/resource/droplet.rb +2 -2
  32. data/lib/digital_ocean/resource/region.rb +3 -0
  33. data/lib/digital_ocean/version.rb +1 -1
  34. data/spec/api_spec.rb +8 -4
  35. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_be_successful.yml +7 -5
  36. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_return_droplet_id.yml +50 -0
  37. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_delete/should_be_successful.yml +8 -6
  38. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_disable_backups/should_be_successful.yml +8 -6
  39. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_enable_backups/should_be_successful.yml +8 -6
  40. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_be_successful.yml +7 -5
  41. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_return_a_list_of_all_droplets.yml +7 -5
  42. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/{_reset_root_password → _password_reset}/should_be_successful.yml +10 -9
  43. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_cycle/should_be_successful.yml +8 -6
  44. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_off/should_be_successful.yml +8 -6
  45. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_on/should_be_successful.yml +8 -6
  46. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_reboot/should_be_successful.yml +8 -6
  47. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_rebuild/should_be_successful.yml +8 -6
  48. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_resize/should_be_successful.yml +8 -6
  49. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_restore/should_be_successful.yml +1 -1
  50. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_show/should_be_successful.yml +6 -4
  51. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_shutdown/should_be_successful.yml +8 -6
  52. data/spec/vcr/cassettes/DigitalOcean_API/_droplets/_snapshot/should_be_successful.yml +8 -6
  53. metadata +34 -7
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.digitalocean.com/droplets/87071/snapshot?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&name=test_snapshot_1
5
+ uri: https://api.digitalocean.com/droplets/106265/snapshot?client_id=client_id_XXXXXXXXXXXXXXXXXXX&api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&name=test_snapshot_1
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -15,7 +15,7 @@ http_interactions:
15
15
  server:
16
16
  - nginx
17
17
  date:
18
- - Thu, 24 Jan 2013 09:48:01 GMT
18
+ - Wed, 20 Feb 2013 11:05:23 GMT
19
19
  content-type:
20
20
  - application/json; charset=utf-8
21
21
  transfer-encoding:
@@ -26,6 +26,8 @@ http_interactions:
26
26
  - '200'
27
27
  x-powered-by:
28
28
  - Phusion Passenger (mod_rails/mod_rack) 3.0.11
29
+ strict-transport-security:
30
+ - max-age=31536000
29
31
  x-ua-compatible:
30
32
  - IE=Edge,chrome=1
31
33
  etag:
@@ -35,14 +37,14 @@ http_interactions:
35
37
  set-cookie:
36
38
  - _digitalocean2_session=wtf
37
39
  x-request-id:
38
- - adb7af95465c9c789ec2dc0144296a9f
40
+ - f19d16a7cd6b33c06728d878004747a3
39
41
  x-runtime:
40
- - '0.685729'
42
+ - '0.127300'
41
43
  x-rack-cache:
42
44
  - miss
43
45
  body:
44
46
  encoding: US-ASCII
45
- string: ! '{"status":"OK","event_id":594682}'
47
+ string: ! '{"status":"OK","event_id":765551}'
46
48
  http_version:
47
- recorded_at: Thu, 24 Jan 2013 09:48:01 GMT
49
+ recorded_at: Wed, 20 Feb 2013 11:05:23 GMT
48
50
  recorded_with: VCR 2.4.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digital_ocean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-24 00:00:00.000000000 Z
12
+ date: 2013-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -213,12 +213,37 @@ files:
213
213
  - .gitignore
214
214
  - .rspec
215
215
  - .travis.yml
216
+ - CHANGELOG.md
216
217
  - Gemfile
217
218
  - Guardfile
218
219
  - LICENSE.txt
219
220
  - README.md
220
221
  - Rakefile
221
222
  - digital_ocean.gemspec
223
+ - doc/DigitalOcean.html
224
+ - doc/DigitalOcean/API.html
225
+ - doc/DigitalOcean/AuthenticationMiddleware.html
226
+ - doc/DigitalOcean/Resource.html
227
+ - doc/DigitalOcean/Resource/Base.html
228
+ - doc/DigitalOcean/Resource/Droplet.html
229
+ - doc/DigitalOcean/Resource/Image.html
230
+ - doc/DigitalOcean/Resource/Region.html
231
+ - doc/DigitalOcean/Resource/SSHKey.html
232
+ - doc/DigitalOcean/Resource/Size.html
233
+ - doc/_index.html
234
+ - doc/class_list.html
235
+ - doc/css/common.css
236
+ - doc/css/full_list.css
237
+ - doc/css/style.css
238
+ - doc/file.README.html
239
+ - doc/file_list.html
240
+ - doc/frames.html
241
+ - doc/index.html
242
+ - doc/js/app.js
243
+ - doc/js/full_list.js
244
+ - doc/js/jquery.js
245
+ - doc/method_list.html
246
+ - doc/top-level-namespace.html
222
247
  - lib/digital_ocean.rb
223
248
  - lib/digital_ocean/api.rb
224
249
  - lib/digital_ocean/authentication_middleware.rb
@@ -235,17 +260,18 @@ files:
235
260
  - spec/spec_helper.rb
236
261
  - spec/support/vcr.rb
237
262
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_be_successful.yml
263
+ - spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_return_droplet_id.yml
238
264
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_delete/should_be_successful.yml
239
265
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_disable_backups/should_be_successful.yml
240
266
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_enable_backups/should_be_successful.yml
241
267
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_be_successful.yml
242
268
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_return_a_list_of_all_droplets.yml
269
+ - spec/vcr/cassettes/DigitalOcean_API/_droplets/_password_reset/should_be_successful.yml
243
270
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_cycle/should_be_successful.yml
244
271
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_off/should_be_successful.yml
245
272
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_on/should_be_successful.yml
246
273
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_reboot/should_be_successful.yml
247
274
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_rebuild/should_be_successful.yml
248
- - spec/vcr/cassettes/DigitalOcean_API/_droplets/_reset_root_password/should_be_successful.yml
249
275
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_resize/should_be_successful.yml
250
276
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_restore/should_be_successful.yml
251
277
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_show/should_be_successful.yml
@@ -291,7 +317,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
291
317
  version: '0'
292
318
  segments:
293
319
  - 0
294
- hash: -4331574479850875147
320
+ hash: 3303230172234481898
295
321
  required_rubygems_version: !ruby/object:Gem::Requirement
296
322
  none: false
297
323
  requirements:
@@ -300,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
326
  version: '0'
301
327
  segments:
302
328
  - 0
303
- hash: -4331574479850875147
329
+ hash: 3303230172234481898
304
330
  requirements: []
305
331
  rubyforge_project:
306
332
  rubygems_version: 1.8.23
@@ -313,17 +339,18 @@ test_files:
313
339
  - spec/spec_helper.rb
314
340
  - spec/support/vcr.rb
315
341
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_be_successful.yml
342
+ - spec/vcr/cassettes/DigitalOcean_API/_droplets/_create/should_return_droplet_id.yml
316
343
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_delete/should_be_successful.yml
317
344
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_disable_backups/should_be_successful.yml
318
345
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_enable_backups/should_be_successful.yml
319
346
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_be_successful.yml
320
347
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_list/should_return_a_list_of_all_droplets.yml
348
+ - spec/vcr/cassettes/DigitalOcean_API/_droplets/_password_reset/should_be_successful.yml
321
349
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_cycle/should_be_successful.yml
322
350
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_off/should_be_successful.yml
323
351
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_power_on/should_be_successful.yml
324
352
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_reboot/should_be_successful.yml
325
353
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_rebuild/should_be_successful.yml
326
- - spec/vcr/cassettes/DigitalOcean_API/_droplets/_reset_root_password/should_be_successful.yml
327
354
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_resize/should_be_successful.yml
328
355
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_restore/should_be_successful.yml
329
356
  - spec/vcr/cassettes/DigitalOcean_API/_droplets/_show/should_be_successful.yml
@@ -354,4 +381,4 @@ test_files:
354
381
  - spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/valid/should_be_successful.yml
355
382
  - spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/valid/should_return_a_list_of_all_SSH_keys.yml
356
383
  - spec/vcr/cassettes/DigitalOcean_API/_ssh_keys/_show/valid/should_return_the_public_keykey.yml
357
- has_rdoc:
384
+ has_rdoc: yard