We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try to generate api docs on ruby 3.2.0 I get an error:
../lib/rspec_api_documentation/writers/writer.rb:17:in 'clear_docs': undefined method 'exists?' for File:Class (NoMethodError)
File.exists? was deprecated in ruby 2.1.0 and has been removed in the ruby 3.2.0
File.exists?
The text was updated successfully, but these errors were encountered:
As a workaround, you can add a monkey-patch like:
class File class << self alias_method :exists?, :exist? end end
Sorry, something went wrong.
Rubocop removes the line entirely as File.rm_rf is supposed to be idempotent and not care if the file doesn't exist
File.rm_rf
No branches or pull requests
When I try to generate api docs on ruby 3.2.0 I get an error:
../lib/rspec_api_documentation/writers/writer.rb:17:in 'clear_docs': undefined method 'exists?' for File:Class (NoMethodError)
File.exists?
was deprecated in ruby 2.1.0 and has been removed in the ruby 3.2.0The text was updated successfully, but these errors were encountered: