fog-core 2.2.4 → 2.3.0
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/.github/workflows/ruby.yml +1 -17
- data/.github/workflows/stale.yml +1 -15
- data/changelog.md +19 -3
- data/fog-core.gemspec +1 -1
- data/lib/fog/core/provider.rb +13 -12
- data/lib/fog/core/version.rb +1 -1
- data/spec/compute_spec.rb +18 -18
- data/spec/core/cache_spec.rb +1 -1
- data/spec/identity_spec.rb +18 -18
- data/spec/storage_spec.rb +17 -17
- metadata +11 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ed45403ed1ae262f4cb11edb925bf9b46e54129c33c1aae9e75ea040aca788a
|
|
4
|
+
data.tar.gz: 8ff9db0cad760c871089ff3c2176b9e6f630daf6d57870a99782b78141cfe350
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b6a2fde1441edb56b5ebd703f8d3c4044a2eea7ee77a7f597d121ab33bc7af5e9d97d89ec1dcf0e713a80b3fd2ae377084eda4685edc59b02cf17c6c160d487
|
|
7
|
+
data.tar.gz: f743f73356f7bc34c63790061a5d255193a72946fafeec5250c0987786d2cff1815eae1ca016fe0c9b41952aea2ffe05c515a98bef3e1e9a4a9b1b434b3b5056
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -15,20 +15,4 @@ on:
|
|
|
15
15
|
|
|
16
16
|
jobs:
|
|
17
17
|
test:
|
|
18
|
-
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
strategy:
|
|
21
|
-
matrix:
|
|
22
|
-
ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0', 'head']
|
|
23
|
-
|
|
24
|
-
steps:
|
|
25
|
-
- uses: actions/checkout@v2
|
|
26
|
-
- name: Set up Ruby
|
|
27
|
-
uses: ruby/setup-ruby@v1
|
|
28
|
-
with:
|
|
29
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
30
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
31
|
-
- name: Install dependencies
|
|
32
|
-
run: bundle install
|
|
33
|
-
- name: Run tests
|
|
34
|
-
run: bundle exec rake
|
|
18
|
+
uses: fog/.github/.github/workflows/ruby.yml@v1.1.0
|
data/.github/workflows/stale.yml
CHANGED
|
@@ -6,18 +6,4 @@ on:
|
|
|
6
6
|
|
|
7
7
|
jobs:
|
|
8
8
|
stale:
|
|
9
|
-
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/stale@v3
|
|
14
|
-
with:
|
|
15
|
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
16
|
-
days-before-stale: 60
|
|
17
|
-
days-before-close: 7
|
|
18
|
-
exempt-issue-labels: 'pinned,security'
|
|
19
|
-
exempt-pr-labels: 'pinned,security'
|
|
20
|
-
stale-issue-message: 'This issue has been marked inactive and will be closed if no further activity occurs.'
|
|
21
|
-
stale-pr-message: 'This pr has been marked inactive and will be closed if no further activity occurs.'
|
|
22
|
-
stale-issue-label: 'no-issue-activity'
|
|
23
|
-
stale-pr-label: 'no-pr-activity'
|
|
9
|
+
uses: fog/.github/.github/workflows/stale.yml@v1.1.0
|
data/changelog.md
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
+
2.3.0 03/08/2022
|
|
2
|
+
==========================================================
|
|
3
|
+
|
|
4
|
+
- fix v2.2.4 changelog
|
|
5
|
+
- bump actions/stale
|
|
6
|
+
- bump actions/checkout
|
|
7
|
+
- avoid loading unnecessary service via autoload
|
|
8
|
+
- update ruby.yml
|
|
9
|
+
- continue tests dispite head errors
|
|
10
|
+
- bump actions/checkout
|
|
11
|
+
- bump formatador requirement
|
|
12
|
+
- utilize reusable actions workflows
|
|
13
|
+
- bump reusable actions
|
|
14
|
+
- fix cache test for ruby 3.1+
|
|
15
|
+
- tweak format of reusable workflows
|
|
16
|
+
|
|
1
17
|
2.2.4 04/28/2020
|
|
2
18
|
==========================================================
|
|
3
19
|
|
|
4
|
-
Add FOG_DEBUG in addition to DEBUG to allow avoiding namespace collisions
|
|
5
|
-
Add github actions configuration
|
|
6
|
-
Update succeeds helper to expected syntax for ruby 3+
|
|
20
|
+
- Add FOG_DEBUG in addition to DEBUG to allow avoiding namespace collisions
|
|
21
|
+
- Add github actions configuration
|
|
22
|
+
- Update succeeds helper to expected syntax for ruby 3+
|
|
7
23
|
|
|
8
24
|
2.2.3 09/16/2020
|
|
9
25
|
==========================================================
|
data/fog-core.gemspec
CHANGED
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.add_dependency("builder")
|
|
24
24
|
spec.add_dependency("mime-types")
|
|
25
25
|
spec.add_dependency("excon", "~> 0.71")
|
|
26
|
-
spec.add_dependency("formatador", "
|
|
26
|
+
spec.add_dependency("formatador", ">= 0.2", "< 2.0")
|
|
27
27
|
|
|
28
28
|
# https://github.com/fog/fog-core/issues/206
|
|
29
29
|
# spec.add_dependency("xmlrpc") if RUBY_VERSION.to_s >= "2.4"
|
data/lib/fog/core/provider.rb
CHANGED
|
@@ -45,19 +45,20 @@ module Fog
|
|
|
45
45
|
# "provider::service" is defined (the preferred format) then it returns that
|
|
46
46
|
# string, otherwise it returns the deprecated string "service::provider".
|
|
47
47
|
def service_klass(constant_string)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
if const_defined?([to_s, constant_string].join("::"))
|
|
49
|
+
[to_s, constant_string].join("::")
|
|
50
|
+
else
|
|
51
|
+
provider = to_s.split("::").last
|
|
52
|
+
Fog::Logger.deprecation("Unable to load #{[to_s, constant_string].join("::")}")
|
|
53
|
+
Fog::Logger.deprecation(
|
|
54
|
+
format(
|
|
55
|
+
Fog::ServicesMixin::E_SERVICE_PROVIDER_CONSTANT,
|
|
56
|
+
service: constant_string,
|
|
57
|
+
provider: provider
|
|
58
|
+
)
|
|
58
59
|
)
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
['Fog', constant_string, provider].join("::")
|
|
61
|
+
end
|
|
61
62
|
end
|
|
62
63
|
end
|
|
63
64
|
end
|
data/lib/fog/core/version.rb
CHANGED
data/spec/compute_spec.rb
CHANGED
|
@@ -10,16 +10,16 @@ describe "Fog::Compute" do
|
|
|
10
10
|
describe "#new" do
|
|
11
11
|
module Fog
|
|
12
12
|
module TheRightWay
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
class Compute
|
|
14
|
+
def initialize(_args); end
|
|
15
|
+
end
|
|
15
16
|
end
|
|
16
17
|
end
|
|
17
18
|
|
|
18
19
|
module Fog
|
|
19
20
|
module TheRightWay
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
end
|
|
21
|
+
extend Provider
|
|
22
|
+
service(:compute, "Compute")
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -28,13 +28,6 @@ describe "Fog::Compute" do
|
|
|
28
28
|
assert_instance_of(Fog::TheRightWay::Compute, compute)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
module Fog
|
|
32
|
-
module TheWrongWay
|
|
33
|
-
extend Provider
|
|
34
|
-
service(:compute, "Compute")
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
31
|
module Fog
|
|
39
32
|
module Compute
|
|
40
33
|
class TheWrongWay
|
|
@@ -43,18 +36,18 @@ describe "Fog::Compute" do
|
|
|
43
36
|
end
|
|
44
37
|
end
|
|
45
38
|
|
|
46
|
-
it "instantiates an instance of Fog::<Provider>::Compute from the :provider keyword arg" do
|
|
47
|
-
compute = Fog::Compute.new(:provider => :thewrongway)
|
|
48
|
-
assert_instance_of(Fog::Compute::TheWrongWay, compute)
|
|
49
|
-
end
|
|
50
|
-
|
|
51
39
|
module Fog
|
|
52
|
-
module
|
|
40
|
+
module TheWrongWay
|
|
53
41
|
extend Provider
|
|
54
42
|
service(:compute, "Compute")
|
|
55
43
|
end
|
|
56
44
|
end
|
|
57
45
|
|
|
46
|
+
it "instantiates an instance of Fog::<Provider>::Compute from the :provider keyword arg" do
|
|
47
|
+
compute = Fog::Compute.new(:provider => :thewrongway)
|
|
48
|
+
assert_instance_of(Fog::Compute::TheWrongWay, compute)
|
|
49
|
+
end
|
|
50
|
+
|
|
58
51
|
module Fog
|
|
59
52
|
module BothWays
|
|
60
53
|
class Compute
|
|
@@ -74,6 +67,13 @@ describe "Fog::Compute" do
|
|
|
74
67
|
end
|
|
75
68
|
end
|
|
76
69
|
|
|
70
|
+
module Fog
|
|
71
|
+
module BothWays
|
|
72
|
+
extend Provider
|
|
73
|
+
service(:compute, "Compute")
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
77
|
describe "when both Fog::Compute::<Provider> and Fog::<Provider>::Compute exist" do
|
|
78
78
|
it "prefers Fog::<Provider>::Compute" do
|
|
79
79
|
compute = Fog::Compute.new(:provider => :bothways)
|
data/spec/core/cache_spec.rb
CHANGED
data/spec/identity_spec.rb
CHANGED
|
@@ -10,16 +10,16 @@ describe "Fog::Identity" do
|
|
|
10
10
|
describe "#new" do
|
|
11
11
|
module Fog
|
|
12
12
|
module TheRightWay
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
class Identity
|
|
14
|
+
def initialize(_args); end
|
|
15
|
+
end
|
|
15
16
|
end
|
|
16
17
|
end
|
|
17
18
|
|
|
18
19
|
module Fog
|
|
19
20
|
module TheRightWay
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
end
|
|
21
|
+
extend Provider
|
|
22
|
+
service(:identity, "Identity")
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -28,13 +28,6 @@ describe "Fog::Identity" do
|
|
|
28
28
|
assert_instance_of(Fog::TheRightWay::Identity, identity)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
module Fog
|
|
32
|
-
module TheWrongWay
|
|
33
|
-
extend Provider
|
|
34
|
-
service(:identity, "Identity")
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
31
|
module Fog
|
|
39
32
|
module Identity
|
|
40
33
|
class TheWrongWay
|
|
@@ -43,18 +36,18 @@ describe "Fog::Identity" do
|
|
|
43
36
|
end
|
|
44
37
|
end
|
|
45
38
|
|
|
46
|
-
it "instantiates an instance of Fog::<Provider>::Identity from the :provider keyword arg" do
|
|
47
|
-
identity = Fog::Identity.new(:provider => :thewrongway)
|
|
48
|
-
assert_instance_of(Fog::Identity::TheWrongWay, identity)
|
|
49
|
-
end
|
|
50
|
-
|
|
51
39
|
module Fog
|
|
52
|
-
module
|
|
40
|
+
module TheWrongWay
|
|
53
41
|
extend Provider
|
|
54
42
|
service(:identity, "Identity")
|
|
55
43
|
end
|
|
56
44
|
end
|
|
57
45
|
|
|
46
|
+
it "instantiates an instance of Fog::<Provider>::Identity from the :provider keyword arg" do
|
|
47
|
+
identity = Fog::Identity.new(:provider => :thewrongway)
|
|
48
|
+
assert_instance_of(Fog::Identity::TheWrongWay, identity)
|
|
49
|
+
end
|
|
50
|
+
|
|
58
51
|
module Fog
|
|
59
52
|
module BothWays
|
|
60
53
|
class Identity
|
|
@@ -74,6 +67,13 @@ describe "Fog::Identity" do
|
|
|
74
67
|
end
|
|
75
68
|
end
|
|
76
69
|
|
|
70
|
+
module Fog
|
|
71
|
+
module BothWays
|
|
72
|
+
extend Provider
|
|
73
|
+
service(:identity, "Identity")
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
77
|
describe "when both Fog::Identity::<Provider> and Fog::<Provider>::Identity exist" do
|
|
78
78
|
it "prefers Fog::Identity::<Provider>" do
|
|
79
79
|
identity = Fog::Identity.new(:provider => :bothways)
|
data/spec/storage_spec.rb
CHANGED
|
@@ -10,16 +10,16 @@ describe "Fog::Storage" do
|
|
|
10
10
|
describe "#new" do
|
|
11
11
|
module Fog
|
|
12
12
|
module TheRightWay
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
class Storage
|
|
14
|
+
def initialize(_args); end
|
|
15
|
+
end
|
|
15
16
|
end
|
|
16
17
|
end
|
|
17
18
|
|
|
18
19
|
module Fog
|
|
19
20
|
module TheRightWay
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
end
|
|
21
|
+
extend Provider
|
|
22
|
+
service(:storage, "Storage")
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -29,16 +29,16 @@ describe "Fog::Storage" do
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
module Fog
|
|
32
|
-
module TheWrongWay
|
|
33
|
-
extend Provider
|
|
34
|
-
service(:storage, "Storage")
|
|
35
|
-
end
|
|
36
|
-
|
|
37
32
|
module Storage
|
|
38
33
|
class TheWrongWay
|
|
39
34
|
def initialize(_args); end
|
|
40
35
|
end
|
|
41
36
|
end
|
|
37
|
+
|
|
38
|
+
module TheWrongWay
|
|
39
|
+
extend Provider
|
|
40
|
+
service(:storage, "Storage")
|
|
41
|
+
end
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
it "instantiates an instance of Fog::Storage::<Provider> from the :provider keyword arg" do
|
|
@@ -46,13 +46,6 @@ describe "Fog::Storage" do
|
|
|
46
46
|
assert_instance_of(Fog::Storage::TheWrongWay, compute)
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
module Fog
|
|
50
|
-
module BothWays
|
|
51
|
-
extend Provider
|
|
52
|
-
service(:storage, "Storage")
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
|
|
56
49
|
module Fog
|
|
57
50
|
module BothWays
|
|
58
51
|
class Storage
|
|
@@ -73,6 +66,13 @@ describe "Fog::Storage" do
|
|
|
73
66
|
end
|
|
74
67
|
end
|
|
75
68
|
|
|
69
|
+
module Fog
|
|
70
|
+
module BothWays
|
|
71
|
+
extend Provider
|
|
72
|
+
service(:storage, "Storage")
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
76
|
describe "when both Fog::Storage::<Provider> and Fog::<Provider>::Storage exist" do
|
|
77
77
|
it "prefers Fog::Storage::<Provider>" do
|
|
78
78
|
compute = Fog::Storage.new(:provider => :bothways)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fog-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Evan Light
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2022-03-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: builder
|
|
@@ -57,16 +57,22 @@ dependencies:
|
|
|
57
57
|
name: formatador
|
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
|
-
- - "
|
|
60
|
+
- - ">="
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
62
|
version: '0.2'
|
|
63
|
+
- - "<"
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: '2.0'
|
|
63
66
|
type: :runtime
|
|
64
67
|
prerelease: false
|
|
65
68
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
69
|
requirements:
|
|
67
|
-
- - "
|
|
70
|
+
- - ">="
|
|
68
71
|
- !ruby/object:Gem::Version
|
|
69
72
|
version: '0.2'
|
|
73
|
+
- - "<"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '2.0'
|
|
70
76
|
- !ruby/object:Gem::Dependency
|
|
71
77
|
name: tins
|
|
72
78
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -336,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
336
342
|
- !ruby/object:Gem::Version
|
|
337
343
|
version: '0'
|
|
338
344
|
requirements: []
|
|
339
|
-
rubygems_version: 3.
|
|
345
|
+
rubygems_version: 3.3.5
|
|
340
346
|
signing_key:
|
|
341
347
|
specification_version: 4
|
|
342
348
|
summary: Shared classes and tests for fog providers and services.
|