everyday-cli-utils 1.5.1 → 1.5.2

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: 4aa5520acf40861ba54a1809b4b2a901ef3edea0
4
- data.tar.gz: 1d081557e458fece7209ae776946983aa948d38b
3
+ metadata.gz: 586fc1d3c19d2169300d7b36c6d595f9380e0479
4
+ data.tar.gz: 785d25b280556ea822a7cdd789fc4032f867ca42
5
5
  SHA512:
6
- metadata.gz: 729628d88bdb65637282f41fbc8594fdb856d37a6dceb50377fa81c1fc7e7da257ba1192f268292aed011fd5200795bad3e7a22a6487aae2c58985f6ccd20f02
7
- data.tar.gz: 71efab627e22ce038a24ac75ad88e33ac5a776cf4675b173acaab00d140dd1093323c9181e3c8283c49c2494af1664d517a4344f1d2d1beff88668d2a3889c5e
6
+ metadata.gz: c98b17a3477a80fec2e86837c4b08e5213e5c2c3ea4056cdd9403f0ce91ea9c0a6e278e3598bf08234e9244721d85ffdc58092d3d67eb681738acd8ebb485465
7
+ data.tar.gz: 2dacccdba641c43fdd1e0b2f9b9992848f611cc90a6a8306f6ac2807a2128e9f290a6d425be68b561f4ce8904f949ec67354dce4c43c05f4f9835f2d9acc8772
@@ -83,7 +83,7 @@ module EverydayCliUtils
83
83
  settings[:append] ? [] : nil
84
84
  },
85
85
  ->(current_value, new_value, settings) {
86
- settings[:append] ? (current_value + new_value) : (new_value.nil? ? current_value : new_value)
86
+ settings[:append] ? (current_value + new_value) : ((new_value.nil? || new_value == '') ? current_value : new_value)
87
87
  },
88
88
  ->(names, settings) {
89
89
  names[0] << ' PARAM' unless names.any? { |v| v.include?(' ') }
@@ -1,3 +1,3 @@
1
1
  module EverydayCliUtils
2
- VERSION = '1.5.1'
2
+ VERSION = '1.5.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: everyday-cli-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Henderson