diff options
Diffstat (limited to 'dev-ruby/shoulda-context/files/shoulda-context-2.0.0-file-exists.patch')
| -rw-r--r-- | dev-ruby/shoulda-context/files/shoulda-context-2.0.0-file-exists.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/dev-ruby/shoulda-context/files/shoulda-context-2.0.0-file-exists.patch b/dev-ruby/shoulda-context/files/shoulda-context-2.0.0-file-exists.patch deleted file mode 100644 index 78f7dfc3f0b5..000000000000 --- a/dev-ruby/shoulda-context/files/shoulda-context-2.0.0-file-exists.patch +++ /dev/null @@ -1,26 +0,0 @@ -From ee3aeb239ea69c9a855d64e8c1cfda87958c833d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com> -Date: Thu, 22 Dec 2022 15:03:17 +0100 -Subject: [PATCH] Use File.exist? - -`File.exists?` was deprecated while ago and removed in Ruby 3.2. - -https://bugs.ruby-lang.org/issues/17391 -https://github.com/ruby/ruby/pull/5352 ---- - 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 d1264d07..ebdda984 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) |
