git-smart icon indicating copy to clipboard operation
git-smart copied to clipboard

Not compatible with newer Ruby version

Open WeiyiZ-008 opened this issue 1 year ago • 1 comments

https://github.com/geelen/git-smart/blob/3e0667cd2f1f123b4cd090c72d8ff36fd74874ab/lib/git-smart/git_repo.rb#L23

I think the newer version of Ruby does not support File.exists? any more, instead it use File.exist? The error I got: "undefined method `exists?' for File:Class (NoMethodError)"

WeiyiZ-008 avatar Dec 05 '23 20:12 WeiyiZ-008

Same issue.

undefined method `exists?' for class File (NoMethodError)

    unless File.exists?(gitdir)
               ^^^^^^^^
Did you mean?  exist?

Ruby 3.3.1

dep avatar Aug 24 '24 11:08 dep