From f5271698898b6ceea71959fb1f9aacdcbe82c1c3 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:06:41 -0700 Subject: [PATCH 01/19] Remove .rspec file The helper already includes this same config Signed-off-by: Tim Smith --- .rspec | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 .rspec diff --git a/.rspec b/.rspec deleted file mode 100644 index 7438fbe..0000000 --- a/.rspec +++ /dev/null @@ -1,2 +0,0 @@ ---colour ---format documentation From 22d7cb297d2a0688a4c81960d8a143389551f94c Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:06:51 -0700 Subject: [PATCH 02/19] Add yard deps to the gemfile Signed-off-by: Tim Smith --- Gemfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Gemfile b/Gemfile index b4e2a20..ed7da20 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,9 @@ source "https://rubygems.org" gemspec + +group :docs do + gem "yard" + gem "redcarpet" + gem "github-markup" +end From b89de2079d884b254586a66f8dc5e6d89b57cdee Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:07:09 -0700 Subject: [PATCH 03/19] Require latest rake Signed-off-by: Tim Smith --- mixlib-cli.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mixlib-cli.gemspec b/mixlib-cli.gemspec index e3951de..6155358 100644 --- a/mixlib-cli.gemspec +++ b/mixlib-cli.gemspec @@ -16,10 +16,10 @@ Gem::Specification.new do |s| # Uncomment this to add a dependency #s.add_dependency "mixlib-log" - s.add_development_dependency "rake", "~> 11.0" - s.add_development_dependency "rspec", "~> 3.0" s.add_development_dependency "rdoc" s.add_development_dependency "chefstyle" + s.add_development_dependency "rspec", "~> 3.0" + s.add_development_dependency "rake", "~> 12.0" s.require_path = "lib" s.files = %w{LICENSE README.md Gemfile Rakefile NOTICE} + Dir.glob("*.gemspec") + From d6d17615456bf8deff28355534826be136f857fe Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:07:32 -0700 Subject: [PATCH 04/19] Expand config in rspec helper Signed-off-by: Tim Smith --- spec/spec_helper.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 13432c6..f83776e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,6 +8,15 @@ class TestCLI end RSpec.configure do |config| + # Use color in STDOUT + config.color = true + + # Use color not only in STDOUT but also in pagers and files + config.tty = true + + # run the examples in random order + config.order = :rand + config.filter_run focus: true config.run_all_when_everything_filtered = true config.warnings = true From 85ae3a7ad23a7d452cafbd36afbc581906cd8f83 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:07:41 -0700 Subject: [PATCH 05/19] Update gitignore Signed-off-by: Tim Smith --- .gitignore | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 770f055..a6bbd74 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,25 @@ -*.sw? +_yardoc +.bundle +.config .DS_Store -coverage -rdoc -pkg +.idea/ .rake_tasks~ -.bundle +.rspec +.ruby-version +.yardoc +.yardopts +*.gem +*.rbc +*.sw? +bin/ +coverage +doc/ Gemfile.lock +InstalledFiles +lib/bundler/man +pkg +spec/reports +test/tmp +test/version_tmp +tmp vendor -.idea/ -.ruby-version From b070806ffef16a1dcba70c693848669503544e8a Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:08:43 -0700 Subject: [PATCH 06/19] Add yard to rakefile and sync with others Make the default task run style/specs Remove require on rubygems Remove rdoc task Suggest bundle install for chefstyle Signed-off-by: Tim Smith --- Rakefile | 25 +++++++++++-------------- mixlib-cli.gemspec | 1 - 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/Rakefile b/Rakefile index 549ba72..8978010 100644 --- a/Rakefile +++ b/Rakefile @@ -1,26 +1,16 @@ -require "bundler" -require "rubygems" -require "rubygems/package_task" -require "rdoc/task" +require "bundler/gem_tasks" require "rspec/core/rake_task" require "mixlib/cli/version" -Bundler::GemHelper.install_tasks +task default: [:style, :unit] -task default: :spec +Bundler::GemHelper.install_tasks desc "Run specs" RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = "spec/**/*_spec.rb" end -RDoc::Task.new do |rdoc| - rdoc.rdoc_dir = "rdoc" - rdoc.title = "mixlib-cli #{Mixlib::CLI::VERSION}" - rdoc.rdoc_files.include("README*") - rdoc.rdoc_files.include("lib/**/*.rb") -end - begin require "chefstyle" require "rubocop/rake_task" @@ -28,5 +18,12 @@ begin task.options += ["--display-cop-names", "--no-color"] end rescue LoadError - puts "chefstyle/rubocop is not available. gem install chefstyle to do style checking." + puts "chefstyle/rubocop is not available. bundle install first to make sure all dependencies are installed." +end + +begin + require "yard" + YARD::Rake::YardocTask.new(:doc) +rescue LoadError + puts "yard is not available. bundle install first to make sure all dependencies are installed." end diff --git a/mixlib-cli.gemspec b/mixlib-cli.gemspec index 6155358..c91072f 100644 --- a/mixlib-cli.gemspec +++ b/mixlib-cli.gemspec @@ -16,7 +16,6 @@ Gem::Specification.new do |s| # Uncomment this to add a dependency #s.add_dependency "mixlib-log" - s.add_development_dependency "rdoc" s.add_development_dependency "chefstyle" s.add_development_dependency "rspec", "~> 3.0" s.add_development_dependency "rake", "~> 12.0" From c62cb42e386fef95bddd78c686c539a2497650d4 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:09:01 -0700 Subject: [PATCH 07/19] Expand Ruby version testing and use new rake setup Signed-off-by: Tim Smith --- .travis.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index ee342c0..19aa1f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,28 @@ +sudo: false language: ruby cache: bundler -sudo: false +matrix: + include: + - 2.2.10 + - 2.3.7 + - 2.4.4 + - 2.5.1 + - rvm: ruby-head + allow_failures: + - rvm: ruby-head branches: only: - - master + - master + +bundler_args: --without docs before_install: + - gem install bundler - bundle --version + - gem update --system - gem --version -rvm: - - 2.2.10 - - 2.3.7 - - 2.4.4 - - 2.5.1 script: - - bundle exec chefstyle - - bundle exec rake spec + - bundle exec rake From 059c2e032d64125f9d0e9723233aee203ebc720a Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:09:07 -0700 Subject: [PATCH 08/19] Update copyrights Signed-off-by: Tim Smith --- NOTICE | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NOTICE b/NOTICE index 33474eb..63c2de6 100644 --- a/NOTICE +++ b/NOTICE @@ -4,7 +4,7 @@ Mixin::CLI NOTICE Developed at Chef (http://www.chef.io). - * Copyright 2009-2016, Chef Software, Inc. + * Copyright 2009-2018, Chef Software, Inc. Mixin::CLI incorporates code from Chef. The Chef notice file follows: diff --git a/README.md b/README.md index f0cb56f..4a891b3 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ cli.cli_arguments # [ 'file1', 'file2', 'file3' ] ## LICENSE: -- Copyright:: Copyright (c) 2008-2016 Chef Software, Inc. +- Copyright:: Copyright (c) 2008-2018 Chef Software, Inc. - License:: Apache License, Version 2.0 ```text From 3d4edcf6b05927b95e31e6859178193fdcbc10b0 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:09:21 -0700 Subject: [PATCH 09/19] Remove empty cucumber tests Signed-off-by: Tim Smith --- features/mixlib_cli.feature | 9 --------- features/step_definitions/mixlib_cli_steps.rb | 0 features/support/env.rb | 9 --------- 3 files changed, 18 deletions(-) delete mode 100644 features/mixlib_cli.feature delete mode 100644 features/step_definitions/mixlib_cli_steps.rb delete mode 100644 features/support/env.rb diff --git a/features/mixlib_cli.feature b/features/mixlib_cli.feature deleted file mode 100644 index b908b60..0000000 --- a/features/mixlib_cli.feature +++ /dev/null @@ -1,9 +0,0 @@ -Feature: something something - In order to something something - A user something something - something something something - - Scenario: something something - Given inspiration - When I create a sweet new gem - Then everyone should see how awesome I am diff --git a/features/step_definitions/mixlib_cli_steps.rb b/features/step_definitions/mixlib_cli_steps.rb deleted file mode 100644 index e69de29..0000000 diff --git a/features/support/env.rb b/features/support/env.rb deleted file mode 100644 index 3855024..0000000 --- a/features/support/env.rb +++ /dev/null @@ -1,9 +0,0 @@ -$LOAD_PATH.unshift(File.dirname(__FILE__) + "/../../lib") -require "mixlib_cli" - -require "spec/expectations" - -World do |world| - - world -end From 09c0fcdddf9a19184b5c3851ea6674e2ed8c114c Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:11:20 -0700 Subject: [PATCH 10/19] Add contributing docs link Signed-off-by: Tim Smith --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4a891b3..7dd7477 100644 --- a/README.md +++ b/README.md @@ -68,10 +68,10 @@ MyConfig[:log_level] # :debug Available arguments to 'option': - `:short`: The short option, just like from optparse. Example: "-l LEVEL" -- `:long`: The long option, just like from optparse. Example: "--level LEVEL" +- `:long`: The long option, just like from optparse. Example: "--level LEVEL" - `:description`: The description for this item, just like from optparse. - `:default`: A default value for this option -- `:required`: Prints a message informing the user of the missing requirement, and exits. Default is false. +- `:required`: Prints a message informing the user of the missing requirement, and exits. Default is false. - `:on`: Set to :tail to appear at the end, or `:head`: to appear at the top. - `:boolean:`: If this option takes no arguments, set this to true. - `:show_options`: If you want the option list printed when this option is called, set this to true. @@ -88,7 +88,11 @@ cli.parse_options cli.cli_arguments # [ 'file1', 'file2', 'file3' ] ``` -## LICENSE: +## Contributing + +For information on contributing to this gem please see our [Contributing Documentation](https://github.com/chef/chef/blob/master/CONTRIBUTING.md) + +## License & Copyright - Copyright:: Copyright (c) 2008-2018 Chef Software, Inc. - License:: Apache License, Version 2.0 From 791a8d70696ea467ae53c075fe91c5bc34a9a3fe Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:12:33 -0700 Subject: [PATCH 11/19] We don't need the version anymore in the Rakefile Signed-off-by: Tim Smith --- Rakefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Rakefile b/Rakefile index 8978010..9934023 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,5 @@ require "bundler/gem_tasks" require "rspec/core/rake_task" -require "mixlib/cli/version" task default: [:style, :unit] From cae287fb807c6940e7aea8d44450c7b8eb91ec97 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:17:36 -0700 Subject: [PATCH 12/19] Fix travis ruby version config Signed-off-by: Tim Smith --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 19aa1f4..0618831 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,10 @@ cache: bundler matrix: include: - - 2.2.10 - - 2.3.7 - - 2.4.4 - - 2.5.1 + - rvm: 2.2.10 + - rvm: 2.3.7 + - rvm: 2.4.4 + - rvm: 2.5.1 - rvm: ruby-head allow_failures: - rvm: ruby-head From 29a1e5178300ab9a6a77442a2e30e70d071ec3ec Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:20:58 -0700 Subject: [PATCH 13/19] Remove defaults from the gemspec has_rdoc is deprecated and platform defaults to ruby Signed-off-by: Tim Smith --- mixlib-cli.gemspec | 2 -- 1 file changed, 2 deletions(-) diff --git a/mixlib-cli.gemspec b/mixlib-cli.gemspec index c91072f..1dbd0eb 100644 --- a/mixlib-cli.gemspec +++ b/mixlib-cli.gemspec @@ -4,8 +4,6 @@ require "mixlib/cli/version" Gem::Specification.new do |s| s.name = "mixlib-cli" s.version = Mixlib::CLI::VERSION - s.platform = Gem::Platform::RUBY - s.has_rdoc = true s.extra_rdoc_files = ["README.md", "LICENSE", "NOTICE"] s.summary = "A simple mixin for CLI interfaces, including option parsing" s.description = s.summary From 1e6b6e7870c3a61704f2ba31cd88a58b1bc128bf Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 24 Jul 2018 11:23:46 -0700 Subject: [PATCH 14/19] Run specs properly Signed-off-by: Tim Smith --- Rakefile | 2 +- spec/spec_helper.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 9934023..ab6080b 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,7 @@ require "bundler/gem_tasks" require "rspec/core/rake_task" -task default: [:style, :unit] +task default: [:style, :spec] Bundler::GemHelper.install_tasks diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f83776e..6f3d7e2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,6 +8,9 @@ class TestCLI end RSpec.configure do |config| + # Use documentation format + config.formatter = "doc" + # Use color in STDOUT config.color = true From 87681b1af636ea79167d02afaf5931eb8c85bec7 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 30 Jul 2018 08:56:30 -0700 Subject: [PATCH 15/19] Remove bundler install hack Signed-off-by: Tim Smith --- .travis.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0618831..72a3f67 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,13 +16,6 @@ branches: only: - master -bundler_args: --without docs +bundler_args: --without docs development -before_install: - - gem install bundler - - bundle --version - - gem update --system - - gem --version - -script: - - bundle exec rake +script: bundle exec rake From cfcb97655ac7fa32e4c7a32a1c5f8ca0c6726629 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 30 Jul 2018 09:03:36 -0700 Subject: [PATCH 16/19] Move dev deps to the Gemfile and add console task Signed-off-by: Tim Smith --- Gemfile | 19 +++++++++++++++++++ README.md | 10 +++++++++- Rakefile | 8 ++++++++ mixlib-cli.gemspec | 6 ------ 4 files changed, 36 insertions(+), 7 deletions(-) diff --git a/Gemfile b/Gemfile index ed7da20..61a122d 100644 --- a/Gemfile +++ b/Gemfile @@ -7,3 +7,22 @@ group :docs do gem "redcarpet" gem "github-markup" end + +group :test do + gem "chefstyle", git: "https://github.com/chef/chefstyle.git", branch: "master" + gem "rspec", "~> 3.0" + gem "rake" +end + +group :development do + gem "pry" + gem "pry-byebug" + gem "pry-stack_explorer" + gem "rb-readline" +end + +instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"] + +# If you want to load debugging tools into the bundle exec sandbox, +# add these additional dependencies into Gemfile.local +eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local") diff --git a/README.md b/README.md index 7dd7477..1309e63 100644 --- a/README.md +++ b/README.md @@ -88,9 +88,17 @@ cli.parse_options cli.cli_arguments # [ 'file1', 'file2', 'file3' ] ``` +## Documentation + +All documentation is written using YARD. You can generate a by running: + +``` +rake yard +``` + ## Contributing -For information on contributing to this gem please see our [Contributing Documentation](https://github.com/chef/chef/blob/master/CONTRIBUTING.md) +For information on contributing to this project please see our [Contributing Documentation](https://github.com/chef/chef/blob/master/CONTRIBUTING.md) ## License & Copyright diff --git a/Rakefile b/Rakefile index ab6080b..3508f98 100644 --- a/Rakefile +++ b/Rakefile @@ -26,3 +26,11 @@ begin rescue LoadError puts "yard is not available. bundle install first to make sure all dependencies are installed." end + +task :console do + require "irb" + require "irb/completion" + require "mixlib/cli" + ARGV.clear + IRB.start +end diff --git a/mixlib-cli.gemspec b/mixlib-cli.gemspec index 1dbd0eb..da25754 100644 --- a/mixlib-cli.gemspec +++ b/mixlib-cli.gemspec @@ -12,12 +12,6 @@ Gem::Specification.new do |s| s.homepage = "https://www.chef.io" s.license = "Apache-2.0" - # Uncomment this to add a dependency - #s.add_dependency "mixlib-log" - s.add_development_dependency "chefstyle" - s.add_development_dependency "rspec", "~> 3.0" - s.add_development_dependency "rake", "~> 12.0" - s.require_path = "lib" s.files = %w{LICENSE README.md Gemfile Rakefile NOTICE} + Dir.glob("*.gemspec") + Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } From d1598c6ebfa5679dd2c87f14f8046e8b4c51bc33 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 30 Jul 2018 09:07:15 -0700 Subject: [PATCH 17/19] Sync expeditor config Standard tags, owners to client maintainers and some comments Signed-off-by: Tim Smith --- .expeditor/config.yml | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/.expeditor/config.yml b/.expeditor/config.yml index 0806604..a1e8ede 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -1,34 +1,42 @@ -# For more information about Expeditor, visit http://expeditor.es.chef.io +# Documentation available at https://expeditor.chef.io/docs/getting-started/ --- +# Slack channel in Chef Software slack to send notifications about build failures, etc slack: - notify_channel: releng-notify + notify_channel: chef-notify + +# This publish is triggered by the `built_in:publish_rubygems` artifact_action. +rubygems: + - mixlib-cli github: - version_tag_format: "v{{version}}" + # This deletes the GitHub PR branch after successfully merged into the release branch delete_branch_on_merge: true + # The tag format to use (e.g. v1.0.0) + version_tag_format: "v{{version}}" + # The Github Team primarily responsible for handling incoming Pull Requests. + maintainer_group: chef/client-maintainers + # allow bumping the minor release via label minor_bump_labels: - - "Version: Bump Minor" + - "Expeditor: Bump Minor Version" -rubygems: - - mixlib-cli +# These actions are taken, in order they are specified, anytime a Pull Request is merged. merge_actions: - built_in:bump_version: ignore_labels: - - "Version: Skip Bump" + - "Expeditor: Skip Version Bump" - "Expeditor: Skip All" - bash:.expeditor/update_version.sh: - only_if: - - built_in:bump_version + only_if: built_in:bump_version - built_in:update_changelog: ignore_labels: - - "Changelog: Skip Update" + - "Expeditor: Exclude From Changelog" - "Expeditor: Skip All" - built_in:build_gem: - only_if: - - built_in:bump_version + only_if: built_in:bump_version promote: action: - - built_in:publish_rubygems - built_in:rollover_changelog + - built_in:publish_rubygems + From fed3c958677504b01f3c95a108b7ab36d6fa8005 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 30 Jul 2018 09:08:13 -0700 Subject: [PATCH 18/19] Ignore a few more things in git Signed-off-by: Tim Smith --- .gitignore | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a6bbd74..803f56c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,8 @@ _yardoc .bundle .config .DS_Store -.idea/ +.idea +.rvmrc .rake_tasks~ .rspec .ruby-version @@ -13,7 +14,8 @@ _yardoc *.sw? bin/ coverage -doc/ +doc +Gemfile.local Gemfile.lock InstalledFiles lib/bundler/man From 8f2697818cb5be0519244d2595c201080c4add6f Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 30 Jul 2018 09:08:27 -0700 Subject: [PATCH 19/19] Chefstyle fixes Signed-off-by: Tim Smith --- lib/mixlib/cli.rb | 10 +++++----- lib/mixlib/cli/version.rb | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/mixlib/cli.rb b/lib/mixlib/cli.rb index e097649..0516926 100644 --- a/lib/mixlib/cli.rb +++ b/lib/mixlib/cli.rb @@ -210,7 +210,7 @@ def initialize(*args) config_opts[:exit] ||= nil config_opts[:in] ||= nil - if config_opts.has_key?(:default) + if config_opts.key?(:default) defaults_container[config_key] = config_opts[:default] end end @@ -231,7 +231,7 @@ def parse_options(argv = ARGV) # Deal with any required values options.each do |opt_key, opt_value| - if opt_value[:required] && !config.has_key?(opt_key) + if opt_value[:required] && !config.key?(opt_key) reqarg = opt_value[:short] || opt_value[:long] puts "You must supply #{reqarg}!" puts @opt_parser @@ -308,9 +308,9 @@ def opt_parser def build_option_arguments(opt_setting) arguments = Array.new - arguments << opt_setting[:short] if opt_setting.has_key?(:short) - arguments << opt_setting[:long] if opt_setting.has_key?(:long) - if opt_setting.has_key?(:description) + arguments << opt_setting[:short] if opt_setting.key?(:short) + arguments << opt_setting[:long] if opt_setting.key?(:long) + if opt_setting.key?(:description) description = opt_setting[:description].dup description << " (required)" if opt_setting[:required] description << " (included in ['#{opt_setting[:in].join("', '")}'])" if opt_setting[:in] diff --git a/lib/mixlib/cli/version.rb b/lib/mixlib/cli/version.rb index 174bf41..1a662de 100644 --- a/lib/mixlib/cli/version.rb +++ b/lib/mixlib/cli/version.rb @@ -1,5 +1,5 @@ module Mixlib module CLI - VERSION = "1.7.2" + VERSION = "1.7.2".freeze end end