cjheath / treetop

A Ruby-based parsing DSL based on parsing expression grammars.
https://cjheath.github.io/treetop
MIT License
306 stars 22 forks source link

Replace deprecated File.exists? with File.exist? #48

Closed mtasaka closed 1 year ago

mtasaka commented 1 year ago

File.exists? has already been deprecated since ruby 2.1 and will be removed with ruby 3.2. Replace this with File.exist? .

ref: https://bugs.ruby-lang.org/issues/17391

Fixes #47 .

cjheath commented 1 year ago

Thanks for your fix. I released it as 1.6.12, but I think that's not enough. I haven't touched Ruby for a couple of years, so I'm currently working through updating my versions of everything. I'll update here when I've tested and am confident we have a good release.

cjheath commented 1 year ago

Looks like I just needed to bundle update. Tests pass without me making further changes. 1.6.12 should be good.