mixlib-cli 2.1.6 → 2.1.8

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
  SHA256:
3
- metadata.gz: 531632560841e239c00b0609e9d2b6eccb86673ba7d04e77e7e9fe1b1d7b504d
4
- data.tar.gz: 9c3ff5e025af2a7ac90d89f857dd0030a9caa2743b7c77acf8bfdca7344d9939
3
+ metadata.gz: d4d1591454c7940424cf9b65bc490f10e651dfd09a54effab6665bcdb08d5d60
4
+ data.tar.gz: 8225a500779099fa3f0b7103a396f428dadccbd24b393acd8b3a2523c4e6212a
5
5
  SHA512:
6
- metadata.gz: ad94b4be45c1fa69ded09083d136dcd28380f8c328cc78b48405eaaa7617214dd18071070968a52e0edb21a9484089db63cfdee661f46a4e7185284aad32fce2
7
- data.tar.gz: 1e173a79a75bbe5afba4157f6715f4e6a6b5f2ef9fa321e6358cc9981d47a602e9374aa99c0e3185da96c6835c80a39a8c3a4d9f82ad6f9b04ed653618a27368
6
+ metadata.gz: dc73cfd3404053a3fbf661a217a7198957677e3e229d143f95b1d69cf5da5f8f534835979a8b0979b07ad7f979e4245e34b1522d96b1c94a48197aab0a370c79
7
+ data.tar.gz: 9e3ace92718b1a365ca18ed1e12b0d4a945ae38b2c417b45188f0982626fbaa679d383ff5f7c82ab59f695d842fba669776bfe69a90ed36759e189f375d537b5
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require "optparse"
19
+ require "optparse" unless defined?(OptionParser)
20
20
  require_relative "cli/formatter"
21
21
  module Mixlib
22
22
 
@@ -140,7 +140,7 @@ module Mixlib
140
140
  # and converts it to a value suitable for the new option.
141
141
  # If not provided, the value provided to the deprecated option will be
142
142
  # assigned directly to the converted option.
143
- # keep<Boolean> :: Defaults to true, this ensure sthat `options[:deprecated_flag]` is
143
+ # keep<Boolean> :: Defaults to true, this ensures that `options[:deprecated_flag]` is
144
144
  # populated when the deprecated flag is used. If set to false,
145
145
  # only the value in `replacement` will be set. Results undefined
146
146
  # if no replacement is provided. You can use this to enforce the transition
@@ -194,7 +194,7 @@ module Mixlib
194
194
  # === Returns
195
195
  # @options<Hash>:: The current options hash.
196
196
  def options=(val)
197
- raise(ArgumentError, "Options must recieve a hash") unless val.is_a?(Hash)
197
+ raise(ArgumentError, "Options must receive a hash") unless val.is_a?(Hash)
198
198
 
199
199
  @options = val
200
200
  end
@@ -19,7 +19,7 @@ module Mixlib
19
19
  usage
20
20
  end
21
21
 
22
- # @param opt_arry [Array]
22
+ # @param opt_array [Array]
23
23
  #
24
24
  # @return [String] a friendly quoted list of items complete with "or"
25
25
  def self.friendly_opt_list(opt_array)
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  module CLI
3
- VERSION = "2.1.6".freeze
3
+ VERSION = "2.1.8".freeze
4
4
  end
5
5
  end
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.6
4
+ version: 2.1.8
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-12-22 00:00:00.000000000 Z
11
+ date: 2020-08-21 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