Skip to content

Commit

Permalink
added ruby 3.3 upgrade and chef upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 committed Jul 15, 2024
1 parent 4d34215 commit 5175ad0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
ruby: [2.7, 3.0, 3.1]
ruby: [3.3]
steps:
- run: |
if [ "$RUNNER_OS" == "Linux" ]; then
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ group :development do
gem "webmock", ">= 1.11"
gem "http", ">= 0.9.8"
gem "chefstyle"
gem "graphviz", "~> 1.2"
end

instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"]
Expand Down
8 changes: 4 additions & 4 deletions berkshelf.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.name = "berkshelf"
s.require_paths = ["lib"]
s.version = Berkshelf::VERSION
s.required_ruby_version = ">= 2.7.0"
s.required_ruby_version = ">= 3.3"
s.required_rubygems_version = ">= 2.0.0"
s.metadata = {
"bug_tracker_uri" => "https://github.com/chef/berkshelf/issues",
Expand All @@ -42,9 +42,9 @@ Gem::Specification.new do |s|
s.add_dependency "octokit", "~> 4.0"
s.add_dependency "mixlib-archive", ">= 1.1.4", "< 2.0" # needed for ruby 3.0 / Dir.chdir removal
s.add_dependency "concurrent-ruby", "~> 1.0"
if RUBY_VERSION.match?(/3.0/)
s.add_dependency "chef", "~> 17.0" # needed for --skip-syntax-check
elsif
if RUBY_VERSION.match?(/3.3/)
s.add_dependency "chef", "~> 18.0" # needed for --skip-syntax-check
else
s.add_dependency "chef", ">= 15.7.32"
end
s.add_dependency "chef-config"
Expand Down

0 comments on commit 5175ad0

Please sign in to comment.