Skip to content

Commit

Permalink
Add support for Ruby 3.2 (#203)
Browse files Browse the repository at this point in the history
Currently `hatchet ci:setup` fails on Ruby 3.2, with:

```
bundle exec hatchet ci:setup
/home/runner/work/heroku-buildpack-python/heroku-buildpack-python/vendor/bundle/ruby/3.2.0/gems/heroku_hatchet-8.0.2/etc/ci_setup.rb:15:in `<main>': undefined method `exists?' for File:Class (NoMethodError)

unless File.exists?(netrc_file)
           ^^^^^^^^
Did you mean?  exist?
```
  • Loading branch information
edmorley authored Mar 13, 2023
1 parent c461177 commit 514bdcb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ["2.7", "3.0", "3.1"]
ruby-version: ["2.7", "3.0", "3.1", "3.2"]
runs-on: ubuntu-22.04
env:
HATCHET_APP_LIMIT: 100
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## HEAD

- Add support for Ruby 3.2 (https://github.com/heroku/hatchet/pull/203)

## 8.0.2

- Bugfix: Allow nested deploy blocks with new teardown logic (https://github.com/heroku/hatchet/pull/201)
Expand Down
2 changes: 1 addition & 1 deletion etc/ci_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def run_cmd(command)
puts "== Setting Up CI =="

netrc_file = "#{ENV['HOME']}/.netrc"
unless File.exists?(netrc_file)
unless File.exist?(netrc_file)
File.open(netrc_file, 'w') do |file|
file.write <<-EOF
machine git.heroku.com
Expand Down

0 comments on commit 514bdcb

Please sign in to comment.