1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil@debian.org>
Date: Wed, 29 Nov 2023 23:46:32 +0100
Subject: Rename File.exists? to .exist
to support ruby-fakefs 2.x and ruby 3.2
---
lib/librarian/dsl.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librarian/dsl.rb b/lib/librarian/dsl.rb
index 76b68be..2e8aaa1 100644
--- a/lib/librarian/dsl.rb
+++ b/lib/librarian/dsl.rb
@@ -88,7 +88,7 @@ module Librarian
specfile ||= block if block_given?
- if specfile.kind_of?(Pathname) and !File.exists?(specfile)
+ if specfile.kind_of?(Pathname) and !File.exist?(specfile)
debug { "Specfile #{specfile} not found, using defaults" } unless specfile.nil?
receiver(target).run(specfile, &default_specfile)
else
|