Skip to content

Ruby 2.7 compatibility #23

Closed
Closed
@MartinodF

Description

@MartinodF

new_ostruct_member has been removed from OpenStruct in ruby 2.7.
This breaks FilePreviews::Response.responsify, which relies on it.

This change also impacted rubyconfig/config, and was resolved via rubyconfig/config#255 (by simply removing the method call, if I understand it correctly).

I'm preparing a PR with this change, having tested it in both 2.4.1 and 2.7.1 by running rspec and having no errors. I'm not really sure if this would impact older ruby versions, or something not covered by the specs.

Let me know if you see any issue with this approach!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions