wouterdebie / i2cssh

csshX like ssh tool for iTerm2
MIT License
547 stars 68 forks source link

Use `File.exist?` instead of removed `File.exists?` in Ruby 3.2 #104

Closed tatzyr closed 2 years ago

tatzyr commented 2 years ago

Ruby 3.2 removes deprecated File.exists? method. It will be the following error in Ruby 3.2.

$ ruby -ve 'File.exists?("foo")'
ruby 3.2.0dev (2022-02-16T04:32:13Z master e7d76fe2b0) [arm64-darwin21]
-e:1:in `<main>': undefined method `exists?' for File:Class (NoMethodError)

File.exists?("foo")
    ^^^^^^^^
Did you mean?  exist?