1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

4 commits

Author SHA1 Message Date
Juanito Fatas
d12ce06a7f Update clearer terminologies
Deprecate Pry.config.exception_whitelist,
use Pry.config.unrescued_exceptions instead.

Deprecate  Pry::DEFAULT_EXCEPTION_WHITELIST,
use Pry::DEFAULT_UNRESCUED_EXCEPTIONS instead.

What white / black means are not clear,
use clearer terminologies.
2018-11-11 20:21:59 +09:00
Kyrylo Silin
48b6a9c3b4 rubocop: fix offences of Layout/EmptyLinesAroundClassBody cop 2018-11-04 16:50:21 +08:00
Ryunosuke SATO
74784e8f78 Handle error about frozen object in Ruby 2.2
This kind of error message seems to be updated in Ruby 2.2.

For example, the following code throws an error that has different
error message with Ruby version:
```
"".freeze.instance_eval do
  def hi
  end
end
```

In Ruby 2.1.3:
> RuntimeError: can't modify frozen Class

In Ruby 2.2.0-preview1:
> RuntimeError: can't modify frozen object
2014-10-14 23:07:48 +09:00
Kyrylo Silin
8e553e2144 pry.rb: Move all exception specific code to its own file
This finishes up Robert Gleeson's refactoring. A sole file for
RescuableException doesn't make much sense, since we have a few more
exceptions left behind.
2013-09-03 11:04:25 +03:00