From 405cd49aa8ac6dcc89ccd7fc332fc5815908110f Mon Sep 17 00:00:00 2001 From: Thijs Cadier Date: Tue, 7 Mar 2023 14:18:45 +0100 Subject: [PATCH] Ruby 3 compatibility --- support/helpers.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/support/helpers.rb b/support/helpers.rb index 33b7035..a064175 100644 --- a/support/helpers.rb +++ b/support/helpers.rb @@ -46,12 +46,12 @@ def framework_config(app) def get_app ENV['app'].tap do |app| raise "Specify which app you want to run using app=path" if app.nil? - raise "#{app} not found" unless File.exists?("frameworks/#{app}") + raise "#{app} not found" unless File.exist?("frameworks/#{app}") end end def get_keys - unless File.exists?("keys.yml") + unless File.exist?("keys.yml") raise "Create a keys.yml file, see the readme" end YAML.load_file("keys.yml") @@ -66,7 +66,7 @@ def write_appsignal_config(app, frontend_key, revision, uri) @revision = revision @uri = uri puts "Writing appsignal with #{@frontend_key} - #{@revision} - #{@uri}" - filename = if File.exists?("frameworks/#{app}/tsconfig.json") + filename = if File.exist?("frameworks/#{app}/tsconfig.json") "appsignal.ts" else "appsignal.js"