From a60bd568e76d6ea5981b34811c6e4f0b337126ae Mon Sep 17 00:00:00 2001 From: Piotr Szotkowski Date: Sat, 12 Nov 2016 10:29:48 +0100 Subject: [PATCH] fix a FIle.exists? deprecation --- lib/art-decomp/executable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/art-decomp/executable.rb b/lib/art-decomp/executable.rb index 148f02b..863e182 100644 --- a/lib/art-decomp/executable.rb +++ b/lib/art-decomp/executable.rb @@ -15,7 +15,7 @@ def initialize args, opts = { logging_class: Logging } end Trollop.die 'no FSM given' if args.empty? - Trollop.die 'FSM does not exist' unless File.exists? args.first + Trollop.die 'FSM does not exist' unless File.exist? args.first Trollop.die :archs, 'not in the form of inputs/outputs' unless options[:archs].all? { |s| s =~ /^\d+\/\d+$/ } Trollop.die :uv, 'generator does not exist' unless (options[:uv] - UVGenerators.constants.map(&:to_s)).empty?