lono-params 0.1.1 → 1.0.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +3 -3
- data/Guardfile +5 -5
- data/bin/lono-params +1 -1
- data/lib/{lono_params → lono-params}/cli/help.rb +1 -1
- data/lib/{lono_params → lono-params}/cli.rb +3 -2
- data/lib/lono-params/command.rb +23 -0
- data/lib/{lono_params → lono-params}/generator.rb +0 -0
- data/lib/{lono_params → lono-params}/version.rb +1 -1
- data/lib/lono-params.rb +4 -3
- data/{lono_params.gemspec → lono-params.gemspec} +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48f4fd8fe7ad6f4664421809e114a8fbc9734d48
|
4
|
+
data.tar.gz: d1170aaa995527f61e670fd93f208eec34564551
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3672cbc3b3b4bf45fb0941d55dfc3609fbfe4dbbd5f1dc52b34876d7417d163ef70d78543fd1ece76c92eb7ded439090f9b0ec6b530284265b09ababe1775402
|
7
|
+
data.tar.gz: e4facbcc2899ff9c08231d8aeda8c72f96e4269c77761fe334b9b6f90b921e6980b1540999c9a67849a623079b440cec5764e36012ff5b0215245c12ed94adf0
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [1.0.0]
|
7
|
+
- allow --help or -h at the end of the command
|
8
|
+
- rename lono_params -> lono-params
|
9
|
+
- major version bump. been in used and tested for a while now
|
10
|
+
|
6
11
|
## [0.1.1]
|
7
12
|
|
8
13
|
- fix specs
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in
|
3
|
+
# Specify your gem's dependencies in lono-params.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
gem "codeclimate-test-reporter", group: :test, require: nil
|
6
|
+
gem "codeclimate-test-reporter", group: :test, require: nil
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lono-params (0.
|
4
|
+
lono-params (1.0.0)
|
5
5
|
colorize
|
6
6
|
hashie
|
7
7
|
json
|
@@ -26,7 +26,7 @@ GEM
|
|
26
26
|
diff-lcs (1.3)
|
27
27
|
docile (1.1.5)
|
28
28
|
hashie (3.5.5)
|
29
|
-
i18n (0.8.
|
29
|
+
i18n (0.8.4)
|
30
30
|
json (2.1.0)
|
31
31
|
minitest (5.10.2)
|
32
32
|
plissken (0.3.0)
|
@@ -70,4 +70,4 @@ DEPENDENCIES
|
|
70
70
|
rspec
|
71
71
|
|
72
72
|
BUNDLED WITH
|
73
|
-
1.
|
73
|
+
1.15.0
|
data/Guardfile
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
guard 'rspec' do
|
2
2
|
watch(%r{^spec/.+_spec\.rb$})
|
3
|
-
watch(%r{^lib/(.+)\.rb$}) { "spec/
|
4
|
-
watch(%r{^lib/
|
5
|
-
watch('spec/spec_helper.rb') { "spec/
|
6
|
-
watch(%r{^lib/
|
3
|
+
watch(%r{^lib/(.+)\.rb$}) { "spec/lono-params_spec.rb" }
|
4
|
+
watch(%r{^lib/lono-params/(.+)\.rb$}) { "spec/lono-params_spec.rb" }
|
5
|
+
watch('spec/spec_helper.rb') { "spec/lono-params_spec.rb" }
|
6
|
+
watch(%r{^lib/lono-params/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
7
7
|
end
|
8
8
|
|
9
9
|
guard 'bundler' do
|
10
10
|
watch('Gemfile')
|
11
11
|
watch(/^.+\.gemspec/)
|
12
|
-
end
|
12
|
+
end
|
data/bin/lono-params
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
require 'thor'
|
2
|
-
require '
|
2
|
+
require 'lono-params/command'
|
3
|
+
require 'lono-params/cli/help'
|
3
4
|
|
4
5
|
module LonoParams
|
5
6
|
|
6
|
-
class CLI <
|
7
|
+
class CLI < Command
|
7
8
|
class_option :verbose, type: :boolean
|
8
9
|
class_option :noop, type: :boolean
|
9
10
|
class_option :project_root, desc: "project root to use", default: '.'
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module LonoParams
|
2
|
+
class Command < Thor
|
3
|
+
class << self
|
4
|
+
def dispatch(m, args, options, config)
|
5
|
+
# Allow calling for help via:
|
6
|
+
# ufo docker help
|
7
|
+
# ufo docker -h
|
8
|
+
# ufo docker --help
|
9
|
+
# ufo docker -D
|
10
|
+
#
|
11
|
+
# as well thor's nomral setting as
|
12
|
+
#
|
13
|
+
# ufo help docker
|
14
|
+
help_flags = Thor::HELP_MAPPINGS + ["help"]
|
15
|
+
if args.length > 1 && !(args & help_flags).empty?
|
16
|
+
args -= help_flags
|
17
|
+
args.insert(-2, "help")
|
18
|
+
end
|
19
|
+
super
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
File without changes
|
data/lib/lono-params.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
$:.unshift(File.expand_path("../", __FILE__))
|
2
|
-
require "
|
2
|
+
require "lono-params/version"
|
3
3
|
|
4
4
|
require "json"
|
5
5
|
require "fileutils"
|
6
6
|
require 'plissken' # Hash#to_snake_keys
|
7
7
|
|
8
8
|
module LonoParams
|
9
|
-
autoload :CLI, '
|
10
|
-
autoload :
|
9
|
+
autoload :CLI, 'lono-params/command'
|
10
|
+
autoload :CLI, 'lono-params/cli'
|
11
|
+
autoload :Generator, 'lono-params/generator'
|
11
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lono-params
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -141,11 +141,12 @@ files:
|
|
141
141
|
- Rakefile
|
142
142
|
- bin/lono-params
|
143
143
|
- lib/lono-params.rb
|
144
|
-
- lib/
|
145
|
-
- lib/
|
146
|
-
- lib/
|
147
|
-
- lib/
|
148
|
-
-
|
144
|
+
- lib/lono-params/cli.rb
|
145
|
+
- lib/lono-params/cli/help.rb
|
146
|
+
- lib/lono-params/command.rb
|
147
|
+
- lib/lono-params/generator.rb
|
148
|
+
- lib/lono-params/version.rb
|
149
|
+
- lono-params.gemspec
|
149
150
|
- spec/fixtures/my_project/params/my-stack.txt
|
150
151
|
- spec/lib/cli_spec.rb
|
151
152
|
- spec/spec_helper.rb
|
@@ -169,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
170
|
version: '0'
|
170
171
|
requirements: []
|
171
172
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.
|
173
|
+
rubygems_version: 2.6.11
|
173
174
|
signing_key:
|
174
175
|
specification_version: 4
|
175
176
|
summary: Tool to generate a CloudFormation parameters json formatted file
|