IMGKit icon indicating copy to clipboard operation
IMGKit copied to clipboard

warning: `File.exists?` is deprecated; use `File.exist?` instead

Open techeverri opened this issue 3 years ago • 0 comments

I got the following error 👇 while running locally (macOS 12.4) a Rails app that uses [email protected]

/Users/techeverri/.gem/ruby/3.1.2/gems/imgkit-1.6.2/lib/imgkit/imgkit.rb:45: warning: File.exists? is deprecated; use File.exist? instead

File.exists? is referenced a couple of times in IMGKit 👇

https://github.com/csquared/IMGKit/blob/9c8332ed73801740534cc529ddd8ff89f2c505cf/lib/imgkit/imgkit.rb#L45

https://github.com/csquared/IMGKit/blob/9c8332ed73801740534cc529ddd8ff89f2c505cf/spec/imgkit_spec.rb#L289

It should be fairly easy to fix 👍

techeverri avatar Jun 02 '22 12:06 techeverri