You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here is what worked for me, I created bin/run_cane:
#!/usr/bin/env ruby
# Monkey patch for File.exists? to alias it to File.exist?
# https://github.com/square/cane/issues/102
if RUBY_VERSION >= '3.2.0' && !File.respond_to?(:exists?)
class File
class << self
alias_method :exists?, :exist?
end
end
end
load Gem.bin_path('cane', 'cane')
cane checks currently fail on Ruby 3 because of this call to
File.exists?
:cane/lib/cane/file.rb
Lines 21 to 23 in c8d6ce4
This now gives a
NoMethodError
and suggestsFile.exist?
.Typical Ruby to delete the method with the correct grammar, if you ask me. :(
The text was updated successfully, but these errors were encountered: