From a0da5467460823347cb12ab0ecc23555725cb4f0 Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Mon, 27 Nov 2023 16:23:55 -0600 Subject: [PATCH] Fix Ruby 3 compatibility (#168) Remove use of `File.exists?` in gemspec. Closes #166 --- simp-compliance-engine.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simp-compliance-engine.gemspec b/simp-compliance-engine.gemspec index 8b3d5fe..b99df97 100644 --- a/simp-compliance-engine.gemspec +++ b/simp-compliance-engine.gemspec @@ -4,7 +4,7 @@ module Simp class Helpers def self.get_param(param, command) file = "#{File.dirname(__FILE__)}/.gem_#{param}" - if (File.exists?(file)) + if (File.exist?(file)) info = File.read(file) else info = `#{command}`