Skip to content

ruby 3.2 compatibility #158

@jwoodrow

Description

@jwoodrow

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 ! 👋

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions