fog-brightbox 1.0.0.rc2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -1
  3. data/README.md +3 -4
  4. data/lib/fog/brightbox/models/compute/api_client.rb +1 -1
  5. data/lib/fog/brightbox/models/compute/cloud_ip.rb +1 -1
  6. data/lib/fog/brightbox/models/compute/collaboration.rb +1 -1
  7. data/lib/fog/brightbox/models/compute/collaborations.rb +1 -1
  8. data/lib/fog/brightbox/models/compute/database_server.rb +1 -1
  9. data/lib/fog/brightbox/models/compute/database_snapshot.rb +1 -1
  10. data/lib/fog/brightbox/models/compute/firewall_policy.rb +1 -1
  11. data/lib/fog/brightbox/models/compute/firewall_rule.rb +1 -1
  12. data/lib/fog/brightbox/models/compute/image.rb +1 -1
  13. data/lib/fog/brightbox/models/compute/load_balancer.rb +1 -1
  14. data/lib/fog/brightbox/models/compute/server.rb +1 -1
  15. data/lib/fog/brightbox/models/compute/server_group.rb +1 -1
  16. data/lib/fog/brightbox/models/compute/user_collaboration.rb +1 -1
  17. data/lib/fog/brightbox/models/compute/user_collaborations.rb +1 -1
  18. data/lib/fog/brightbox/version.rb +1 -1
  19. data/tests/brightbox/requests/compute/api_client_tests.rb +2 -2
  20. data/tests/brightbox/requests/compute/application_test.rb +2 -2
  21. data/tests/brightbox/requests/compute/cloud_ip_tests.rb +2 -2
  22. data/tests/brightbox/requests/compute/collaboration_tests.rb +2 -2
  23. data/tests/brightbox/requests/compute/database_server_tests.rb +2 -2
  24. data/tests/brightbox/requests/compute/database_snapsnot_tests.rb +2 -2
  25. data/tests/brightbox/requests/compute/firewall_policy_tests.rb +2 -2
  26. data/tests/brightbox/requests/compute/firewall_rule_tests.rb +2 -2
  27. data/tests/brightbox/requests/compute/image_tests.rb +2 -2
  28. data/tests/brightbox/requests/compute/load_balancer_tests.rb +2 -2
  29. data/tests/brightbox/requests/compute/server_group_tests.rb +2 -2
  30. data/tests/brightbox/requests/compute/server_tests.rb +2 -2
  31. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 596dfd578ca96a4cee58e9c7f08ee7b12138418928e1d87aad063f60338c6021
4
- data.tar.gz: 91cb8da6872fdb3f58d77d21dee833cbbd2498cac588cb63fd6960e2201d2150
3
+ metadata.gz: 92365de2ab00f6e4c7a66c4acc2d7a6e33e74d26069bedfc68ff418f5dfb2056
4
+ data.tar.gz: 1211cea76e6b6345d852308cdf8198c9db4a942859e5df3e4dd9aad8dd128d29
5
5
  SHA512:
6
- metadata.gz: 89373d00211b08167c72f1784a86b5c739047e09da4a5b5e529a916fadefe94e567ad4eba5f2da4cbf48e5456420f18345281253feb54ab7899d5717c1e842d3
7
- data.tar.gz: 6b8fc01d4b0cbb91a69cdab24cdc2d0b4cf3a7a38f24fa458ece9951cdcc840f08625484babd9ee65687e378a7dab86172971bff7a3ffa9ba2f6242e343da3f1
6
+ metadata.gz: 1a7db03027f2d25e710d6562d02f6c373140d90841807961e2deb10d169a48f746bd4b731b4f45a07a48f9fd18bf8b437f14e2fa11dd6b38294e20521117279e
7
+ data.tar.gz: cd3dd7be1ac30a847d0b60d89a7c9c3ab4c688a26074833870a9baa58e6265ad99c17e7dd8195222485c9f4f350c07850c06b92cfdda98202d627f2476f3d11b
@@ -1,4 +1,4 @@
1
- ### Master
1
+ ### 1.0.0 / 2018-10-05
2
2
 
3
3
  Major Changes:
4
4
 
@@ -10,6 +10,15 @@ Major Changes:
10
10
  did not require identifiers and were treated as the authenticated user.
11
11
  * Remove deprecated `Compute#request` multiple argument version.
12
12
  * Remove deprecated `#destroy_(resource)` requests.
13
+ * Fix `#destroy_(resource)` references in models.
14
+
15
+ ### 0.16.1 / 2018-09-07
16
+
17
+ Bug fixes:
18
+
19
+ * Fix ordering issue between declaration of fog services and `autoload` modules.
20
+ Changes in `fog-core` would reference modules before available in autoload so
21
+ caused a name error.
13
22
 
