fog-core 1.24.0 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.rubocop.yml +20 -0
- data/changelog.md +17 -0
- data/fog-core.gemspec +2 -1
- data/lib/fog/account.rb +3 -5
- data/lib/fog/billing.rb +3 -4
- data/lib/fog/cdn.rb +3 -5
- data/lib/fog/compute.rb +17 -20
- data/lib/fog/compute/models/server.rb +21 -26
- data/lib/fog/core.rb +61 -60
- data/lib/fog/core/association.rb +15 -0
- data/lib/fog/core/associations/default.rb +21 -3
- data/lib/fog/core/associations/many_identities.rb +8 -2
- data/lib/fog/core/associations/many_models.rb +7 -2
- data/lib/fog/core/associations/one_identity.rb +6 -1
- data/lib/fog/core/associations/one_model.rb +5 -1
- data/lib/fog/core/attributes.rb +41 -44
- data/lib/fog/core/attributes/array.rb +5 -1
- data/lib/fog/core/attributes/boolean.rb +5 -1
- data/lib/fog/core/attributes/default.rb +12 -2
- data/lib/fog/core/attributes/float.rb +5 -1
- data/lib/fog/core/attributes/integer.rb +5 -1
- data/lib/fog/core/attributes/string.rb +5 -1
- data/lib/fog/core/attributes/time.rb +5 -1
- data/lib/fog/core/attributes/timestamp.rb +5 -1
- data/lib/fog/core/collection.rb +22 -27
- data/lib/fog/core/connection.rb +5 -6
- data/lib/fog/core/credentials.rb +7 -7
- data/lib/fog/core/current_machine.rb +10 -8
- data/lib/fog/core/deprecated_connection_accessors.rb +0 -1
- data/lib/fog/core/deprecation.rb +0 -2
- data/lib/fog/core/errors.rb +3 -5
- data/lib/fog/core/hmac.rb +4 -6
- data/lib/fog/core/logger.rb +10 -11
- data/lib/fog/core/mock.rb +19 -25
- data/lib/fog/core/model.rb +9 -20
- data/lib/fog/core/provider.rb +6 -9
- data/lib/fog/core/scp.rb +14 -24
- data/lib/fog/core/service.rb +28 -31
- data/lib/fog/core/ssh.rb +16 -24
- data/lib/fog/core/stringify_keys.rb +7 -9
- data/lib/fog/core/time.rb +5 -7
- data/lib/fog/core/utils.rb +24 -20
- data/lib/fog/core/uuid.rb +2 -3
- data/lib/fog/core/version.rb +3 -1
- data/lib/fog/core/wait_for.rb +2 -2
- data/lib/fog/core/wait_for_defaults.rb +13 -10
- data/lib/fog/core/whitelist_keys.rb +1 -1
- data/lib/fog/dns.rb +6 -8
- data/lib/fog/identity.rb +5 -6
- data/lib/fog/image.rb +3 -5
- data/lib/fog/metering.rb +3 -6
- data/lib/fog/monitoring.rb +3 -5
- data/lib/fog/network.rb +4 -6
- data/lib/fog/orchestration.rb +3 -5
- data/lib/fog/schema/data_validator.rb +17 -22
- data/lib/fog/storage.rb +22 -16
- data/lib/fog/support.rb +3 -6
- data/lib/fog/test_helpers.rb +10 -10
- data/lib/fog/test_helpers/collection_helper.rb +23 -43
- data/lib/fog/test_helpers/compute/flavors_helper.rb +4 -10
- data/lib/fog/test_helpers/compute/server_helper.rb +3 -9
- data/lib/fog/test_helpers/compute/servers_helper.rb +0 -4
- data/lib/fog/test_helpers/formats_helper.rb +13 -14
- data/lib/fog/test_helpers/helper.rb +9 -4
- data/lib/fog/test_helpers/mock_helper.rb +92 -94
- data/lib/fog/test_helpers/model_helper.rb +7 -15
- data/lib/fog/test_helpers/responds_to_helper.rb +1 -3
- data/lib/fog/test_helpers/succeeds_helper.rb +1 -3
- data/lib/fog/volume.rb +3 -6
- data/lib/fog/vpn.rb +3 -5
- data/lib/tasks/test_task.rb +2 -6
- data/spec/compute_spec.rb +11 -13
- data/spec/connection_spec.rb +24 -14
- data/spec/credentials_spec.rb +23 -23
- data/spec/current_machine_spec.rb +6 -6
- data/spec/fake_app/fake_service.rb +18 -0
- data/spec/fake_app/models/collection.rb +5 -0
- data/spec/fake_app/models/model.rb +2 -0
- data/spec/fake_app/requests/request.rb +11 -0
- data/spec/fog_attribute_spec.rb +178 -136
- data/spec/identity_spec.rb +11 -13
- data/spec/mocking_spec.rb +7 -8
- data/spec/service_spec.rb +21 -7
- data/spec/spec_helper.rb +14 -8
- data/spec/storage_spec.rb +25 -13
- data/spec/test_helpers/formats_helper_spec.rb +52 -52
- data/spec/test_helpers/schema_validator_spec.rb +45 -45
- data/spec/timeout_spec.rb +1 -2
- data/spec/utils_spec.rb +2 -2
- data/spec/uuid_spec.rb +1 -1
- data/spec/wait_for_spec.rb +7 -4
- metadata +57 -33
@@ -1,101 +1,101 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
1
|
+
require "spec_helper"
|
2
|
+
require "fog/test_helpers/formats_helper"
|
3
|
+
require "fog/schema/data_validator"
|
4
4
|
|
5
5
|
describe "SchemaValidator" do
|
6
6
|
let(:validator) { Fog::Schema::DataValidator.new }
|
7
7
|
|
8
8
|
describe "#validate" do
|
9
|
-
it
|
10
|
-
assert validator.validate({"key" => "Value"}, {"key" => String})
|
9
|
+
it "returns true when value matches schema expectation" do
|
10
|
+
assert validator.validate({ "key" => "Value" }, { "key" => String })
|
11
11
|
end
|
12
12
|
|
13
|
-
it
|
14
|
-
assert validator.validate({"key" => [1, 2]}, {"key" => [Integer]})
|
13
|
+
it "returns true when values within an array all match schema expectation" do
|
14
|
+
assert validator.validate({ "key" => [1, 2] }, { "key" => [Integer] })
|
15
15
|
end
|
16
16
|
|
17
|
-
it
|
18
|
-
assert validator.validate({"key" => {:nested_key => "Value"}}, {"key" => {:nested_key => String}})
|
17
|
+
it "returns true when nested values match schema expectation" do
|
18
|
+
assert validator.validate({ "key" => { :nested_key => "Value" } }, { "key" => { :nested_key => String } })
|
19
19
|
end
|
20
20
|
|
21
|
-
it
|
22
|
-
assert validator.validate([{"key" => "Value"}, {"key" => "Value"}], [{"key" => String}])
|
21
|
+
it "returns true when collection of values all match schema expectation" do
|
22
|
+
assert validator.validate([{ "key" => "Value" }, { "key" => "Value" }], [{ "key" => String }])
|
23
23
|
end
|
24
24
|
|
25
|
-
it
|
26
|
-
assert validator.validate([], [{"key" => String}])
|
25
|
+
it "returns true when collection is empty although schema covers optional members" do
|
26
|
+
assert validator.validate([], [{ "key" => String }])
|
27
27
|
end
|
28
28
|
|
29
|
-
it
|
30
|
-
assert validator.validate({"key" => "Value", :extra => "Bonus"}, {"key" => String}, {:allow_extra_keys => true})
|
29
|
+
it "returns true when additional keys are passed and not strict" do
|
30
|
+
assert validator.validate({ "key" => "Value", :extra => "Bonus" }, { "key" => String }, { :allow_extra_keys => true })
|
31
31
|
end
|
32
32
|
|
33
|
-
it
|
34
|
-
assert validator.validate({"key" => nil}, {"key" => NilClass})
|
33
|
+
it "returns true when value is nil and schema expects NilClass" do
|
34
|
+
assert validator.validate({ "key" => nil }, { "key" => NilClass })
|
35
35
|
end
|
36
36
|
|
37
|
-
it
|
37
|
+
it "returns true when value and schema match as hashes" do
|
38
38
|
assert validator.validate({}, {})
|
39
39
|
end
|
40
40
|
|
41
|
-
it
|
41
|
+
it "returns true when value and schema match as arrays" do
|
42
42
|
assert validator.validate([], [])
|
43
43
|
end
|
44
44
|
|
45
|
-
it
|
46
|
-
assert validator.validate({"time" => Time.now}, {"time" => Time})
|
45
|
+
it "returns true when value is a Time" do
|
46
|
+
assert validator.validate({ "time" => Time.now }, { "time" => Time })
|
47
47
|
end
|
48
48
|
|
49
|
-
it
|
50
|
-
assert validator.validate({}, {"key" => NilClass}, {:allow_optional_rules => true})
|
49
|
+
it "returns true when key is missing but value should be NilClass (#1477)" do
|
50
|
+
assert validator.validate({}, { "key" => NilClass }, { :allow_optional_rules => true })
|
51
51
|
end
|
52
52
|
|
53
|
-
it
|
54
|
-
assert validator.validate({}, {"key" => Fog::Nullable::String}, {:allow_optional_rules => true})
|
53
|
+
it "returns true when key is missing but value is nullable (#1477)" do
|
54
|
+
assert validator.validate({}, { "key" => Fog::Nullable::String }, { :allow_optional_rules => true })
|
55
55
|
end
|
56
56
|
|
57
|
-
it
|
58
|
-
refute validator.validate({"key" => nil}, {"key" => String})
|
57
|
+
it "returns false when value does not match schema expectation" do
|
58
|
+
refute validator.validate({ "key" => nil }, { "key" => String })
|
59
59
|
end
|
60
60
|
|
61
|
-
it
|
62
|
-
refute validator.validate({"key" => "Value"}, {:key => String})
|
61
|
+
it "returns false when key formats do not match" do
|
62
|
+
refute validator.validate({ "key" => "Value" }, { :key => String })
|
63
63
|
end
|
64
64
|
|
65
|
-
it
|
66
|
-
refute validator.validate({"key" => "Missing"}, {})
|
65
|
+
it "returns false when additional keys are passed and strict" do
|
66
|
+
refute validator.validate({ "key" => "Missing" }, {})
|
67
67
|
end
|
68
68
|
|
69
|
-
it
|
70
|
-
refute validator.validate({}, {"key" => String})
|
69
|
+
it "returns false when some keys do not appear" do
|
70
|
+
refute validator.validate({}, { "key" => String })
|
71
71
|
end
|
72
72
|
|
73
|
-
it
|
74
|
-
refute validator.validate([{"key" => "Value"}, {"key" => 5}], [{"key" => String}])
|
73
|
+
it "returns false when collection contains a member that does not match schema" do
|
74
|
+
refute validator.validate([{ "key" => "Value" }, { "key" => 5 }], [{ "key" => String }])
|
75
75
|
end
|
76
76
|
|
77
|
-
it
|
78
|
-
refute validator.validate([{"key" => "Value"}], [{"key" => Integer}, {"key" => String}])
|
77
|
+
it "returns false when collection has multiple schema patterns" do
|
78
|
+
refute validator.validate([{ "key" => "Value" }], [{ "key" => Integer }, { "key" => String }])
|
79
79
|
end
|
80
80
|
|
81
|
-
it
|
81
|
+
it "returns false when hash and array are compared" do
|
82
82
|
refute validator.validate({}, [])
|
83
83
|
end
|
84
84
|
|
85
|
-
it
|
85
|
+
it "returns false when array and hash are compared" do
|
86
86
|
refute validator.validate([], {})
|
87
87
|
end
|
88
88
|
|
89
|
-
it
|
90
|
-
refute validator.validate({"key" => {:nested_key => []}}, {"key" => {:nested_key => {}}})
|
89
|
+
it "returns false when a hash is expected but another data type is found" do
|
90
|
+
refute validator.validate({ "key" => { :nested_key => [] } }, { "key" => { :nested_key => {} } })
|
91
91
|
end
|
92
92
|
|
93
|
-
it
|
94
|
-
refute validator.validate({}, {"key" => NilClass}, {:allow_optional_rules => false})
|
93
|
+
it "returns false when key is missing but value should be NilClass (#1477)" do
|
94
|
+
refute validator.validate({}, { "key" => NilClass }, { :allow_optional_rules => false })
|
95
95
|
end
|
96
96
|
|
97
|
-
it
|
98
|
-
refute validator.validate({}, {"key" => Fog::Nullable::String}, {:allow_optional_rules => false})
|
97
|
+
it "returns false when key is missing but value is nullable (#1477)" do
|
98
|
+
refute validator.validate({}, { "key" => Fog::Nullable::String }, { :allow_optional_rules => false })
|
99
99
|
end
|
100
100
|
end
|
101
101
|
end
|
data/spec/timeout_spec.rb
CHANGED
data/spec/utils_spec.rb
CHANGED
@@ -21,8 +21,8 @@ describe Fog::Core::Utils do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
it "does not change the :header key or contents" do
|
24
|
-
settings = { :headers => {
|
25
|
-
expected = { :headers => {
|
24
|
+
settings = { :headers => { "User-Agent" => "my user agent" } }
|
25
|
+
expected = { :headers => { "User-Agent" => "my user agent" } }
|
26
26
|
assert_equal expected, Fog::Core::Utils.prepare_service_settings(settings)
|
27
27
|
end
|
28
28
|
end
|
data/spec/uuid_spec.rb
CHANGED
data/spec/wait_for_spec.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
|
3
3
|
describe "Fog#wait_for" do
|
4
4
|
it "returns a Hash indicating the wait duration if successful" do
|
5
|
-
assert_equal({:duration => 0}, Fog.wait_for(1) { true })
|
5
|
+
assert_equal({ :duration => 0 }, Fog.wait_for(1) { true })
|
6
6
|
end
|
7
7
|
|
8
8
|
it "raises if the wait timeout is exceeded" do
|
@@ -13,7 +13,10 @@ describe "Fog#wait_for" do
|
|
13
13
|
|
14
14
|
it "accepts a proc to determine the sleep interval" do
|
15
15
|
i = 0
|
16
|
-
ret = Fog.wait_for(1, lambda { |
|
17
|
-
|
16
|
+
ret = Fog.wait_for(1, lambda { |_t| 1 }) do
|
17
|
+
i += 1
|
18
|
+
i > 1
|
19
|
+
end
|
20
|
+
assert_equal({ :duration => 1 }, ret)
|
18
21
|
end
|
19
22
|
end
|
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: 1.
|
4
|
+
version: 1.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Light
|
@@ -9,188 +9,202 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: excon
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0.38'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0.38'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: formatador
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0.2'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0.2'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: mime-types
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: net-scp
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - ~>
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '1.1'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ~>
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '1.1'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: net-ssh
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: 2.1.3
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: 2.1.3
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rake
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: yard
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- -
|
116
|
+
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: thor
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '0'
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: minitest
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- -
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
type: :development
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- -
|
151
|
+
- - ">="
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
154
|
- !ruby/object:Gem::Dependency
|
155
155
|
name: minitest-stub-const
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
|
-
- -
|
158
|
+
- - ">="
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '0'
|
161
161
|
type: :development
|
162
162
|
prerelease: false
|
163
163
|
version_requirements: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
|
-
- -
|
165
|
+
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: '0'
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: pry
|
170
170
|
requirement: !ruby/object:Gem::Requirement
|
171
171
|
requirements:
|
172
|
-
- -
|
172
|
+
- - ">="
|
173
173
|
- !ruby/object:Gem::Version
|
174
174
|
version: '0'
|
175
175
|
type: :development
|
176
176
|
prerelease: false
|
177
177
|
version_requirements: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
|
-
- -
|
179
|
+
- - ">="
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
- !ruby/object:Gem::Dependency
|
183
183
|
name: coveralls
|
184
184
|
requirement: !ruby/object:Gem::Requirement
|
185
185
|
requirements:
|
186
|
-
- -
|
186
|
+
- - ">="
|
187
187
|
- !ruby/object:Gem::Version
|
188
188
|
version: '0'
|
189
189
|
type: :development
|
190
190
|
prerelease: false
|
191
191
|
version_requirements: !ruby/object:Gem::Requirement
|
192
192
|
requirements:
|
193
|
-
- -
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0'
|
196
|
+
- !ruby/object:Gem::Dependency
|
197
|
+
name: rubocop
|
198
|
+
requirement: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
type: :development
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - ">="
|
194
208
|
- !ruby/object:Gem::Version
|
195
209
|
version: '0'
|
196
210
|
description: Shared classes and tests for fog providers and services.
|
@@ -201,8 +215,9 @@ executables: []
|
|
201
215
|
extensions: []
|
202
216
|
extra_rdoc_files: []
|
203
217
|
files:
|
204
|
-
- .gitignore
|
205
|
-
- .
|
218
|
+
- ".gitignore"
|
219
|
+
- ".rubocop.yml"
|
220
|
+
- ".travis.yml"
|
206
221
|
- CONTRIBUTING.md
|
207
222
|
- CONTRIBUTORS.md
|
208
223
|
- Gemfile
|
@@ -218,6 +233,7 @@ files:
|
|
218
233
|
- lib/fog/compute.rb
|
219
234
|
- lib/fog/compute/models/server.rb
|
220
235
|
- lib/fog/core.rb
|
236
|
+
- lib/fog/core/association.rb
|
221
237
|
- lib/fog/core/associations/default.rb
|
222
238
|
- lib/fog/core/associations/many_identities.rb
|
223
239
|
- lib/fog/core/associations/many_models.rb
|
@@ -283,6 +299,10 @@ files:
|
|
283
299
|
- spec/connection_spec.rb
|
284
300
|
- spec/credentials_spec.rb
|
285
301
|
- spec/current_machine_spec.rb
|
302
|
+
- spec/fake_app/fake_service.rb
|
303
|
+
- spec/fake_app/models/collection.rb
|
304
|
+
- spec/fake_app/models/model.rb
|
305
|
+
- spec/fake_app/requests/request.rb
|
286
306
|
- spec/fog_attribute_spec.rb
|
287
307
|
- spec/identity_spec.rb
|
288
308
|
- spec/mocking_spec.rb
|
@@ -307,17 +327,17 @@ require_paths:
|
|
307
327
|
- lib
|
308
328
|
required_ruby_version: !ruby/object:Gem::Requirement
|
309
329
|
requirements:
|
310
|
-
- -
|
330
|
+
- - ">="
|
311
331
|
- !ruby/object:Gem::Version
|
312
332
|
version: '0'
|
313
333
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
314
334
|
requirements:
|
315
|
-
- -
|
335
|
+
- - ">="
|
316
336
|
- !ruby/object:Gem::Version
|
317
337
|
version: '0'
|
318
338
|
requirements: []
|
319
339
|
rubyforge_project:
|
320
|
-
rubygems_version: 2.
|
340
|
+
rubygems_version: 2.2.2
|
321
341
|
signing_key:
|
322
342
|
specification_version: 4
|
323
343
|
summary: Shared classes and tests for fog providers and services.
|
@@ -326,6 +346,10 @@ test_files:
|
|
326
346
|
- spec/connection_spec.rb
|
327
347
|
- spec/credentials_spec.rb
|
328
348
|
- spec/current_machine_spec.rb
|
349
|
+
- spec/fake_app/fake_service.rb
|
350
|
+
- spec/fake_app/models/collection.rb
|
351
|
+
- spec/fake_app/models/model.rb
|
352
|
+
- spec/fake_app/requests/request.rb
|
329
353
|
- spec/fog_attribute_spec.rb
|
330
354
|
- spec/identity_spec.rb
|
331
355
|
- spec/mocking_spec.rb
|