Skip to content

MIME::Type.MIME::Type.new is depreciated #352

@topofocus

Description

@topofocus

After bundle update IRuby.display IRuby.html "...." still works, but a warning is displayed.

I fixed it by replacing 'MIME::TYPE.new(mime)to MIME::TYPES[mime].first` in lib/iruby/display.rb#160

BUT: MIME::TYPE.new('text/html).ascii? --> true
AND: MIME::TYPES['text/html].first.ascii? ---> false

edit:
after further consideration,I added "text/html" to FORCE_TEXT_TYPES.

This seems to be a quick&dirty walkaround.

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