stacker_bee 2.1.0.pre196 → 2.1.0.pre201

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
- ZGJiNzgyOGVhMjIyNzYxZmVkOTE0OWE4MDUzYTAzNzQ0ODY4MTA4Mw==
4
+ ZTJkYjIzNTA5OTYxODRkMDZkMjVhZGRiODNlNTVmMjcxNjVmNGJkOQ==
5
5
  data.tar.gz: !binary |-
6
- ZWU2ZTQ3NGQ2YjRmMGJiM2EwNzdmY2RiM2E5N2JhM2ZlMDRiOWVhNg==
6
+ ZDIzMDZmNDM2YjM2ZmE5NDc3NjdlNDk1YTFlYTczZjVmMTIzNmY5ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTVjYTMxN2ZiYWFjMTJiNjZhNDdjMjNhNGUwYTQ2ZmQ3YjdmYTYwMGNhMTYz
10
- ZDBjYjRmNjAyN2MwNmZkY2U3NTBlZmVhZmI4MjBmZDY2YmYzNjUzMWJlOWZi
11
- YTQ3MDU2NzFlY2QyNGMwMjZkOTkxMDlmNmQyMTY0YTNmYTk5NTU=
9
+ MzQ2M2I1MjBlMGM5ODc1MmVlNWU2MjVmMTE1MzM1ZTUxNjY0YWFmZDBlNzA4
10
+ MDY3OGFiNTNjY2RjYzY2MzE4ZDZmMzRiOWNmNDkyZWY4MGE0ZWE3ZTU3MGFh
11
+ ZGRiOTk0NmMzMDUxMGYzODM1OWJlYzM0MTFlZGFlN2RmZTUyYzE=
12
12
  data.tar.gz: !binary |-
13
- ODNlZGE1ZWRkODkyYWQ2MmQ4YjEzOWQ0NWFkYWRiOTg3MjBiZmRiNDNmOWMz
14
- OWU0ODA3MGRiZDA1ZDIwNDk5M2Q3ZmJmODQ0YmViODI4MjEyNDhiM2E1ZDc0
15
- MzMxMDQ2YTY5NmQ5NDhhODBkZjU0YTIxYTY4MzU5N2I2YTI2MTE=
13
+ YTIyNGViMzEzZGI5YjYxNjZlY2MzOGY5N2U1MzE5ZTc0YjlmZDNkNjJkYzI3
14
+ ODkzZmE5ODU1ZWE3MWMyN2JmMjQyMmIyNjRlMDJhYjgzYjEwMmYxNjAyOWQy
15
+ MWZhZDk3NDY4ZjU3NjA4MDg0MTQ2NmE4OGU1YmUyMWU0OGRkMjk=
data/.rubocop.yml CHANGED
@@ -1,7 +1,13 @@
1
1
  # This is the configuration used to check the rubocop source code.
2
2
 
3
+ Documentation:
4
+ Enabled: false
5
+
6
+ DoubleNegation:
7
+ Enabled: false
8
+
3
9
  StringLiterals:
4
10
  Enabled: false
5
11
 
6
- Documentation:
12
+ Encoding:
7
13
  Enabled: false
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
3
4
 
4
- RSpec::Core::RakeTask.new(:spec)
5
+ task default: [:spec, :rubocop]
5
6
 
6
- task :default => :spec
7
+ RSpec::Core::RakeTask.new
8
+ Rubocop::RakeTask.new
data/bin/stacker_bee CHANGED
@@ -11,14 +11,15 @@ require 'irb/completion'
11
11
 
12
12
  cli_title = "StackerBee CloudStack REPL"
13
13
 
14
- filename = File.basename(__FILE__)
15
- options = {}
16
- verbose = false
17
- optparse = OptionParser.new do |opts|
18
- opts.banner = "#{cli_title}\n" <<
19
- "Usage: #{filename} [options]\n" <<
20
- "Example: #{filename} " <<
21
- "-u http://localhost:8080 -a MY_API_KEY -s MY_SECRET_KEY"
14
+ command = File.basename(__FILE__)
15
+ options = {}
16
+ verbose = false
17
+ optparse = OptionParser.new do |opts|
18
+ opts.banner = <<-BANNER.gsub(/^\s{4}/, '')
19
+ #{cli_title}
20
+ Usage: #{command} [options]
21
+ Example: #{command} -u http://localhost:8080 -a MY_API_KEY -s MY_SECRET_KEY
22
+ BANNER
22
23
 
23
24
  config_help = "StackerBee configuration file, formatted as YAML"
24
25
  opts.on('-c', '--config=/PATH/TO/CONFIG.yml', config_help) do |config|
@@ -3,6 +3,8 @@ require "ostruct"
3
3
  module StackerBee
4
4
  class Configuration < OpenStruct
5
5
  def ssl_verify?
6
+ # rubocop:disable NonNilCheck
7
+ # it should default to true if it's not explicitly set
6
8
  !ssl_verify.nil? ? ssl_verify : true
7
9
  end
8
10
  end
@@ -31,7 +31,7 @@ module StackerBee
31
31
  configuration.faraday_middlewares.call faraday
32
32
 
33
33
  unless using_adapter?(faraday.builder.handlers)
34
- faraday.adapter Faraday.default_adapter # Net::HTTP
34
+ faraday.adapter Faraday.default_adapter # Net::HTTP
35
35
  end
36
36
  end
37
37
  end
data/spec/spec_helper.rb CHANGED
@@ -13,7 +13,7 @@ default_config_file = File.expand_path("../../config.default.yml", __FILE__)
13
13
  config_file = File.expand_path("../../config.yml", __FILE__)
14
14
 
15
15
  CONFIG = YAML.load(File.read(default_config_file))
16
- CONFIG.merge!(YAML.load(File.read(config_file))) if File.exists?(config_file)
16
+ CONFIG.merge!(YAML.load(File.read(config_file))) if File.exist?(config_file)
17
17
 
18
18
  require 'webmock/rspec'
19
19
 
@@ -41,7 +41,7 @@ describe StackerBee::Middleware::ConsoleAccess do
41
41
 
42
42
  describe "#endpoint_name_for" do
43
43
  context "given names it reponds to" do
44
- %w[consoleAccess console_access CONSOLEACCESS].each do |name|
44
+ %w(consoleAccess console_access CONSOLEACCESS).each do |name|
45
45
  subject { middleware.endpoint_name_for(name) }
46
46
  it { should eq described_class::ENDPOINT }
47
47
  end
@@ -10,9 +10,9 @@ describe StackerBee::Middleware::FormatKeys do
10
10
  }
11
11
  end
12
12
 
13
- it { should have_key "symbol" }
13
+ it { should have_key "symbol" }
14
14
  it { should_not have_key :symbol }
15
15
 
16
- it { should have_key "keyCase" }
16
+ it { should have_key "keyCase" }
17
17
  it { should_not have_key :key_case }
18
18
  end
data/stacker_bee.gemspec CHANGED
@@ -30,9 +30,12 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency "rspec", "~> 2.1"
31
31
  spec.add_development_dependency "webmock", "~> 1.15"
32
32
  spec.add_development_dependency "vcr", "~> 2.6"
33
- spec.add_development_dependency "rubocop"
34
33
  spec.add_development_dependency "pry"
35
34
 
35
+ # It should be consistent for Travis and all developers, since we don't check
36
+ # in the Gemfile.lock
37
+ spec.add_development_dependency "rubocop", "0.20.1"
38
+
36
39
  # Release every merge to master as a prerelease
37
40
  spec.version = "#{spec.version}.pre#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
38
41
  end
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.0.pre196
4
+ version: 2.1.0.pre201
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Sterndale
@@ -130,7 +130,7 @@ dependencies:
130
130
  - !ruby/object:Gem::Version
131
131
  version: '2.6'
132
132
  - !ruby/object:Gem::Dependency
133
- name: rubocop
133
+ name: pry
134
134
  requirement: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ! '>='
@@ -144,19 +144,19 @@ dependencies:
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  - !ruby/object:Gem::Dependency
147
- name: pry
147
+ name: rubocop
148
148
  requirement: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ! '>='
150
+ - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: '0'
152
+ version: 0.20.1
153
153
  type: :development
154
154
  prerelease: false
155
155
  version_requirements: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ! '>='
157
+ - - '='
158
158
  - !ruby/object:Gem::Version
159
- version: '0'
159
+ version: 0.20.1
160
160
  description: Ruby CloudStack client and CLI
161
161
  email:
162
162
  - team@promptworks.com