From 4cda33b897a9267813805b01008de5a702d2e37b Mon Sep 17 00:00:00 2001 From: "Balasankar \"Balu\" C" Date: Fri, 8 Oct 2021 19:31:42 +0530 Subject: [PATCH] Allow ohai versions > 17 to be used The restricton `< 17` was originally added by 2777c5b65 in https://github.com/chef/omnibus/pull/1013 because `omnibus-toolchain` was still shipping Ruby 2.6 at that time, and Ohai 17 required Ruby 17. However, starting with https://github.com/chef/omnibus-toolchain/pull/153, `omnibus-toolchain` is on Ruby 2.7+, and hence this restriction can be removed. To be on the safe side, we are bumping the upper limit to 18 to avoid any surprises when next major version of Ohai comes out. Signed-off-by: Balasankar "Balu" C --- omnibus.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnibus.gemspec b/omnibus.gemspec index b5cb749b7..4820570d2 100644 --- a/omnibus.gemspec +++ b/omnibus.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |gem| gem.add_dependency "chef-cleanroom", "~> 1.0" gem.add_dependency "ffi-yajl", "~> 2.2" gem.add_dependency "mixlib-shellout", ">= 2.0", "< 4.0" - gem.add_dependency "ohai", ">= 15", "< 17" + gem.add_dependency "ohai", ">= 15", "< 18" gem.add_dependency "ruby-progressbar", "~> 1.7" gem.add_dependency "thor", ">= 0.18", "< 2.0" gem.add_dependency "license_scout", "~> 1.0"