bogo-cli 0.1.16 → 0.1.18

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
  SHA1:
3
- metadata.gz: c670e873f40bafcaba50ba35187b1762bfe3dd56
4
- data.tar.gz: c77af64b71894e00c8ed25ea54a6a5cf55a456af
3
+ metadata.gz: a8b142eb9d7f9f1c5e83a2ea527c7d3531f225e2
4
+ data.tar.gz: 3f276dedb32b03bc8648eb5c5e96f5efe52189bb
5
5
  SHA512:
6
- metadata.gz: 41c7b2df9c2775b2c90268eead7c32756f92b85b8abd98afc3a452713cf82a8ddaae4249ccce7d4fb7a775383472f7ec6c4d9398b3a7c09b7defb38320c13f08
7
- data.tar.gz: d592dea8aeaf00fc55a7a07bda5a9568d9e15d8ae04baf0b4b3df4bed4a9f731c2e87ee375ec29e2237a3fb065f89c76caaf111af19482dd1030a51fdac1ed86
6
+ metadata.gz: fc5177c59dcbe6c5e3ad85f51798130bec38c218cf6b3a48296b4fb71a0466ad3c7d74668c211cf8fc4ebc0f923a0c3b41f06af44afae116fd9f80ac10fd6dd0
7
+ data.tar.gz: 62a0c714d2eca671c20fcd7fd80d6d3a340dcf6c6980b84c957916fc0984e698ec671dd1d9f4ef5ce3ed8d18db84c05312eccaa03e8c21745b39227a7c0e69c2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.1.18
2
+ * Remove nil value items from namespaced options hash prior to merge
3
+
1
4
  ## v0.1.16
2
5
  * Output exception message when reporting error to get full content
3
6
  * Trap INT to allow nicer user forced exits
@@ -50,9 +50,20 @@ module Bogo
50
50
 
51
51
  # Command specific options
52
52
  #
53
- # @return [Hash]
53
+ # @return [Smash]
54
54
  def opts
55
- options.fetch(Bogo::Utility.snake(self.class.name.split('::').last), {})
55
+ Smash[
56
+ options.fetch(
57
+ Bogo::Utility.snake(
58
+ self.class.name.split('::').last
59
+ ),
60
+ Hash.new
61
+ ).map{|k,v|
62
+ unless(v.nil?)
63
+ [k,v]
64
+ end
65
+ }.compact
66
+ ]
56
67
  end
57
68
 
58
69
  # Load configuration file and merge opts
@@ -1,6 +1,6 @@
1
1
  module Bogo
2
2
  module Cli
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.16')
4
+ VERSION = Gem::Version.new('0.1.18')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bogo-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-14 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo