diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2016-12-12 03:24:09 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2016-12-12 03:24:09 +0200 |
commit | 353a42b70619e6415bc3dfa1064271133c51ffa0 (patch) | |
tree | 4542a9ce36c727c8cdf054b1f6863aa472a8b155 | |
parent | 26e330f38215e4b74c4555375e652776af0d196c (diff) | |
download | pry-353a42b70619e6415bc3dfa1064271133c51ffa0.tar.gz |
Skip modules that mess with Class#hash
Like Argon2::Password in argon2 < v1.1.1.
-rw-r--r-- | lib/pry/input_completer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/input_completer.rb b/lib/pry/input_completer.rb index 056f7c3e..7bdf372b 100644 --- a/lib/pry/input_completer.rb +++ b/lib/pry/input_completer.rb @@ -170,7 +170,7 @@ class Pry::InputCompleter candidates = [] to_ignore = ignored_modules ObjectSpace.each_object(Module){|m| - next if to_ignore.include?(m) + next if to_ignore.include?(m) rescue true # jruby doesn't always provide #instance_methods() on each # object. |