stacker_bee 2.1.1.pre265 → 2.1.1.pre266

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWM0OWQ4YTM0YTM4ZTgyMDBhZWQwNmMxZWQ2YzZiMGI1NGM3MTM0MA==
4
+ ZTc1NTM3MmMyN2ZmYzJiNTRiM2UzOWI4ODI0MjM0YzljYjAyNGRjZQ==
5
5
  data.tar.gz: !binary |-
6
- NzZlNDg5ZTNkYjc1ZWIyMDBlMzAzMjJlNjIyMGVhZjIxMDU2YTgyNw==
6
+ ZTI3ZGZmZGFhNGFkZWE3YmQwMDVlNzE0ZGVhZDg5MTRiMjZiYzg2Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmU2YjhlY2M5ZmYzZGYwNTUxNTk1ZmZkMGRjYjViMTVmYWVhOGVlZTMwMjE0
10
- OWI0NDIzYzY3MjA5YzEyNmFlMzc2ZWNkZGZlNzY2MmFkODJmODg1ZDU4MzE2
11
- OThhNzU3NTQxZWJmNjM2MWQ0NWI3MmVjZGJkYzdmNTU0ODZjNmE=
9
+ OTEzYmEzNWQwNGYxZmUxMjEzMWEyNDE4Y2Y0NmFhNDU4NTdjMjZiMzhhNTY1
10
+ YmY4MzZiYWI4MTkwYjgzMDU0YTE4MGNiZGNhYmQ0M2QzNmZmNmQzMTBhZTE4
11
+ MTNlZDMwY2QxNGUyMTQ4OTljYzg4OTY5OTk5MGFiMmJmM2VkNzk=
12
12
  data.tar.gz: !binary |-
13
- M2Q4Y2MxOWE4NjczMzI3NGEyYjg0MTI2M2U4MzFiYjM1ZmM2MTg2ZTc3ZmU1
14
- NGQzYzExZTRhNjk3MzA3MTI2NWQ0MGRmMDFiOTNjNjBkMjE0M2Q4NDQ0Y2Ji
15
- NDc4MjJmOWJjMTM5ZWFkMTczYTQ5ZDkzMWEyOGJhOTUzNWRmNDM=
13
+ YzRhOTk4NzU3NWU1ZDUzNjBiYTc4MGFhNzdjNzUwZTU5MDQ5YWNlOGM2OTVh
14
+ NGNlYzQ4Y2E1ZDk0YTI5MzczNmQxZjRjODZlNDA0YTlmNTljMTM5ODJlYjBi
15
+ NTljMjYwZGMyM2RiZWQyYTA4YjI4Nzg3OTViZWY3ODhmYjMzYTY=
data/.rubocop.yml CHANGED
@@ -8,3 +8,6 @@ DoubleNegation:
8
8
 
9
9
  Encoding:
10
10
  Enabled: false
11
+
12
+ Style/AlignHash:
13
+ EnforcedColonStyle: table
@@ -6,8 +6,8 @@ module StackerBee
6
6
 
7
7
  def before(env)
8
8
  env.request.params.merge!(
9
- api_key: api_key,
10
- command: env.request.endpoint_name,
9
+ api_key: api_key,
10
+ command: env.request.endpoint_name,
11
11
  response: RESPONSE_TYPE
12
12
  )
13
13
  env.request.path ||= DEFAULT_PATH
@@ -22,8 +22,8 @@ module StackerBee
22
22
 
23
23
  def base_log_data(env, params)
24
24
  {
25
- request_path: env.request.path,
26
- params: params,
25
+ request_path: env.request.path,
26
+ params: params,
27
27
  response_body: env.raw_response[:body]
28
28
  }
29
29
  end
@@ -96,7 +96,7 @@ describe 'A response to a request sent to the CloudStack API', :vcr do
96
96
  let(:service_offerings) do
97
97
  client.list_network_offerings(
98
98
  supported_services: 'sourcenat',
99
- type: 'isolated'
99
+ type: 'isolated'
100
100
  )
101
101
  end
102
102
 
@@ -108,8 +108,8 @@ describe 'A response to a request sent to the CloudStack API', :vcr do
108
108
 
109
109
  let(:tag) do
110
110
  client.create_tags(resource_type: 'Network',
111
- resource_ids: network['id'],
112
- tags: { 'speed [lab]' => 'real fast!' })
111
+ resource_ids: network['id'],
112
+ tags: { 'speed [lab]' => 'real fast!' })
113
113
  end
114
114
 
115
115
  it 'can create an object' do
data/spec/support/vcr.rb CHANGED
@@ -22,7 +22,7 @@ VCR.configure do |c|
22
22
  end
