1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib/pry
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
..
code add color more confidently 2014-05-01 01:53:53 -07:00
commands Methods defined in console can be repeatedly edited 2014-08-10 00:33:38 -06:00
config Fix Pry.config.hooks # => parent's hooks 2014-07-20 17:18:12 -06:00
helpers add color more confidently 2014-05-01 01:53:53 -07:00
method Remove deprecation warning for File.exists? 2014-06-12 10:10:14 -05:00
test Use _pry_.pager instead of Pry::Pager 2014-05-01 01:51:02 -07:00
cli.rb Stop using compatibility aliases for Pry.config 2014-05-01 01:51:01 -07:00
code.rb Revert "Get rid of Code#highlighted" 2014-07-20 17:32:17 -07:00
code_object.rb Use _pry_ for consistency 2014-05-01 01:51:01 -07:00
color_printer.rb Merge branch 'remove-global-config' 2014-05-05 00:30:28 -06:00
command.rb remove all Bond references from pry. rel #1180 2014-03-25 16:13:05 +01:00
command_set.rb Stop using compatibility aliases for Pry.config 2014-05-01 01:51:01 -07:00
commands.rb Append to Strings with #<< rather than #+. 2013-11-24 14:58:31 -08:00
config.rb require 'config/*' dependencies through require_relative. 2014-02-01 14:52:40 +01:00
core_extensions.rb Remove support for 1.8-compatible versions of Ruby 2014-01-19 17:43:07 -08:00
editor.rb support for redcar editor 2014-07-20 22:26:02 +12:00
exceptions.rb Handle error about frozen object in Ruby 2.2 2014-10-14 23:07:48 +09:00
helpers.rb Extract Table to its own file 2013-01-09 17:18:44 -06:00
history.rb Always expand history file path (fix #1262) 2014-07-06 15:20:03 -07:00
history_array.rb Only take a shallow clone 2013-12-08 09:40:45 -08:00
hooks.rb Remove deprecated hooks API 2014-04-29 11:13:26 +03:00
indent.rb No Pry.config in Pry::Indent 2014-05-01 01:51:01 -07:00
input_completer.rb Don't use side-effecty string append [Fixes #1223] 2014-05-26 22:13:14 -07:00
input_lock.rb No longer touching the the input. It's a global lock for now (:all) 2013-06-26 16:39:37 -04:00
inspector.rb Various copy changes 2014-05-05 00:50:44 -07:00
last_exception.rb improve Pry::LastException docs. 2014-03-17 11:28:48 +01:00
method.rb Delete magic comment 2014-03-26 10:35:16 +09:00
module_candidate.rb Move all hacking of rbx paths into Pry::Code 2013-05-10 00:49:36 -07:00
object_path.rb Make object path resolution more robust (fix #957) 2014-04-28 00:41:19 -07:00
output.rb More compatibility changes for Pry::Output 2014-05-05 23:19:15 -07:00
pager.rb Cleanup private attribute? warning 2014-06-24 16:37:21 -04:00
plugins.rb Clean File.exists? deprecation warning 2014-06-24 16:34:51 -04:00
prompt.rb Various copy changes 2014-05-05 00:50:44 -07:00
pry_class.rb Cleanup * interpreted as argument prefix warning 2014-06-24 16:30:03 -04:00
pry_instance.rb Merge pull request #1253 from adelevie/master 2014-08-16 15:52:24 -07:00
rbx_path.rb Move all hacking of rbx paths into Pry::Code 2013-05-10 00:49:36 -07:00
repl.rb Revert 16c6037cde to fix spec/Procfile 2014-06-28 22:53:26 -07:00
repl_file_loader.rb Make it clearer that we're copying from config to config 2014-05-01 01:51:02 -07:00
rubygem.rb Revert "Initial support for gem-uninstall" 2014-04-27 14:28:09 -07:00
terminal.rb Don't return cols = 0 [Fixes #1267] 2014-08-16 16:10:10 -07:00
version.rb v0.10.1 2014-08-16 16:34:26 -07:00
wrapped_module.rb Fix for Rubinius 2014-08-10 03:17:16 -06:00