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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjRjMDc2ZDk1NzFmMTQyMmUyNmMyYTBhYzZkODI3MTMyOTdjNjIyOQ==
4
+ MTE1OWY4NWU5Y2RjYThlZWRjOTFiNTlmNzA5Y2EzYzA1NjNlMDVlOA==
5
5
  data.tar.gz: !binary |-
6
- Njc1ZTJkZDBlYzVlOTM5ODk2ODdiMTg4MWViZWE4NjFjNTE3NTFlYg==
6
+ YThlZmRjNzM5NTUyYWJlZmMyYWFiMWYyMzBmMTFkMjI2YjU3MDBjYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Njg5YWUzYjBhMWIwYzNkNDBlYjZmMWVhYTcwMTY2NmEzYzU4YWM0NjA5NTJi
10
- NTYyYWM0N2FlYTVkM2NjNTY3MjI2MTlhMDE4YmRhNmVhMjg2NDM3MTg0M2Fj
11
- Y2MzODgwMzgzN2M2YzliNGEyNzc5Y2QyODc5ODM5ZjU1ZWY4MGU=
9
+ ZTBiNzUyMTY0MzU1YzNlMTc2NzJlZGYyM2YzZGNlZDNkZWI0ZjZhMjYxODg1
10
+ NDcwMmJlMjIyZDVkZmVkMDhmZDQ3MjBjMDczM2VjM2E3ZTRiMjdmMzdjOWQ3
11
+ ZTYwNDkwMzYwZjMyMjI3YzUyZmZjZTE0NGViNWRlYjhmZDJmOTM=
12
12
  data.tar.gz: !binary |-
13
- NGU5YmRlZWY5NGEzZWQ0NjRlNTUzYTVjZGZhMjc0ZjM1NTE5MWY2NDliNzg0
14
- MzdlMDE0OThiZDQ0MjVkMjc3ZWIxNWJhZDgxYWQxMjEzZTU3NTQwNGExOTNh
15
- ZDZiNzYzMDI2YTBlYzcyZDdhNzJhMGQ1ZWUyZWUwZmM5YWU1MWI=
13
+ ZjE4OWIzYTY5NmQ5NmI1MjhmNThhZDVjNGQwM2E0YzUwMTY4NDQ0MWYwNDk5
14
+ NjY0ZmIzNDRjYWFhOTE2YWNmNTYzZTkyOGNmMTM4NDM5OWNhZGFmMjIxYTQ5
15
+ OWMwMDFhNDJkN2IyYWI2YmI5NTkwZTUyNTY1ZTEyMjdhZGE4ZDM=
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- # This is the configuration used to check the rubocop source code.
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
@@ -28,7 +28,8 @@ describe StackerBee::Middleware::LogResponse do
28
28
  end
29
29
 
30
30
  it_should_behave_like 'all logs'
31
- it 'should have logged the details' do
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
- it 'should have logged the details' do
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, '#uncase' do
4
- include StackerBee::Utilities
5
-
6
- it { expect(uncase('Foo Bar')).to eq 'foobar' }
7
- it { expect(uncase('foo_bar')).to eq 'foobar' }
8
- it { expect(uncase('foo-bar')).to eq 'foobar' }
9
- it { expect(uncase('fooBar')).to eq 'foobar' }
10
- it { expect(uncase('foo[0].Bar')).to eq 'foo[0].bar' }
11
-
12
- it { expect(snake_case('Foo Bar')).to eq 'foo_bar' }
13
- it { expect(snake_case('foo_bar')).to eq 'foo_bar' }
14
- it { expect(snake_case('foo-bar')).to eq 'foo_bar' }
15
- it { expect(snake_case('fooBar')).to eq 'foo_bar' }
16
-
17
- it { expect(camel_case('Foo Bar')).to eq 'FooBar' }
18
- it { expect(camel_case('foo_bar')).to eq 'FooBar' }
19
- it { expect(camel_case('foo-bar')).to eq 'FooBar' }
20
- it { expect(camel_case('fooBar')).to eq 'FooBar' }
21
-
22
- it { expect(camel_case('Foo Bar', true)).to eq 'fooBar' }
23
- it { expect(camel_case('foo_bar', true)).to eq 'fooBar' }
24
- it { expect(camel_case('foo-bar', true)).to eq 'fooBar' }
25
- it { expect(camel_case('fooBar', true)).to eq 'fooBar' }
26
- it { expect(camel_case('fooBar', false)).to eq 'FooBar' }
27
- it { expect(camel_case('foo[0].Bar', false)).to eq 'Foo[0].Bar' }
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 } }
@@ -1,6 +1,5 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe StackerBee, 'VERSION' do
4
- subject { StackerBee::VERSION }
5
- it { is_expected.not_to be_nil }
3
+ describe StackerBee do
4
+ it { expect(StackerBee::VERSION).not_to be_nil }
6
5
  end
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', '0.24.1'
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.pre269
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/cloudstack_api_spec.rb
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/cloudstack_api_spec.rb
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