Skip to content

Commit

Permalink
updated chef dependency for ruby 3.1
Browse files Browse the repository at this point in the history
Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 committed Oct 4, 2023
1 parent 866ca52 commit 2fffdec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chef-cli.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ Gem::Specification.new do |gem|
gem.add_dependency "mixlib-shellout", ">= 2.0", "< 4.0"
gem.add_dependency "ffi-yajl", ">= 1.0", "< 3.0"
gem.add_dependency "minitar", "~> 0.6"
gem.add_dependency "chef", ">= 16.0"
if RUBY_VERSION.match?(/3.1/)
gem.add_dependency "chef", "~> 18.0"
elsif
gem.add_dependency "chef", ">= 16.0" # Needed to load cookbooks
end
gem.add_dependency "solve", "< 5.0", "> 2.0"
gem.add_dependency "addressable", ">= 2.3.5", "< 2.9"
gem.add_dependency "cookbook-omnifetch", "~> 0.5"
Expand Down

0 comments on commit 2fffdec

Please sign in to comment.