fog-brightbox 0.16.1 → 1.0.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +0 -4
- data/CHANGELOG.md +7 -17
- data/fog-brightbox.gemspec +5 -4
- data/lib/fog/brightbox.rb +3 -3
- data/lib/fog/brightbox/version.rb +1 -1
- data/spec/fog/compute/brightbox/database_server_spec.rb +0 -4
- data/spec/fog/compute/brightbox/server_spec.rb +0 -4
- data/spec/fog/storage/brightbox_spec.rb +0 -2
- data/spec/supports_resource_locking.rb +0 -4
- metadata +15 -30
- data/gemfiles/Gemfile.1.9.3 +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 260e64a984c3827dc0d65a611880ad0d6ff2dd6f013c32200587f75d77cb3b71
|
4
|
+
data.tar.gz: 0c633c0ced7435cae179b33e2821b01fc65b3afe9a18a26555922dc348ea1bca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 793f1cc0d487e8b9d99de98bfda048f7e2812e87e9fd6b6a22cffbf104e771ad7ca6b75992a5438c3e020afee961ba8b9dcdd19e2d8d1bc96bdadf1fff220d98
|
7
|
+
data.tar.gz: e62ee84f1c381a83177482f70ac2867bcbaa4862c11c6a0d885cfef02f0da10afcf0ee651d6d4cadab5e0b8c790ea384b42704db1c1a74b5b1d3f7f687d166a1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,22 +1,12 @@
|
|
1
|
-
###
|
1
|
+
### Master
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
* Fix ordering issue between declaration of fog services and `autoload` modules.
|
6
|
-
Changes in `fog-core` would reference modules before available in autoload so
|
7
|
-
caused a name error.
|
8
|
-
|
9
|
-
### 0.16.0 / 2018-09-04
|
10
|
-
|
11
|
-
Changes:
|
12
|
-
|
13
|
-
* Replaced abandoned `inflecto` dependency with `dry-inflector` gem.
|
14
|
-
|
15
|
-
### 0.15.1 / 2018-06-22
|
16
|
-
|
17
|
-
Bug fixes:
|
3
|
+
Major Changes:
|
18
4
|
|
19
|
-
*
|
5
|
+
* Gem version has been changed 1.0 to reflect breaking changes.
|
6
|
+
* Ruby versions 1.9 is longer supported as per fog-core v2.
|
7
|
+
* Ruby versions 2.0 and 2.1 are no longer supported by Brightbox although a
|
8
|
+
hard value has not been used in the gemspec to avoid issues with `fog`
|
9
|
+
* `inflecto` is replaced by `dry-inflector`
|
20
10
|
|
21
11
|
### 0.15.0 / 2018-06-14
|
22
12
|
|
data/fog-brightbox.gemspec
CHANGED
@@ -14,17 +14,18 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "https://github.com/fog/fog-brightbox"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
-
spec.files = `git ls-files`.split(
|
17
|
+
spec.files = `git ls-files`.split($/)
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.
|
22
|
+
spec.required_ruby_version = "~> 2.0"
|
23
|
+
|
24
|
+
spec.add_dependency "fog-core", "~> 2.0"
|
23
25
|
spec.add_dependency "fog-json"
|
24
26
|
spec.add_dependency "dry-inflector"
|
25
|
-
spec.add_dependency "mime-types"
|
26
27
|
|
27
|
-
spec.add_development_dependency "bundler"
|
28
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
28
29
|
spec.add_development_dependency "minitest"
|
29
30
|
spec.add_development_dependency "pry"
|
30
31
|
spec.add_development_dependency "rake"
|
data/lib/fog/brightbox.rb
CHANGED
@@ -11,6 +11,9 @@ module Fog
|
|
11
11
|
module Brightbox
|
12
12
|
extend Fog::Provider
|
13
13
|
|
14
|
+
service(:compute, "Compute")
|
15
|
+
service(:storage, "Storage")
|
16
|
+
|
14
17
|
module Compute
|
15
18
|
autoload :Config, File.expand_path("../brightbox/compute/config", __FILE__)
|
16
19
|
autoload :ImageSelector, File.expand_path("../brightbox/compute/image_selector", __FILE__)
|
@@ -31,9 +34,6 @@ module Fog
|
|
31
34
|
autoload :Model, File.expand_path("../brightbox/model", __FILE__)
|
32
35
|
autoload :ModelHelper, File.expand_path("../brightbox/model_helper", __FILE__)
|
33
36
|
autoload :OAuth2, File.expand_path("../brightbox/oauth2", __FILE__)
|
34
|
-
|
35
|
-
service(:compute, "Compute")
|
36
|
-
service(:storage, "Storage")
|
37
37
|
end
|
38
38
|
|
39
39
|
module Compute
|
@@ -21,8 +21,6 @@ describe Fog::Compute::Brightbox::DatabaseServer do
|
|
21
21
|
|
22
22
|
describe "when snapshotting withi no options" do
|
23
23
|
it "returns the database server" do
|
24
|
-
skip if RUBY_VERSION < "1.9"
|
25
|
-
|
26
24
|
stub_request(:post, "http://localhost/1.0/database_servers/dbs-12345/snapshot").
|
27
25
|
with(:query => hash_including(:account_id),
|
28
26
|
:headers => { "Authorization" => "Bearer FAKECACHEDTOKEN" }).
|
@@ -35,8 +33,6 @@ describe Fog::Compute::Brightbox::DatabaseServer do
|
|
35
33
|
|
36
34
|
describe "when snapshotting with link option" do
|
37
35
|
it "returns the new image" do
|
38
|
-
skip if RUBY_VERSION < "1.9"
|
39
|
-
|
40
36
|
link = "<https://api.gb1.brightbox.com/1.0/database_snapshots/dbi-12345>; rel=snapshot"
|
41
37
|
|
42
38
|
stub_request(:post, "http://localhost/1.0/database_servers/dbs-12345/snapshot").
|
@@ -21,8 +21,6 @@ describe Fog::Compute::Brightbox::Server do
|
|
21
21
|
|
22
22
|
describe "when snapshotting withi no options" do
|
23
23
|
it "returns the server" do
|
24
|
-
skip if RUBY_VERSION < "1.9"
|
25
|
-
|
26
24
|
stub_request(:post, "http://localhost/1.0/servers/srv-12345/snapshot").
|
27
25
|
with(:query => hash_including(:account_id),
|
28
26
|
:headers => { "Authorization" => "Bearer FAKECACHEDTOKEN" }).
|
@@ -35,8 +33,6 @@ describe Fog::Compute::Brightbox::Server do
|
|
35
33
|
|
36
34
|
describe "when snapshotting with link option" do
|
37
35
|
it "returns the new image" do
|
38
|
-
skip if RUBY_VERSION < "1.9"
|
39
|
-
|
40
36
|
link = "<https://api.gb1.brightbox.com/1.0/images/img-12345>; rel=snapshot"
|
41
37
|
|
42
38
|
stub_request(:post, "http://localhost/1.0/servers/srv-12345/snapshot").
|
@@ -283,7 +283,6 @@ describe Fog::Storage::Brightbox do
|
|
283
283
|
end
|
284
284
|
|
285
285
|
describe "when initialised with temporary URL key" do
|
286
|
-
before { skip unless RUBY_VERSION > "1.9.3" }
|
287
286
|
let(:temp_url_key) { "1234567890" }
|
288
287
|
let(:settings) do
|
289
288
|
{
|
@@ -319,7 +318,6 @@ describe Fog::Storage::Brightbox do
|
|
319
318
|
end
|
320
319
|
|
321
320
|
describe "when initialised without management URL" do
|
322
|
-
before { skip unless RUBY_VERSION > "1.9.3" }
|
323
321
|
let(:temp_url_key) { "1234567890" }
|
324
322
|
let(:settings) do
|
325
323
|
{
|
@@ -14,8 +14,6 @@ module SupportsResourceLocking
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def test_lock_makes_request
|
17
|
-
skip if RUBY_VERSION < "1.9"
|
18
|
-
|
19
17
|
subject.id = "tst-12345"
|
20
18
|
|
21
19
|
stub_request(:put, "http://localhost/1.0/#{collection_name}/tst-12345/lock_resource").
|
@@ -30,8 +28,6 @@ module SupportsResourceLocking
|
|
30
28
|
end
|
31
29
|
|
32
30
|
def test_unlock_makes_request
|
33
|
-
skip if RUBY_VERSION < "1.9"
|
34
|
-
|
35
31
|
subject.id = "tst-12345"
|
36
32
|
|
37
33
|
stub_request(:put, "http://localhost/1.0/#{collection_name}/tst-12345/unlock_resource").
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-brightbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Thornthwaite
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '2.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'
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fog-json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,34 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: mime-types
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: bundler
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- - "
|
59
|
+
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
61
|
+
version: '1.3'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- - "
|
66
|
+
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
68
|
+
version: '1.3'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: minitest
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,7 +167,6 @@ files:
|
|
181
167
|
- README.md
|
182
168
|
- Rakefile
|
183
169
|
- fog-brightbox.gemspec
|
184
|
-
- gemfiles/Gemfile.1.9.3
|
185
170
|
- lib/fog/brightbox.rb
|
186
171
|
- lib/fog/brightbox/compute.rb
|
187
172
|
- lib/fog/brightbox/compute/config.rb
|
@@ -464,17 +449,17 @@ require_paths:
|
|
464
449
|
- lib
|
465
450
|
required_ruby_version: !ruby/object:Gem::Requirement
|
466
451
|
requirements:
|
467
|
-
- - "
|
452
|
+
- - "~>"
|
468
453
|
- !ruby/object:Gem::Version
|
469
|
-
version: '0'
|
454
|
+
version: '2.0'
|
470
455
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
471
456
|
requirements:
|
472
|
-
- - "
|
457
|
+
- - ">"
|
473
458
|
- !ruby/object:Gem::Version
|
474
|
-
version:
|
459
|
+
version: 1.3.1
|
475
460
|
requirements: []
|
476
461
|
rubyforge_project:
|
477
|
-
rubygems_version: 2.7.
|
462
|
+
rubygems_version: 2.7.6
|
478
463
|
signing_key:
|
479
464
|
specification_version: 4
|
480
465
|
summary: This library can be used as a module for `fog` or as standalone provider
|