bogo-cli 0.1.22 → 0.1.24

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: acd52ffa30759ad9440c86ea5b919da900aab8ee
4
- data.tar.gz: 66c23dd1d5c282dbf55fec2e51a9256926bae158
3
+ metadata.gz: 613e4cf3d1e1517fc29f3bc1810d440a854c7836
4
+ data.tar.gz: 6d1824a5e2fafac57c6a26b6946b63987b35eeca
5
5
  SHA512:
6
- metadata.gz: 5fa6e498163fed36510646ce599c1be0b948d2339a972aff985986727f7d50b64358808ec20426c57f41e7137473a33373e8311827aa907ccc61b21a62416ef8
7
- data.tar.gz: a08e2273c046137d1319a50e0de07332cdfe0606e6e3db29584a3028dc568a1852fe2f4b06c6ae82dcd3e6f3187fb020b7d83247f12acc16354deb151e077904
6
+ metadata.gz: 9558b7ef49c1756bf564247176f274361dd2d0be07be1406fbb431d12f2b7ba3b4f5ac909ab6ab8f48bff39d09538f3bc218a0c98961f2ede3002f6e7a0798db
7
+ data.tar.gz: 28a7958b8184a601f8302e53b79fadbf50c728bc0bb3ab280c49509522fdec72854da13e2797fb1f2cd3da3718599a37baf8201471a246467a99463ffe027f79
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.1.24
2
+ * [fix] Remove configuration items with `nil` values
3
+
1
4
  ## v0.1.22
2
5
  * Add `Bogo::Cli#config_class` to specify custom `Bogo::Config`
3
6
  * Always load provided args through config
@@ -21,7 +21,10 @@ module Bogo
21
21
  # @return [self]
22
22
  def initialize(cli_opts, args)
23
23
  @options = cli_opts.to_hash.to_smash(:snake)
24
- @options.delete_if{|k,v| v.nil?}
24
+ [@options, *@options.values].compact.each do |hsh|
25
+ next unless hsh.is_a?(Hash)
26
+ hsh.delete_if{|k,v| v.nil?}
27
+ end
25
28
  @arguments = args
26
29
  ui_args = Smash.new(
27
30
  :app_name => options.fetch(:app_name,
@@ -1,6 +1,6 @@
1
1
  module Bogo
2
2
  module Cli
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.22')
4
+ VERSION = Gem::Version.new('0.1.24')
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.22
4
+ version: 0.1.24
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-06-08 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo
@@ -106,3 +106,4 @@ signing_key:
106
106
  specification_version: 4
107
107
  summary: CLI Helper libraries
108
108
  test_files: []
109
+ has_rdoc: