Skip to content

Commit 12113f1

Browse files
committed
Add support for Ruby 3.2
Ruby 2.2 deprecated `File#exists?` in favor of `File#exist?`, and Ruby 3.2 removed the deprecated method. We need to use the "new" method to run on Ruby 3.2.
1 parent 2335fa1 commit 12113f1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- 2.7
1919
- 3.0
2020
- 3.1
21+
- 3.2
2122
fail-fast: false
2223
steps:
2324
- uses: actions/checkout@v2
@@ -27,4 +28,4 @@ jobs:
2728
ruby-version: ${{ matrix.ruby-version }}
2829
bundler-cache: true
2930
- name: Run the test suite
30-
run: bundle exec rake test
31+
run: bundle exec rake test

lib/riemann/dash/browser_config/file.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def initialize(path)
77
end
88

99
def read
10-
if ::File.exists? @path
10+
if ::File.exist? @path
1111
::File.open(@path, 'r') do |f|
1212
f.flock ::File::LOCK_SH
1313
f.read

0 commit comments

Comments
 (0)