From: Tom Hughes Date: Mon, 11 Dec 2023 17:17:28 +0000 (+0000) Subject: Use file_exists to provide File.exists? for ruby 3.2 X-Git-Tag: live~890 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/1f0105c9537dea2b8f74b0c7e897e2a0ef11ff8b?hp=e272cda34848cb99892f05f388c897c204f08ba2 Use file_exists to provide File.exists? for ruby 3.2 This is needed for the oauth gem which uses it. --- diff --git a/Gemfile b/Gemfile index 98b035188..8dd0576d1 100644 --- a/Gemfile +++ b/Gemfile @@ -41,6 +41,9 @@ gem "argon2" # Support brotli compression for assets gem "sprockets-exporters_pack" +# Restore File.exists? for oauth gem +gem "file_exists" + # Load rails plugins gem "actionpack-page_caching", ">= 1.2.0" gem "activerecord-import" diff --git a/Gemfile.lock b/Gemfile.lock index 212cdb73e..c4b9c2516 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -244,6 +244,7 @@ GEM rake ffi-libarchive (1.1.13) ffi (~> 1.0) + file_exists (0.2.0) frozen_record (0.27.0) activemodel fspath (3.1.2) @@ -610,6 +611,7 @@ DEPENDENCIES factory_bot_rails faraday ffi-libarchive + file_exists frozen_record gd2-ffij (>= 0.4.0) htmlentities