Skip to content

Commit

Permalink
Merge pull request #637 from y-yagi/add_care_of_old_did_you_mean
Browse files Browse the repository at this point in the history
Add care about old version of `did_you_mean`
  • Loading branch information
rafaelfranca authored Nov 10, 2018
2 parents 7d08952 + 846b794 commit 8c1fae2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ group :test do
else
gem "webmock"
end
if RUBY_VERSION >= '2.5.0'
if RUBY_VERSION >= '1.9'
# `did_you_mean` can't build with Ruby 1.8.
gem 'did_you_mean'
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/thor/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(dictionary)
end

DidYouMean::Correctable
rescue LoadError
rescue LoadError, NameError
end

# Thor::Error is raised when it's caused by wrong usage of thor classes. Those
Expand Down

0 comments on commit 8c1fae2

Please sign in to comment.