You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Make deprecation_warning available in Thor::Base and Thor::Optiopn when
"thor" is not required, by moving it to "lib/thor/base.rb" which will
be required.
[Fixesrails#703]
Make deprecation_warning available in Thor::Base and Thor::Option when
"thor" is not required, by moving it to "lib/thor/base.rb" which will
be required.
[Fixesrails#703]
Projects like Rails use thor by
require 'thor/group'
rather thanrequire 'thor'
. This can cause a problem because thedeprecation_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.The text was updated successfully, but these errors were encountered: