Skip to content

Move deprecation_warning from lib/thor.rb to lib/thor/base.rb #703

@BrianHawley

Description

@BrianHawley

Projects like Rails use thor by require 'thor/group' rather than require 'thor'. This can cause a problem because the deprecation_warning method added in version 1.0.0 is defined in "ib/thor.rb", which doesn't get required, but is referenced in "lib/thor/base.rb" and "lib/thor/parser/option.rb".

The safest solution would be to move the deprecation_warning method to "lib/thor/base.rb" and let the Thor class get it when "thor/base" is required.

A temporary workaround to get thor 1.0.0 working is to add an explicit gem 'thor' reference to your Gemfile, which will require "thor" as a side effect.

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