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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42b15262add0a738a598444f08b024a970c757b6
4
- data.tar.gz: 16216129105d15e26dfd5904b23c90338558a0b2
3
+ metadata.gz: 48f4fd8fe7ad6f4664421809e114a8fbc9734d48
4
+ data.tar.gz: d1170aaa995527f61e670fd93f208eec34564551
5
5
  SHA512:
6
- metadata.gz: 6b5d928c11c708bb2fdb08282aa267495045e3343ed00cbc8f2058a548b0e07c13f71d1c101f1b6889eef07d9387f978fe185fdc08b7a352a9c32550db68cdc6
7
- data.tar.gz: c7ec7f911c7a4cfd6cd20b9b4b6b6b569d30fbeaa30c95d462d521c3cffd55a4490a0f70af4c3bff2573862e3c3ab2a2aee26713c01f44f2e3d3f7a11c7d3b59
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 lono_params.gemspec
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.1.1)
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.1)
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.14.6
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/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" }
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  $:.unshift(File.expand_path('../../lib', __FILE__))
4
4
  require 'lono-params'
5
- require 'lono_params/cli'
5
+ require 'lono-params/cli'
6
6
 
7
7
  LonoParams::CLI.start(ARGV)
@@ -1,5 +1,5 @@
1
1
  module LonoParams
2
- class CLI < Thor
2
+ class CLI < Command
3
3
  class Help
4
4
  class << self
5
5
  def generate
@@ -1,9 +1,10 @@
1
1
  require 'thor'
2
- require 'lono_params/cli/help'
2
+ require 'lono-params/command'
3
+ require 'lono-params/cli/help'
3
4
 
4
5
  module LonoParams
5
6
 
6
- class CLI < Thor
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
@@ -1,3 +1,3 @@
1
1
  module LonoParams
2
- VERSION = "0.1.1"
2
+ VERSION = "1.0.0"
3
3
  end
data/lib/lono-params.rb CHANGED
@@ -1,11 +1,12 @@
1
1
  $:.unshift(File.expand_path("../", __FILE__))
2
- require "lono_params/version"
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, 'lono_params/cli'
10
- autoload :Generator, 'lono_params/generator'
9
+ autoload :CLI, 'lono-params/command'
10
+ autoload :CLI, 'lono-params/cli'
11
+ autoload :Generator, 'lono-params/generator'
11
12
  end
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'lono_params/version'
4
+ require 'lono-params/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "lono-params"
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.1.1
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-05-26 00:00:00.000000000 Z
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/lono_params/cli.rb
145
- - lib/lono_params/cli/help.rb
146
- - lib/lono_params/generator.rb
147
- - lib/lono_params/version.rb
148
- - lono_params.gemspec
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.4.5
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