After upgrading to Ruby 3.2, we had the following error pop up in Sentry:
NoMethodError: undefined method `exists?' for File:Class (NoMethodError)
File.delete(ssl_filename) if File.exists?(ssl_filename)
^^^^^^^^
Did you mean? exist?
from rubycas-client (2.3.9) lib/casclient/tickets/storage.rb:129:in `cleanup_service_session_lookup'
After upgrading to Ruby 3.2, we had the following error pop up in Sentry:
According to Ruby 3.2's changelogs,
File.exists
has been removed:There are two references to
File.exists?
in the codebase, which need to be updated toFile.exist?
https://github.com/rubycas/rubycas-client/blob/7b67c8f1b5515ee4e28479d640d2da0a5aadfbe0/lib/casclient/tickets/storage.rb#L116-L129