14
23
  ### 0.16.0 / 2018-09-04
15
24
 
data/README.md CHANGED
@@ -39,11 +39,10 @@ and its modules:
39
39
  * http://fog.io/
40
40
  * http://rubydoc.info/gems/fog/
41
41
 
42
- ### Ruby 1.8.7
42
+ ### Ruby version support
43
43
 
44
- If you are still using Ruby 1.8.7 in production, see `gemfiles/Gemfile.1.8.7`
45
- for a gemfile of 1.8.7 compatible version of dependencies you may need to
46
- specify in your application's `Gemfile`
44
+ As required by the main `fog-core` library, support for Ruby 1.9 was dropped in
45
+ `v1.0.0` of this gem.
47
46
 
48
47
  ## Contributing
49
48
 
@@ -24,7 +24,7 @@ module Fog
24
24
 
25
25
  def destroy
26
26
  requires :identity
27
- service.destroy_api_client(identity)
27
+ service.delete_api_client(identity)
28
28
  true
29
29
  end
30
30
 
@@ -53,7 +53,7 @@ module Fog
53
53
 
54
54
  def destroy
55
55
  requires :identity
56
- service.destroy_cloud_ip(identity)
56
+ service.delete_cloud_ip(identity)
57
57
  end
58
58
 
59
59
  def destination_id
@@ -37,7 +37,7 @@ module Fog
37
37
 
38
38
  def destroy
39
39
  requires :identity
40
- data = service.destroy_collaboration(identity)
40
+ data = service.delete_collaboration(identity)
41
41
  merge_attributes(data)
42
42
  true
43
43
  end
@@ -37,7 +37,7 @@ module Fog
37
37
 
38
38
  def destroy
39
39
  requires :identity
40
- service.destroy_collaboration(identity)
40
+ service.delete_collaboration(identity)
41
41
  true
42
42
  end
43
43
  end
@@ -81,7 +81,7 @@ module Fog
81
81
 
82
82
  def destroy
83
83
  requires :identity
84
- merge_attributes(service.destroy_database_server(identity))
84
+ merge_attributes(service.delete_database_server(identity))
85
85
  true
86
86
  end
87
87
 
@@ -39,7 +39,7 @@ module Fog
39
39
 
40
40
  def destroy
41
41
  requires :identity
42
- merge_attributes(service.destroy_database_snapshot(identity))
42
+ merge_attributes(service.delete_database_snapshot(identity))
43
43
  true
44
44
  end
45
45
 
@@ -50,7 +50,7 @@ module Fog
50
50
 
51
51
  def destroy
52
52
  requires :identity
53
- service.destroy_firewall_policy(identity)
53
+ service.delete_firewall_policy(identity)
54
54
  true
55
55
  end
56
56
  end
@@ -39,7 +39,7 @@ module Fog
39
39
 
40
40
  def destroy
41
41
  requires :identity
42
- service.destroy_firewall_rule(identity)
42
+ service.delete_firewall_rule(identity)
43
43
  true
44
44
  end
45
45
  end
@@ -53,7 +53,7 @@ module Fog
53
53
 
54
54
  def destroy
55
55
  requires :identity
56
- service.destroy_image(identity)
56
+ service.delete_image(identity)
57
57
  true
58
58
  end
59
59
  end
@@ -67,7 +67,7 @@ module Fog
67
67
 
68
68
  def destroy
69
69
  requires :identity
70
- service.destroy_load_balancer(identity)
70
+ service.delete_load_balancer(identity)
71
71
  true
72
72
  end
73
73
 
@@ -127,7 +127,7 @@ module Fog
127
127
 
128
128
  def destroy
129
129
  requires :identity
130
- service.destroy_server(identity)
130
+ service.delete_server(identity)
131
131
  true
132
132
  end
133
133
 
@@ -76,7 +76,7 @@ module Fog
76
76
 
77
77
  def destroy
78
78
  requires :identity
79
- service.destroy_server_group(identity)
79
+ service.delete_server_group(identity)
80
80
  true
81
81
  end
82
82
 
@@ -31,7 +31,7 @@ module Fog
31
31
 
32
32
  def destroy
33
33
  requires :identity
34
- data = service.destroy_user_collaboration(identity)
34
+ data = service.delete_user_collaboration(identity)
35
35
  merge_attributes(data)
36
36
  true
37
37
  end
@@ -21,7 +21,7 @@ module Fog
21
21
 
22
22
  def destroy
23
23
  requires :identity
24
- service.destroy_user_collaboration(identity)
24
+ service.delete_user_collaboration(identity)
25
25
  true
26
26
  end
27
27
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Brightbox
3
- VERSION = "1.0.0.rc2"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -38,9 +38,9 @@ Shindo.tests("Fog::Compute[:brightbox] | api client requests", ["brightbox"]) do
38
38
  test("new secret is visible") { !result["secret"].nil? }
39
39
  end
40
40
 
41
- tests("#destroy_api_client('#{@api_client_id}')") do
41
+ tests("#delete_api_client('#{@api_client_id}')") do
42
42
  pending if Fog.mocking?
43
- result = Fog::Compute[:brightbox].destroy_api_client(@api_client_id)
43
+ result = Fog::Compute[:brightbox].delete_api_client(@api_client_id)
44
44
  data_matches_schema(Brightbox::Compute::Formats::Full::API_CLIENT, :allow_extra_keys => true) { result }
45
45
  end
46
46
  end
@@ -37,9 +37,9 @@ Shindo.tests("Fog::Compute[:brightbox] | api client requests", ["brightbox"]) do
37
37
  test("new secret is visible") { !result["secret"].nil? }
38
38
  end
39
39
 
40
- tests("#destroy_application('#{@application_id}')") do
40
+ tests("#delete_application('#{@application_id}')") do
41
41
  pending if Fog.mocking?
42
- result = Fog::Compute[:brightbox].destroy_application(@application_id)
42
+ result = Fog::Compute[:brightbox].delete_application(@application_id)
43
43
  data_matches_schema(Brightbox::Compute::Formats::Full::APPLICATION, :allow_extra_keys => true) { result }
44
44
  end
45
45
  end
@@ -54,9 +54,9 @@ Shindo.tests("Fog::Compute[:brightbox] | cloud ip requests", ["brightbox"]) do
54
54
  result = Fog::Compute[:brightbox].update_cloud_ip(@cloud_ip_id, :reverse_dns => "")
55
55
  end
56
56
 
57
- tests("#destroy_cloud_ip('#{@cloud_ip_id}')") do
57
+ tests("#delete_cloud_ip('#{@cloud_ip_id}')") do
58
58
  pending if Fog.mocking?
59
- result = Fog::Compute[:brightbox].destroy_cloud_ip(@cloud_ip_id)
59
+ result = Fog::Compute[:brightbox].delete_cloud_ip(@cloud_ip_id)
60
60
  data_matches_schema(Brightbox::Compute::Formats::Full::CLOUD_IP, :allow_extra_keys => true) { result }
61
61
  end
62
62
 
@@ -20,9 +20,9 @@ Shindo.tests("Fog::Compute[:brightbox] | collaboration requests", ["brightbox"])
20
20
  formats(Brightbox::Compute::Formats::Full::COLLABORATION, false) { result }
21
21
  end
22
22
 
23
- tests("#destroy_collaboration") do
23
+ tests("#delete_collaboration") do
24
24
  pending if Fog.mocking?
25
- result = Fog::Compute[:brightbox].destroy_collaboration(@collaboration_id)
25
+ result = Fog::Compute[:brightbox].delete_collaboration(@collaboration_id)
26
26
  formats(Brightbox::Compute::Formats::Full::COLLABORATION, false) { result }
27
27
  end
28
28
  end
