fog-brightbox 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/lib/fog/brightbox.rb +1 -0
  4. data/lib/fog/brightbox/config.rb +102 -2
  5. data/lib/fog/brightbox/core.rb +1 -0
  6. data/lib/fog/brightbox/models/compute/api_client.rb +3 -1
  7. data/lib/fog/brightbox/models/storage/directories.rb +45 -0
  8. data/lib/fog/brightbox/models/storage/directory.rb +53 -0
  9. data/lib/fog/brightbox/models/storage/file.rb +166 -0
  10. data/lib/fog/brightbox/models/storage/files.rb +104 -0
  11. data/lib/fog/brightbox/oauth2.rb +140 -136
  12. data/lib/fog/brightbox/requests/storage/copy_object.rb +27 -0
  13. data/lib/fog/brightbox/requests/storage/delete_container.rb +22 -0
  14. data/lib/fog/brightbox/requests/storage/delete_multiple_objects.rb +67 -0
  15. data/lib/fog/brightbox/requests/storage/delete_object.rb +23 -0
  16. data/lib/fog/brightbox/requests/storage/delete_static_large_object.rb +43 -0
  17. data/lib/fog/brightbox/requests/storage/get_container.rb +44 -0
  18. data/lib/fog/brightbox/requests/storage/get_containers.rb +33 -0
  19. data/lib/fog/brightbox/requests/storage/get_object.rb +29 -0
  20. data/lib/fog/brightbox/requests/storage/get_object_http_url.rb +21 -0
  21. data/lib/fog/brightbox/requests/storage/get_object_https_url.rb +85 -0
  22. data/lib/fog/brightbox/requests/storage/head_container.rb +28 -0
  23. data/lib/fog/brightbox/requests/storage/head_containers.rb +25 -0
  24. data/lib/fog/brightbox/requests/storage/head_object.rb +23 -0
  25. data/lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb +37 -0
  26. data/lib/fog/brightbox/requests/storage/put_container.rb +27 -0
  27. data/lib/fog/brightbox/requests/storage/put_dynamic_obj_manifest.rb +43 -0
  28. data/lib/fog/brightbox/requests/storage/put_object.rb +42 -0
  29. data/lib/fog/brightbox/requests/storage/put_object_manifest.rb +16 -0
  30. data/lib/fog/brightbox/requests/storage/put_static_obj_manifest.rb +57 -0
  31. data/lib/fog/brightbox/storage.rb +166 -0
  32. data/lib/fog/brightbox/storage/authentication_request.rb +52 -0
  33. data/lib/fog/brightbox/storage/config.rb +23 -0
  34. data/lib/fog/brightbox/storage/connection.rb +83 -0
  35. data/lib/fog/brightbox/storage/errors.rb +11 -0
  36. data/lib/fog/brightbox/version.rb +1 -1
  37. data/spec/fog/brightbox/config_spec.rb +62 -1
  38. data/spec/fog/brightbox/storage/authentication_request_spec.rb +77 -0
  39. data/spec/fog/brightbox/storage/config_spec.rb +40 -0
  40. data/spec/fog/brightbox/storage/connection_errors_spec.rb +54 -0
  41. data/spec/fog/brightbox/storage/connection_spec.rb +120 -0
  42. data/spec/fog/storage/brightbox_spec.rb +290 -0
  43. metadata +40 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-brightbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Thornthwaite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-12 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -186,6 +186,10 @@ files:
186
186
  - lib/fog/brightbox/models/compute/users.rb
187
187
  - lib/fog/brightbox/models/compute/zone.rb
188
188
  - lib/fog/brightbox/models/compute/zones.rb
189
+ - lib/fog/brightbox/models/storage/directories.rb
190
+ - lib/fog/brightbox/models/storage/directory.rb
191
+ - lib/fog/brightbox/models/storage/file.rb
192
+ - lib/fog/brightbox/models/storage/files.rb
189
193
  - lib/fog/brightbox/oauth2.rb
190
194
  - lib/fog/brightbox/requests/compute/accept_user_collaboration.rb
191
195
  - lib/fog/brightbox/requests/compute/activate_console_server.rb
@@ -301,9 +305,37 @@ files:
301
305
  - lib/fog/brightbox/requests/compute/update_server.rb
302
306
  - lib/fog/brightbox/requests/compute/update_server_group.rb
