summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-10 11:57:32 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-10 11:57:32 +0100
commitc1394801503a5e43c82256093585e1b5bfc7c85e (patch)
treeb5bf90643e51017c963caeb563371fe7ab74f11e
parent1db82203b2c2faf2dcaafe010ad955ab969e6ddd (diff)
downloadbundler-c1394801503a5e43c82256093585e1b5bfc7c85e.tar.gz
Add back NameError rescue
Ruby 2.3 ships with `did_you_mean` 1.0.0, and `DidYouMean::SpellChecker` was introduced by `did_you_mean` 1.0.2 from renaming the `DidYouMean::SpellCheckable` class. So, in ruby 2.3, the spell checking functionality will bail out with a `NameError` exception. So, we still need to ignore that case.
-rw-r--r--lib/bundler/vendor/thor/lib/thor/error.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/vendor/thor/lib/thor/error.rb b/lib/bundler/vendor/thor/lib/thor/error.rb
index fc14099982..9217545a48 100644
--- a/lib/bundler/vendor/thor/lib/thor/error.rb
+++ b/lib/bundler/vendor/thor/lib/thor/error.rb
@@ -16,7 +16,7 @@ class Bundler::Thor
end
DidYouMean::Correctable
- rescue LoadError
+ rescue LoadError, NameError
end
end