librato-rails
librato-rails copied to clipboard
File.exists? is removed in Ruby 3.2
See https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/
Fixes https://github.com/librato/librato-rails/issues/149
Great @espen! Would love to get this merged, if this project is still active! =)
Hello @nextmat , @bdehamer , @chancefeick and @pat ,
Could anyone please take steps to merge this PR soon. Or could you please suggest any alternative solution (gem) for the changes in this PR?
Thank you ! Asiful Islam Sakib Software Engineer, WellDev
Hello @nextmat , @bdehamer , @chancefeick and @pat ,
Could anyone please take steps to merge this PR soon. Or could you please suggest any alternative solution (gem) for the changes in this PR?
Thank you ! Asiful Islam Sakib Software Engineer, WellDev
You can monkey patch this pretty easily:
# Removed in Ruby 3.2 but needed for librato (even most recent version as of today).
# Using this monkeypatch seems to make sense (for now).
#
# https://github.com/librato/librato-rails/pull/150
class File
def self.exists?(filename)
self.exist?(filename)
end
end
Not ideal, but will let you move on to some other things for now :)