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 +8 -8
- data/.rubocop.yml +7 -1
- data/Rakefile +5 -3
- data/bin/stacker_bee +9 -8
- data/lib/stacker_bee/configuration.rb +2 -0
- data/lib/stacker_bee/connection.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/units/stacker_bee/middleware/console_access_spec.rb +1 -1
- data/spec/units/stacker_bee/middleware/format_keys_spec.rb +2 -2
- data/stacker_bee.gemspec +4 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTJkYjIzNTA5OTYxODRkMDZkMjVhZGRiODNlNTVmMjcxNjVmNGJkOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDIzMDZmNDM2YjM2ZmE5NDc3NjdlNDk1YTFlYTczZjVmMTIzNmY5ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzQ2M2I1MjBlMGM5ODc1MmVlNWU2MjVmMTE1MzM1ZTUxNjY0YWFmZDBlNzA4
|
10
|
+
MDY3OGFiNTNjY2RjYzY2MzE4ZDZmMzRiOWNmNDkyZWY4MGE0ZWE3ZTU3MGFh
|
11
|
+
ZGRiOTk0NmMzMDUxMGYzODM1OWJlYzM0MTFlZGFlN2RmZTUyYzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTIyNGViMzEzZGI5YjYxNjZlY2MzOGY5N2U1MzE5ZTc0YjlmZDNkNjJkYzI3
|
14
|
+
ODkzZmE5ODU1ZWE3MWMyN2JmMjQyMmIyNjRlMDJhYjgzYjEwMmYxNjAyOWQy
|
15
|
+
MWZhZDk3NDY4ZjU3NjA4MDg0MTQ2NmE4OGU1YmUyMWU0OGRkMjk=
|
data/.rubocop.yml
CHANGED
data/Rakefile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
2
2
|
require 'rspec/core/rake_task'
|
3
|
+
require 'rubocop/rake_task'
|
3
4
|
|
4
|
-
|
5
|
+
task default: [:spec, :rubocop]
|
5
6
|
|
6
|
-
|
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
|
-
|
15
|
-
options
|
16
|
-
verbose
|
17
|
-
optparse
|
18
|
-
opts.banner =
|
19
|
-
|
20
|
-
|
21
|
-
|
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|
|
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.
|
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
|
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
|
13
|
+
it { should have_key "symbol" }
|
14
14
|
it { should_not have_key :symbol }
|
15
15
|
|
16
|
-
it { should
|
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.
|
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:
|
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:
|
147
|
+
name: rubocop
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - '='
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
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:
|
159
|
+
version: 0.20.1
|
160
160
|
description: Ruby CloudStack client and CLI
|
161
161
|
email:
|
162
162
|
- team@promptworks.com
|