]> git.openstreetmap.org Git - rails.git/commitdiff
Use file_exists to provide File.exists? for ruby 3.2
authorTom Hughes <tom@compton.nu>
Mon, 11 Dec 2023 17:17:28 +0000 (17:17 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 11 Dec 2023 17:17:28 +0000 (17:17 +0000)
This is needed for the oauth gem which uses it.

Gemfile
Gemfile.lock

diff --git a/Gemfile b/Gemfile
index 98b03518877a8ef6a8a157e66af9f3d9e9049cb0..8dd0576d10ee2c94cfcc870244173f3557ad4f78 100644 (file)
--- 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"
index 212cdb73e7cce313501c0f239c230264e88e915a..c4b9c25160101311077cb1c1ac539468d2778da5 100644 (file)
@@ -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