From d668608b6c0907497b94ca095a7081b022ddb51f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89douard=20Bri=C3=A8re?= Date: Fri, 27 Jan 2023 15:57:39 +0100 Subject: [PATCH] Replace `File.exists?` with `File.exist?` `File.exists?` was deprecated in ruby 2.1.0 and was removed in ruby 3.2.0 --- lib/guard/bundler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guard/bundler.rb b/lib/guard/bundler.rb index f0ea2d6..d529a98 100644 --- a/lib/guard/bundler.rb +++ b/lib/guard/bundler.rb @@ -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