Skip to content

Commit

Permalink
Replace File.exists? with File.exist?
Browse files Browse the repository at this point in the history
`File.exists?` was deprecated in ruby 2.1.0 and was removed in ruby 3.2.0
  • Loading branch information
edouard committed Jan 27, 2023
1 parent 9887557 commit d668608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/guard/bundler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def refresh_bundle
end

def bundle_check
gemfile_lock_mtime = File.exists?('Gemfile.lock') ? File.mtime('Gemfile.lock') : nil
gemfile_lock_mtime = File.exist?('Gemfile.lock') ? File.mtime('Gemfile.lock') : nil
::Bundler.with_unbundled_env do
`bundle check`
end
Expand Down

0 comments on commit d668608

Please sign in to comment.