23
23
 
24
24
  c.default_cassette_options = {
25
- record: :new_episodes,
25
+ record: :new_episodes,
26
26
  match_requests_on: [
27
27
  :method,
28
28
  VCR.request_matchers.uri_without_param(:signature)
@@ -15,7 +15,7 @@ end
15
15
  describe StackerBee::Client, 'calling endpoint' do
16
16
  let(:client) do
17
17
  described_class.new(
18
- url: 'http://example.com',
18
+ url: 'http://example.com',
19
19
  middlewares: lambda do |builder|
20
20
  builder.before middleware_class,
21
21
  expected_endpoint_name: endpoint_name,
@@ -109,22 +109,22 @@ describe StackerBee::Configuration do
109
109
 
110
110
  let(:parent) do
111
111
  described_class.new(
112
- url: :parent_url,
113
- api_key: :parent_api_key,
114
- secret_key: :parent_secret_key,
115
- ssl_verify: :parent_ssl_verify,
116
- middlewares: :parent_ssl_middlewares,
112
+ url: :parent_url,
113
+ api_key: :parent_api_key,
114
+ secret_key: :parent_secret_key,
115
+ ssl_verify: :parent_ssl_verify,
116
+ middlewares: :parent_ssl_middlewares,
117
117
  faraday_middlewares: :parent_faraday_middlewares
118
118
  )
119
119
  end
120
120
 
121
121
  let(:child) do
122
122
  described_class.new(
123
- url: :child_url,
124
- api_key: :child_api_key,
125
- secret_key: :child_secret_key,
126
- ssl_verify: :child_ssl_verify,
127
- middlewares: :child_ssl_middlewares,
123
+ url: :child_url,
124
+ api_key: :child_api_key,
125
+ secret_key: :child_secret_key,
126
+ ssl_verify: :child_ssl_verify,
127
+ middlewares: :child_ssl_middlewares,
128
128
  faraday_middlewares: :child_faraday_middlewares
129
129
  )
130
130
  end
@@ -14,7 +14,7 @@ describe StackerBee::Connection do
14
14
  let(:ssl_verify) { true }
15
15
  let(:configuration) do
16
16
  StackerBee::Configuration.new(
17
- url: url,
17
+ url: url,
18
18
  secret_key: secret_key,
19
19
  ssl_verify: ssl_verify
20
20
  )
@@ -4,8 +4,8 @@ describe StackerBee::Middleware::Adapter do
4
4
  let(:env) do
5
5
  StackerBee::Middleware::Environment.new(
6
6
  endpoint_name: 'listVirtualMachines',
7
- params: params,
8
- path: path
7
+ params: params,
8
+ path: path
9
9
  )
10
10
  end
11
11
  let(:app) { double(:app, call: response) }
@@ -4,7 +4,7 @@ describe StackerBee::Middleware::CloudStackAPI do
4
4
  let(:env) do
5
5
  StackerBee::Middleware::Environment.new(
6
6
  endpoint_name: 'endpoint-name',
7
- path: path
7
+ path: path
8
8
  )
9
9
  end
10
10
  let(:middleware) { described_class.new(api_key: 'API-KEY', params: {}) }
@@ -6,7 +6,7 @@ describe StackerBee::Middleware::FormatValues do
6
6
  let(:params) do
7
7
  {
8
8
  single: 1,
9
- list: [1, 2, 3]
9
+ list: [1, 2, 3]
10
10
  }
11
11
  end
12
12
 
@@ -12,25 +12,25 @@ describe StackerBee::Middleware::RemoveEmptyStrings do
12
12
 
13
13
  before do
14
14
  env.request.params = {
15
- blank: '',
16
- ok1: true,
17
- ok2: nil,
18
- ok3: 'string',
19
- ok4: ' ',
15
+ blank: '',
16
+ ok1: true,
17
+ ok2: nil,
18
+ ok3: 'string',
19
+ ok4: ' ',
20
20
 
21
21
  nested: {
22
- blank: '',
23
- ok1: true,
24
- ok2: nil,
25
- ok3: 'string',
26
- ok4: ' ',
22
+ blank: '',
23
+ ok1: true,
24
+ ok2: nil,
25
+ ok3: 'string',
26
+ ok4: ' ',
27
27
 
28
28
  nested: {
29
29
  blank: '',
30
- ok1: true,
31
- ok2: nil,
32
- ok3: 'string',
33
- ok4: ' '
30
+ ok1: true,
31
+ ok2: nil,
32
+ ok3: 'string',
33
+ ok4: ' '
34
34
  }
35
35
  }
36
36
  }
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.pre265
4
+ version: 2.1.1.pre266
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Sterndale