From f18df25f7e89130950cb3f360f509754a7500019 Mon Sep 17 00:00:00 2001 From: denderlin Date: Thu, 26 Jun 2025 08:26:01 +0200 Subject: [PATCH] Fix compatability with Ruby >= 3.2 --- lib/xml-sitemap/map.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xml-sitemap/map.rb b/lib/xml-sitemap/map.rb index ae5b1ff..328df1b 100644 --- a/lib/xml-sitemap/map.rb +++ b/lib/xml-sitemap/map.rb @@ -123,7 +123,7 @@ def render_to(path, options={}) path = File.expand_path(path) path << ".gz" unless path =~ /\.gz\z/i if compress - if File.exists?(path) && !overwrite + if File.exist?(path) && !overwrite raise RuntimeError, "File already exists and not overwritable!" end