cloudinary / cloudinary_gem

Cloudinary GEM for Ruby on Rails integration
https://cloudinary.com
420 stars 285 forks source link

Replace removed File.exists? with File.exist? for Ruby 3.2.0 compatibility #547

Closed umihico closed 4 months ago

umihico commented 4 months ago

Brief Summary of Changes

This update replaces the deprecated and removed File.exists? method with File.exist? to ensure compatibility with Ruby 3.2.0 and later versions, where the old method has been entirely removed.

https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/

What does this PR address?

Are tests included?

Reviewer, please note:

I am not sure the function cl_sprite_url is still in use.

Checklist:

const-cloudinary commented 4 months ago

@umihico thank you for contribution!