Skip to content

Commit

Permalink
chore: continue support for ruby < 3.0
Browse files Browse the repository at this point in the history
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
  • Loading branch information
ahasunos committed Sep 19, 2024
1 parent 664c2c1 commit 307cd9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chef-zero.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ Gem::Specification.new do |s|
# Note: 7.1.0 does not defaults its cache_format_version to 7.1 but 6.1 instead which gives deprecation warnings
# Remove the version constraint when we can upgrade to 7.1.1 post stable release of Activesupport 7.1
# Similar issue with 7.0 existed: https://github.com/rails/rails/pull/45293
s.add_dependency "activesupport", "~> 7.0", "< 7.1"
if RUBY_VERSION >= '3.0'
s.add_dependency "activesupport", "~> 7.0", "< 7.1"
else
s.add_dependency "activesupport", "~> 6.1" # Pin for Ruby 2.6 support
end
s.add_dependency "mixlib-log", ">= 2.0", "< 4.0"
s.add_dependency "hashie", ">= 2.0", "< 5.0"
s.add_dependency "uuidtools", "~> 2.1"
Expand Down

0 comments on commit 307cd9c

Please sign in to comment.