mixlib-cli 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mixlib/cli.rb +6 -1
- data/lib/mixlib/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b8683633510a1051757c76330c88e8e4cab1cd60865201cd28a6279594c1864
|
4
|
+
data.tar.gz: df37fea633f62f50794ab29e7ae906af86b64024ee028443ae02af63955aa03b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe7536b6882b4c7886a7e00a2d723f201ed51f3bfedc3ff010a9af605da5d3885fc503f807ab813d5bacbfb41a7c084fe6c476ba7428721f268547f0401b6890
|
7
|
+
data.tar.gz: 5433999e3552ee56aee2babbe847df8a30331759a7afe93632bf84d7c77968463907735f3fca768f407ce65372436e4c8cc865560355f169707f861b01a2ca3e
|
data/lib/mixlib/cli.rb
CHANGED
@@ -392,11 +392,16 @@ module Mixlib
|
|
392
392
|
merge_in_values = {}
|
393
393
|
config.each_key do |opt_key|
|
394
394
|
opt_cfg = options[opt_key]
|
395
|
+
|
395
396
|
# Deprecated entries do not have defaults so no matter what
|
396
397
|
# separate_default_options are set, if we see a 'config'
|
397
398
|
# entry that contains a deprecated indicator, then the option was
|
398
399
|
# explicitly provided by the caller.
|
399
|
-
|
400
|
+
#
|
401
|
+
# opt_cfg may not exist if an inheriting application
|
402
|
+
# has directly inserted values info config.
|
403
|
+
next unless opt_cfg && opt_cfg[:deprecated]
|
404
|
+
|
400
405
|
replacement_key = opt_cfg[:replacement]
|
401
406
|
if replacement_key
|
402
407
|
# This is the value passed into the deprecated flag. We'll use
|
data/lib/mixlib/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixlib-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple mixin for CLI interfaces, including option parsing
|
14
14
|
email: info@chef.io
|