From 7f1a1ae33702979ff717e40e17278d17e2fa84ae Mon Sep 17 00:00:00 2001 From: nikhil2611 Date: Tue, 23 Jul 2024 17:34:37 +0530 Subject: [PATCH] updated ruby version condition Signed-off-by: nikhil2611 --- chef-apply.gemspec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chef-apply.gemspec b/chef-apply.gemspec index 9cadded31..57ac6378b 100644 --- a/chef-apply.gemspec +++ b/chef-apply.gemspec @@ -49,11 +49,7 @@ Gem::Specification.new do |spec| spec.add_dependency "train-winrm" # winrm transports were pulled out into this plugin spec.add_dependency "pastel" # A color library spec.add_dependency "tty-spinner" # Pretty output for status updates in the CLI - if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1.0") - spec.add_dependency "chef", "~> 18.0" - else - spec.add_dependency "chef", ">= 16.0" - end + spec.add_dependency "chef", "~> 18.0" spec.add_dependency "chef-cli", ">= 2.0.10 " # Policyfile spec.add_dependency "chef-telemetry", ">= 1.0.2" spec.add_dependency "license-acceptance", ">= 1.0.11", "< 3"