File: File_exists.patch

package info (click to toggle)
ruby-treetop 1.6.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 956 kB
  • sloc: ruby: 8,918; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 615 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: replace deprecated File::exists? with File::exist?
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2023-11-18

--- a/spec/compiler/circular_compilation_spec.rb
+++ b/spec/compiler/circular_compilation_spec.rb
@@ -2,7 +2,7 @@
 
 BENCHMARK = false
 METAGRAMMAR_PATH = ([ File.expand_path('../../../lib/treetop/compiler/metagrammar.treetop', __FILE__) ] +
-  $:.map { |d| d + '/treetop/compiler/metagrammar.treetop' }).select { |f| File::exists?(f) }.first
+  $:.map { |d| d + '/treetop/compiler/metagrammar.treetop' }).select { |f| File::exist?(f) }.first
 
 
 module CircularCompilationSpec