Skip to content

Ruby 4.0 compatibility: Data.define removed #98

@o6uoq

Description

@o6uoq

Doesn't work with Ruby 4.0 - Homebrew's ruby formula is now 4.0.1

/lib/fuzzy.rb:21: warning: constant ::Data is deprecated
/lib/fuzzy.rb:21:in `<class:Fuzzy>': undefined method `define' for Data:Class (NoMethodError)

Data.define was added in 3.2 but removed in 4.0. Could use Struct.new instead?

Pinned to ruby@3.3 in my tap for now: https://github.com/o6uoq/homebrew-tap/blob/main/Formula/try.rb

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