nebulab / erb-formatter

Format ERB files with speed and precision
MIT License
151 stars 25 forks source link

Remove deprecated usage of File.exists? #8

Closed nbelzer closed 1 year ago

nbelzer commented 1 year ago

File.exists? is deprecated in the latest release of Ruby (3.2.0). I encountered the issue when I upgraded to Ruby 3.2.0 so I expect more people to run into the same issue as they upgrade.

waymondo commented 1 year ago

Just came here to open a PR for the same issue. Seems fine to rename since exists? has been deprecated all the way back to the 2.5 days:

https://ruby-doc.org/core-2.5.0/File.html#method-c-exists-3F

albertorestifo commented 1 year ago

I'm also encountering this issue