Skip to content

Spamming Deprecation Message because Enumerable uses Array() #350

@abrisse

Description

@abrisse

Enumerable uses Array() here and here, which leads to call the method #to_ary which has been deprecated.

That leads to a ton of deprecation messages.

To reproduce the problem easily (here version 2.2.3):

repo = RDF::Repository.new
repo << [RDF.type, RDF.type, RDF.type]
repo.statements # => [DEPRECATION] RDF::Queryable::Enumerator#to_ary is deprecated ...

Solution: replace all the Array() with #to_a. I can submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions