Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ruby 3.2 compatibility #158

Open
jwoodrow opened this issue Jan 11, 2023 · 0 comments
Open

ruby 3.2 compatibility #158

jwoodrow opened this issue Jan 11, 2023 · 0 comments

Comments

@jwoodrow
Copy link

jwoodrow commented Jan 11, 2023

Hi, we're using the Docsplit.extract_text method with output: File.dirname('some/path') as an option. Now this ends up failing with a undefined method 'exists?' for File:Class.

I've looked at the ruby changelogs for 3.2.0 and I saw this:

Removed methods
The following deprecated methods are removed.

I've looked into the docsplit code and found this

FileUtils.mkdir_p @output unless File.exists?(@output)

The File.exists? removal does seem to align with the error being raised, would it be possible to look into this ?

Thanks ! 👋

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant