scmbreeze / scm_breeze

Adds numbered shortcuts to the output git status, and much more
https://madebynathan.com/2011/10/19/git-shortcuts-like-youve-never-seen-before/
MIT License
2.82k stars 192 forks source link

Use File.exist over deprecated File.exists #323

Closed kimmobrunfeldt closed 1 year ago

kimmobrunfeldt commented 1 year ago

Fixes #322. The issue says it's deprecated in 3.2.0, however .exists has been deprecated for ages and was removed in 3.2.0. scm_breeze completely broke for me when upgrading ruby.

I was able to confirm this fixing the issue on my Mac 12.6, ruby 3.2.0.

ghthor commented 1 year ago

Looks like File:exist? goes back to at least 2.0.0, don't see any reason to support older then that.

https://ruby-doc.org/core-2.0.0/File.html#exist-3F-method