cli_helper 0.1.9.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1359febf0485d5ce8d1b73f6d6b39b264067e0d860bc07ad183c279385450ed
4
- data.tar.gz: 58a2e0fc02883f01a9dc89f0cbd4eeb9aa84c75d8b1a9d2fab9104799e7aa20c
3
+ metadata.gz: 354802b44915c4b6c1ec801600d7b52092cb37a803ef8732e9000e717495be00
4
+ data.tar.gz: c88c7edf1ac82053222444eac814c5d4e640afbb9d36a8a97c9eefaf3a1f3333
5
5
  SHA512:
6
- metadata.gz: df4e8f09e3a1e0a54078bae22a4877369126b5774fe471e1d4171a44a400bcee55e14aab58590b16da597a59a3a46935bbd2b0e2cba23e46b247108a2749bd42
7
- data.tar.gz: 619e7bac2f07d7dc11d4b1a6a2a1933ee7867b2e0237968ddffbdc476dc844da4d726a5005202a7f2ceed1a22ae3a3a8db3c3ffce56bc243e78fc999a858d142
6
+ metadata.gz: c63952b7391a45c4cc079ed700e8acd3bb3dae2d7535316c6fbe1cf9e4c44bf52c8a4c3d2233e126e7b839c22d4e92cf224f750839626474b00e7562669d3413
7
+ data.tar.gz: 527a6889fc9cb9b57f52f20adcf674b974da1afaea3e7afbefb129ad21b4154583b02131f1bc7a5a5493774f3564da3e74905c10c035712a1e144e3d4a13ba82
data/cli_helper.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "cli_helper"
7
- spec.version = '0.1.9.1'
7
+ spec.version = '0.2.0'
8
8
  spec.authors = ["Dewayne VanHoozer"]
9
9
  spec.email = ["dvanhoozer@gmail.com"]
10
10
 
data/lib/cli_helper.rb CHANGED
@@ -195,12 +195,13 @@ module CliHelper
195
195
  # parameters provided via a block. Create '?'
196
196
  # for all boolean parameters that have a '--name' flag form.
197
197
  # Returns a Slop::Options object
198
- def cli_helper( my_banner='',
198
+ def cli_helper( my_banner='',
199
199
  slop_options_config={}
200
200
  )
201
- default_config = { suppress_errors: configatron.suppress_errors }
201
+ default_config = { suppress_errors: configatron.suppress_errors }
202
+ options_hash = default_config.merge(slop_options_config)
202
203
 
203
- param = Slop::Options.new( default_config.merge(slop_options_config) )
204
+ param = Slop::Options.new( **options_hash )
204
205
 
205
206
  if my_banner.empty?
206
207
  param.banner = "Usage: #{my_name} [options] ..."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dewayne VanHoozer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-10 00:00:00.000000000 Z
11
+ date: 2021-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configatron
@@ -185,7 +185,7 @@ licenses:
185
185
  - You want it? It's yours.
186
186
  metadata:
187
187
  allowed_push_host: https://rubygems.org
188
- post_install_message:
188
+ post_install_message:
189
189
  rdoc_options: []
190
190
  require_paths:
191
191
  - lib
@@ -200,8 +200,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  requirements: []
203
- rubygems_version: 3.1.3
204
- signing_key:
203
+ rubygems_version: 3.2.7
204
+ signing_key:
205
205
  specification_version: 4
206
206
  summary: An encapsulation of an integration of slop, nenv, inifile and configatron.
207
207
  test_files: []