From e3ebca2f19af41388882b7891cac8ef058170652 Mon Sep 17 00:00:00 2001 From: William Entriken Date: Sun, 23 Apr 2023 10:20:38 -0400 Subject: [PATCH] Support Ruby 3.2+, fixes #879 --- bin/github-pages | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/github-pages b/bin/github-pages index d91bf9d4..5ae512c9 100755 --- a/bin/github-pages +++ b/bin/github-pages @@ -43,7 +43,7 @@ Mercenary.program(:"github-pages") do |p| c.action do |args, options| require 'github-pages-health-check' cname_path = File.expand_path "CNAME", Dir.pwd - raise "No CNAME file found in current directory" unless File.exists?(cname_path) + raise "No CNAME file found in current directory" unless File.exist?(cname_path) cname = File.open(cname_path).read.strip check = GitHubPages::HealthCheck.check(cname) puts "Checking domain #{cname}..."