@@ -35,8 +35,8 @@ Shindo.tests("Fog::Compute[:brightbox] | database server requests", ["brightbox"
35
35
  test("new password is visible") { !result["admin_password"].nil? }
36
36
  end
37
37
 
38
- tests("#destroy_database_server('#{@database_server_id}')") do
39
- result = Fog::Compute[:brightbox].destroy_database_server(@database_server_id)
38
+ tests("#delete_database_server('#{@database_server_id}')") do
39
+ result = Fog::Compute[:brightbox].delete_database_server(@database_server_id)
40
40
  data_matches_schema(Brightbox::Compute::Formats::Full::DATABASE_SERVER, :allow_extra_keys => true) { result }
41
41
  end
42
42
  end
@@ -32,8 +32,8 @@ Shindo.tests("Fog::Compute[:brightbox] | database snapshot requests", ["brightbo
32
32
  data_matches_schema(Brightbox::Compute::Formats::Full::DATABASE_SNAPSHOT, :allow_extra_keys => true) { result }
33
33
  end
34
34
 
35
- tests("#destroy_database_snapshot('#{@database_snapshot_id}')") do
36
- result = service.destroy_database_snapshot(@database_snapshot_id)
35
+ tests("#delete_database_snapshot('#{@database_snapshot_id}')") do
36
+ result = service.delete_database_snapshot(@database_snapshot_id)
37
37
  data_matches_schema(Brightbox::Compute::Formats::Full::DATABASE_SNAPSHOT, :allow_extra_keys => true) { result }
38
38
  end
39
39
  end
@@ -31,8 +31,8 @@ Shindo.tests("Fog::Compute[:brightbox] | firewall policy requests", ["brightbox"
31
31
  returns("Fog test policy B") { result["name"] }
32
32
  end
33
33
 
34
- tests("#destroy_firewall_policy('#{@firewall_policy_id}')") do
35
- result = Fog::Compute[:brightbox].destroy_firewall_policy(@firewall_policy_id)
34
+ tests("#delete_firewall_policy('#{@firewall_policy_id}')") do
35
+ result = Fog::Compute[:brightbox].delete_firewall_policy(@firewall_policy_id)
36
36
  data_matches_schema(Brightbox::Compute::Formats::Full::FIREWALL_POLICY, :allow_extra_keys => true) { result }
37
37
  end
38
38
  end
@@ -30,8 +30,8 @@ Shindo.tests("Fog::Compute[:brightbox] | firewall rule requests", ["brightbox"])
30
30
  end
31
31
  end
32
32
 
33
- tests("#destroy_firewall_rule('#{@firewall_rule_id}')") do
34
- result = Fog::Compute[:brightbox].destroy_firewall_rule(@firewall_rule_id)
33
+ tests("#delete_firewall_rule('#{@firewall_rule_id}')") do
34
+ result = Fog::Compute[:brightbox].delete_firewall_rule(@firewall_rule_id)
35
35
  data_matches_schema(Brightbox::Compute::Formats::Full::FIREWALL_RULE, :allow_extra_keys => true) { result }
36
36
  end
37
37
 
@@ -34,8 +34,8 @@ Shindo.tests("Fog::Compute[:brightbox] | image requests", ["brightbox"]) do
34
34
  # end
35
35
 
36
36
  ## Same as other tests - can't be deleting them unless part of the test run
37
- # tests("#destroy_server('#{@image_id}')") do
38
- # result = Fog::Compute[:brightbox].destroy_image(@image_id)
37
+ # tests("#delete_image('#{@image_id}')") do
38
+ # result = Fog::Compute[:brightbox].delete_image(@image_id)
39
39
  # formats(Brightbox::Compute::Formats::Full::IMAGE) { result }
40
40
  # end
41
41
  end
@@ -85,9 +85,9 @@ Shindo.tests("Fog::Compute[:brightbox] | load balancer requests", ["brightbox"])
85
85
  data_matches_schema(Brightbox::Compute::Formats::Full::LOAD_BALANCER, :allow_extra_keys => true) { result }
86
86
  end
87
87
 
88
- tests("#destroy_load_balancer('#{@load_balancer_id}')") do
88
+ tests("#delete_load_balancer('#{@load_balancer_id}')") do
89
89
  pending if Fog.mocking?
90
- result = Fog::Compute[:brightbox].destroy_load_balancer(@load_balancer_id)
90
+ result = Fog::Compute[:brightbox].delete_load_balancer(@load_balancer_id)
91
91
  data_matches_schema(Brightbox::Compute::Formats::Full::LOAD_BALANCER, :allow_extra_keys => true) { result }
92
92
  end
93
93
 
@@ -61,9 +61,9 @@ Shindo.tests("Fog::Compute[:brightbox] | server group requests", ["brightbox"])
61
61
  test("group is emptied") { result["servers"].empty? }
62
62
  end
63
63
 
64
- tests("#destroy_server_group('#{@server_group_id}')") do
64
+ tests("#delete_server_group('#{@server_group_id}')") do
65
65
  pending if Fog.mocking?
66
- result = Fog::Compute[:brightbox].destroy_server_group(@server_group_id)
66
+ result = Fog::Compute[:brightbox].delete_server_group(@server_group_id)
67
67
  data_matches_schema(Brightbox::Compute::Formats::Full::SERVER_GROUP, :allow_extra_keys => true) { result }
68
68
  end
69
69
 
@@ -76,9 +76,9 @@ Shindo.tests("Fog::Compute[:brightbox] | server requests", ["brightbox"]) do
76
76
  @snapshot.destroy
77
77
  end
78
78
 
79
- tests("#destroy_server('#{server_id}')") do
79
+ tests("#delete_server('#{server_id}')") do
80
80
  pending if Fog.mocking?
81
- result = Fog::Compute[:brightbox].destroy_server(server_id)
81
+ result = Fog::Compute[:brightbox].delete_server(server_id)
82
82
  data_matches_schema(Brightbox::Compute::Formats::Full::SERVER, :allow_extra_keys => true) { result }
83
83
  end
84
84
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-brightbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Thornthwaite
@@ -461,9 +461,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
461
461
  version: '2.0'
462
462
  required_rubygems_version: !ruby/object:Gem::Requirement
463
463
  requirements:
464
- - - ">"
464
+ - - ">="
465
465
  - !ruby/object:Gem::Version
466
- version: 1.3.1
466
+ version: '0'
467
467
  requirements: []
468
468
  rubyforge_project:
469
469
  rubygems_version: 2.7.6