Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated File.exists? on ruby 3.2.0 #212

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ task :update_gemfiles do

lockfile = "#{gemfile}.lock"

if File.exists? lockfile
if File.exist? lockfile
parsed_lockfile = Bundler::LockfileParser.new(Bundler.read_file(lockfile))
# Ensure lockfile has x86_64-linux
if parsed_lockfile.platforms.map(&:to_s).none? {|p| p == 'x86_64-linux' }
Expand All @@ -33,4 +33,4 @@ task :update_gemfiles do
raise StandardError.new("Expected #{lockfile} to exist.")
end
end
end
end