csquared/IMGKit

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

Closed this issue ยท 0 comments

I got the following error ๐Ÿ‘‡ while running locally (macOS 12.4) a Rails app that uses imgkit@1.6.2

/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 ๐Ÿ‘‡

raise NoExecutableError.new unless File.exists?(IMGKit.configuration.wkhtmltoimage)

File.exists?(file.path).should be_true

It should be fairly easy to fix ๐Ÿ‘