303
307
  - lib/fog/brightbox/requests/compute/update_user.rb
308
+ - lib/fog/brightbox/requests/storage/copy_object.rb
309
+ - lib/fog/brightbox/requests/storage/delete_container.rb
310
+ - lib/fog/brightbox/requests/storage/delete_multiple_objects.rb
311
+ - lib/fog/brightbox/requests/storage/delete_object.rb
312
+ - lib/fog/brightbox/requests/storage/delete_static_large_object.rb
313
+ - lib/fog/brightbox/requests/storage/get_container.rb
314
+ - lib/fog/brightbox/requests/storage/get_containers.rb
315
+ - lib/fog/brightbox/requests/storage/get_object.rb
316
+ - lib/fog/brightbox/requests/storage/get_object_http_url.rb
317
+ - lib/fog/brightbox/requests/storage/get_object_https_url.rb
318
+ - lib/fog/brightbox/requests/storage/head_container.rb
319
+ - lib/fog/brightbox/requests/storage/head_containers.rb
320
+ - lib/fog/brightbox/requests/storage/head_object.rb
321
+ - lib/fog/brightbox/requests/storage/post_set_meta_temp_url_key.rb
322
+ - lib/fog/brightbox/requests/storage/put_container.rb
323
+ - lib/fog/brightbox/requests/storage/put_dynamic_obj_manifest.rb
324
+ - lib/fog/brightbox/requests/storage/put_object.rb
325
+ - lib/fog/brightbox/requests/storage/put_object_manifest.rb
326
+ - lib/fog/brightbox/requests/storage/put_static_obj_manifest.rb
327
+ - lib/fog/brightbox/storage.rb
328
+ - lib/fog/brightbox/storage/authentication_request.rb
329
+ - lib/fog/brightbox/storage/config.rb
330
+ - lib/fog/brightbox/storage/connection.rb
331
+ - lib/fog/brightbox/storage/errors.rb
304
332
  - lib/fog/brightbox/version.rb
305
333
  - spec/fog/brightbox/compute/config_spec.rb
306
334
  - spec/fog/brightbox/config_spec.rb
335
+ - spec/fog/brightbox/storage/authentication_request_spec.rb
336
+ - spec/fog/brightbox/storage/config_spec.rb
337
+ - spec/fog/brightbox/storage/connection_errors_spec.rb
338
+ - spec/fog/brightbox/storage/connection_spec.rb
307
339
  - spec/fog/compute/brightbox/account_spec.rb
308
340
  - spec/fog/compute/brightbox/api_client_spec.rb
309
341
  - spec/fog/compute/brightbox/application_spec.rb
@@ -323,6 +355,7 @@ files:
323
355
  - spec/fog/compute/brightbox/user_spec.rb
324
356
  - spec/fog/compute/brightbox/zone_spec.rb
325
357
  - spec/fog/compute/brightbox_spec.rb
358
+ - spec/fog/storage/brightbox_spec.rb
326
359
  - spec/model_helper.rb
327
360
  - spec/model_setup.rb
328
361
  - spec/spec_helper.rb
@@ -355,6 +388,10 @@ summary: This library can be used as a module for `fog` or as standalone provide
355
388
  test_files:
356
389
  - spec/fog/brightbox/compute/config_spec.rb
357
390
  - spec/fog/brightbox/config_spec.rb
391
+ - spec/fog/brightbox/storage/authentication_request_spec.rb
392
+ - spec/fog/brightbox/storage/config_spec.rb
393
+ - spec/fog/brightbox/storage/connection_errors_spec.rb
394
+ - spec/fog/brightbox/storage/connection_spec.rb
358
395
  - spec/fog/compute/brightbox/account_spec.rb
359
396
  - spec/fog/compute/brightbox/api_client_spec.rb
360
397
  - spec/fog/compute/brightbox/application_spec.rb
@@ -374,8 +411,8 @@ test_files:
374
411
  - spec/fog/compute/brightbox/user_spec.rb
375
412
  - spec/fog/compute/brightbox/zone_spec.rb
376
413
  - spec/fog/compute/brightbox_spec.rb
414
+ - spec/fog/storage/brightbox_spec.rb
377
415
  - spec/model_helper.rb
378
416
  - spec/model_setup.rb
379
417
  - spec/spec_helper.rb
380
418
  - spec/supports_resource_locking.rb
381
- has_rdoc: