stacker_bee 2.1.1.pre269 → 2.1.1.pre271
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 +8 -8
- data/.rubocop.yml +13 -1
- data/spec/units/stacker_bee/middleware/{cloudstack_api_spec.rb → cloud_stack_api_spec.rb} +0 -0
- data/spec/units/stacker_bee/middleware/log_response_spec.rb +4 -3
- data/spec/units/stacker_bee/middleware/remove_empty_strings_spec.rb +1 -0
- data/spec/units/stacker_bee/utilities_spec.rb +31 -25
- data/spec/units/stacker_bee_spec.rb +2 -3
- data/stacker_bee.gemspec +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MTE1OWY4NWU5Y2RjYThlZWRjOTFiNTlmNzA5Y2EzYzA1NjNlMDVlOA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YThlZmRjNzM5NTUyYWJlZmMyYWFiMWYyMzBmMTFkMjI2YjU3MDBjYw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZTBiNzUyMTY0MzU1YzNlMTc2NzJlZGYyM2YzZGNlZDNkZWI0ZjZhMjYxODg1
|
|
10
|
+
NDcwMmJlMjIyZDVkZmVkMDhmZDQ3MjBjMDczM2VjM2E3ZTRiMjdmMzdjOWQ3
|
|
11
|
+
ZTYwNDkwMzYwZjMyMjI3YzUyZmZjZTE0NGViNWRlYjhmZDJmOTM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZjE4OWIzYTY5NmQ5NmI1MjhmNThhZDVjNGQwM2E0YzUwMTY4NDQ0MWYwNDk5
|
|
14
|
+
NjY0ZmIzNDRjYWFhOTE2YWNmNTYzZTkyOGNmMTM4NDM5OWNhZGFmMjIxYTQ5
|
|
15
|
+
OWMwMDFhNDJkN2IyYWI2YmI5NTkwZTUyNTY1ZTEyMjdhZGE4ZDM=
|
data/.rubocop.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
require: rubocop-rspec
|
|
2
2
|
|
|
3
3
|
Documentation:
|
|
4
4
|
Enabled: false
|
|
@@ -11,3 +11,15 @@ Style/AlignHash:
|
|
|
11
11
|
|
|
12
12
|
Style/Encoding:
|
|
13
13
|
EnforcedStyle: when_needed
|
|
14
|
+
|
|
15
|
+
Style/SingleSpaceBeforeFirstArg:
|
|
16
|
+
Enabled: false
|
|
17
|
+
|
|
18
|
+
RSpec/DescribeClass:
|
|
19
|
+
Enabled: false
|
|
20
|
+
|
|
21
|
+
RSpec/MultipleDescribes:
|
|
22
|
+
Enabled: false
|
|
23
|
+
|
|
24
|
+
RSpec/DescribeMethod:
|
|
25
|
+
Enabled: false
|
|
File without changes
|
|
@@ -28,7 +28,8 @@ describe StackerBee::Middleware::LogResponse do
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
it_should_behave_like 'all logs'
|
|
31
|
-
|
|
31
|
+
|
|
32
|
+
it 'logs details' do
|
|
32
33
|
expect(logger.logs.last[:short_message]).to eq \
|
|
33
34
|
'some command failed: invalid request'
|
|
34
35
|
end
|
|
@@ -41,11 +42,11 @@ describe StackerBee::Middleware::LogResponse do
|
|
|
41
42
|
end
|
|
42
43
|
|
|
43
44
|
it_should_behave_like 'all logs'
|
|
44
|
-
|
|
45
|
+
|
|
46
|
+
it 'logs details' do
|
|
45
47
|
expect(logger.logs.length).to eq 1
|
|
46
48
|
expect(logger.logs.last[:short_message]).to eq 'some command'
|
|
47
49
|
end
|
|
48
|
-
|
|
49
50
|
end
|
|
50
51
|
end
|
|
51
52
|
end
|
|
@@ -2,6 +2,7 @@ require 'spec_helper'
|
|
|
2
2
|
|
|
3
3
|
# TODO: does this really need to work with nested hashes?
|
|
4
4
|
describe StackerBee::Middleware::RemoveEmptyStrings do
|
|
5
|
+
# rubocop:disable RSpec/InstanceVariable
|
|
5
6
|
let(:middleware) do
|
|
6
7
|
described_class.new(app: proc { |env| @response_env = env })
|
|
7
8
|
end
|
|
@@ -1,30 +1,36 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
2
|
|
|
3
|
-
describe StackerBee::Utilities
|
|
4
|
-
include
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
3
|
+
describe StackerBee::Utilities do
|
|
4
|
+
include described_class
|
|
5
|
+
|
|
6
|
+
describe '#uncase' do
|
|
7
|
+
it { expect(uncase('Foo Bar')).to eq 'foobar' }
|
|
8
|
+
it { expect(uncase('foo_bar')).to eq 'foobar' }
|
|
9
|
+
it { expect(uncase('foo-bar')).to eq 'foobar' }
|
|
10
|
+
it { expect(uncase('fooBar')).to eq 'foobar' }
|
|
11
|
+
it { expect(uncase('foo[0].Bar')).to eq 'foo[0].bar' }
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
describe '#snake_case' do
|
|
15
|
+
it { expect(snake_case('Foo Bar')).to eq 'foo_bar' }
|
|
16
|
+
it { expect(snake_case('foo_bar')).to eq 'foo_bar' }
|
|
17
|
+
it { expect(snake_case('foo-bar')).to eq 'foo_bar' }
|
|
18
|
+
it { expect(snake_case('fooBar')).to eq 'foo_bar' }
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
describe '#camel_case' do
|
|
22
|
+
it { expect(camel_case('Foo Bar')).to eq 'FooBar' }
|
|
23
|
+
it { expect(camel_case('foo_bar')).to eq 'FooBar' }
|
|
24
|
+
it { expect(camel_case('foo-bar')).to eq 'FooBar' }
|
|
25
|
+
it { expect(camel_case('fooBar')).to eq 'FooBar' }
|
|
26
|
+
|
|
27
|
+
it { expect(camel_case('Foo Bar', true)).to eq 'fooBar' }
|
|
28
|
+
it { expect(camel_case('foo_bar', true)).to eq 'fooBar' }
|
|
29
|
+
it { expect(camel_case('foo-bar', true)).to eq 'fooBar' }
|
|
30
|
+
it { expect(camel_case('fooBar', true)).to eq 'fooBar' }
|
|
31
|
+
it { expect(camel_case('fooBar', false)).to eq 'FooBar' }
|
|
32
|
+
it { expect(camel_case('foo[0].Bar', false)).to eq 'Foo[0].Bar' }
|
|
33
|
+
end
|
|
28
34
|
|
|
29
35
|
describe '#map_a_hash' do
|
|
30
36
|
let(:original) { { 1 => 1, 2 => 2 } }
|
data/stacker_bee.gemspec
CHANGED
|
@@ -34,7 +34,8 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
|
|
35
35
|
# It should be consistent for Travis and all developers, since we don't check
|
|
36
36
|
# in the Gemfile.lock
|
|
37
|
-
spec.add_development_dependency 'rubocop',
|
|
37
|
+
spec.add_development_dependency 'rubocop', '0.24.1'
|
|
38
|
+
spec.add_development_dependency 'rubocop-rspec', '1.1.0'
|
|
38
39
|
|
|
39
40
|
# Release every merge to master as a prerelease
|
|
40
41
|
if ENV['TRAVIS']
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stacker_bee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.1.
|
|
4
|
+
version: 2.1.1.pre271
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Greg Sterndale
|
|
@@ -171,6 +171,20 @@ dependencies:
|
|
|
171
171
|
- - '='
|
|
172
172
|
- !ruby/object:Gem::Version
|
|
173
173
|
version: 0.24.1
|
|
174
|
+
- !ruby/object:Gem::Dependency
|
|
175
|
+
name: rubocop-rspec
|
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
|
177
|
+
requirements:
|
|
178
|
+
- - '='
|
|
179
|
+
- !ruby/object:Gem::Version
|
|
180
|
+
version: 1.1.0
|
|
181
|
+
type: :development
|
|
182
|
+
prerelease: false
|
|
183
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
185
|
+
- - '='
|
|
186
|
+
- !ruby/object:Gem::Version
|
|
187
|
+
version: 1.1.0
|
|
174
188
|
description: Ruby CloudStack client and CLI
|
|
175
189
|
email:
|
|
176
190
|
- team@promptworks.com
|
|
@@ -254,7 +268,7 @@ files:
|
|
|
254
268
|
- spec/units/stacker_bee/connection_spec.rb
|
|
255
269
|
- spec/units/stacker_bee/middleware/adapter_spec.rb
|
|
256
270
|
- spec/units/stacker_bee/middleware/base_spec.rb
|
|
257
|
-
- spec/units/stacker_bee/middleware/
|
|
271
|
+
- spec/units/stacker_bee/middleware/cloud_stack_api_spec.rb
|
|
258
272
|
- spec/units/stacker_bee/middleware/console_access_spec.rb
|
|
259
273
|
- spec/units/stacker_bee/middleware/dictionary_flattener_spec.rb
|
|
260
274
|
- spec/units/stacker_bee/middleware/endpoint_normalizer_spec.rb
|
|
@@ -328,7 +342,7 @@ test_files:
|
|
|
328
342
|
- spec/units/stacker_bee/connection_spec.rb
|
|
329
343
|
- spec/units/stacker_bee/middleware/adapter_spec.rb
|
|
330
344
|
- spec/units/stacker_bee/middleware/base_spec.rb
|
|
331
|
-
- spec/units/stacker_bee/middleware/
|
|
345
|
+
- spec/units/stacker_bee/middleware/cloud_stack_api_spec.rb
|
|
332
346
|
- spec/units/stacker_bee/middleware/console_access_spec.rb
|
|
333
347
|
- spec/units/stacker_bee/middleware/dictionary_flattener_spec.rb
|
|
334
348
|
- spec/units/stacker_bee/middleware/endpoint_normalizer_spec.rb
|