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 +4 -4
- data/lib/everyday-cli-utils/option.rb +1 -1
- data/lib/everyday-cli-utils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 586fc1d3c19d2169300d7b36c6d595f9380e0479
|
4
|
+
data.tar.gz: 785d25b280556ea822a7cdd789fc4032f867ca42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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?(' ') }
|