File: 0006-Ruby3.3-fix-File.exists-to-File.exist.patch

package info (click to toggle)
ruby-shoulda-context 2.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 476 kB
  • sloc: ruby: 1,712; sh: 200; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 748 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Lucas Nussbaum <lucas@debian.org>
Date: Sat, 19 Apr 2025 06:46:07 +0200
Subject: Ruby3.3 fix: File.exists? to File.exist?

---
 exe/convert_to_should_syntax | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exe/convert_to_should_syntax b/exe/convert_to_should_syntax
index d1264d0..ebdda98 100755
--- a/exe/convert_to_should_syntax
+++ b/exe/convert_to_should_syntax
@@ -31,7 +31,7 @@ usage("Temp directory '#{TMP}' is not valid. Set TMPDIR environment variable to
 
 file = ARGV.shift
 tmpfile = File.join(TMP, File.basename(file))
-usage("File '#{file}' doesn't exist") unless File.exists?(file)
+usage("File '#{file}' doesn't exist") unless File.exist?(file)
 
 FileUtils.cp(file, tmpfile)
 contents = File.read(tmpfile)