ConradIrwin / pry-rescue

Start a pry session whenever something goes wrong.
MIT License
852 stars 49 forks source link

raises "Hook with name 'enable_rescuing' already defined!" in ruby 2.5.x #109

Closed artm closed 4 years ago

artm commented 6 years ago

when trying to use pry-rescue with ruby 2.5.0 or 2.5.1 I get

ArgumentError: Hook with name 'enable_rescuing' already defined!
  [...]/gems/pry-0.11.3/lib/pry/hooks.rb:74:in `add_hook'
  [...]/gems/pry-rescue-1.4.5/lib/pry-rescue.rb:28:in `<top (required)>'
  [...]/gems/2.5.0/gems/pry-rescue-1.4.5/bin/rescue:51:in `require'
  [...]/gems/2.5.0/gems/pry-rescue-1.4.5/bin/rescue:51:in `<top (required)>'
  [...]/gems/2.5.0/bin/rescue:23:in `load'
  [...]/gems/2.5.0/bin/rescue:23:in `<top (required)>'

See gist for more details.

joallard commented 4 years ago

Merged, let me know if anything