1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/spec
Robert Gleeson 24bbe12dc2 add Pry::LastException.
pry adds behavior(methods) to the exception it returns at _pry_.last_exception
in a repl but when the exception has been passed along as a frozen object ruby
will raise an exception and pry fails to function as usual.

the commit changes that behavior so that the exception is wrapped in an instance of
Pry::LastException who is a subclass of BasicObject. Pry::LastException is a copy&paste
of what was defined dynamically in pry_instance.rb but it allows for frozen exceptions
to remain frozen and still provides the methods pry dynamically defined on an exception
object before. through a wrapper class pry also no longer modifies an exception object
that it doesn't own.
2014-03-10 02:59:11 +01:00
..
commands Fix ls on Fixnum [Fixes #1120] 2014-02-05 15:35:24 -08:00
fixtures spec/code_spec.rb: add more tests for $LOAD_PATH behaviour 2013-11-23 22:13:54 +02:00
helpers Remove helpers for spec. Helpers for spec and specs for helper are mixed in spec/helpers, so remove helpers to spec/spec_helpers. 2013-12-21 23:20:42 +09:00
isolation confirm 'Readline' is made available on Pry.start(). 2014-02-03 13:49:10 +01:00
method Method::Patcher should preserve method visibility 2013-03-30 17:42:46 -07:00
spec_helpers Fix repl_tester to access correct config object 2014-01-28 22:42:41 +09:00
cli_spec.rb Rename Pry::CLI.process_options to add_option_processor . This method dose not process options but adds option processor, so rename it. 2014-01-11 22:42:25 +09:00
code_object_spec.rb Show method docs for Foo() and class docs for Foo 2013-09-06 14:58:12 -07:00
code_spec.rb spec/code_spec.rb: add more tests for $LOAD_PATH behaviour 2013-11-23 22:13:54 +02:00
command_helpers_spec.rb Fix documentation rendering edge-cases [Fixes #795] 2013-02-01 01:30:07 -08:00
command_integration_spec.rb rename Pry::CommandSet#commands as Pry::CommandSet#to_hash. 2014-02-04 05:14:41 +01:00
command_set_spec.rb Make ensure that Pry.config.command_prefix = '' . 2014-02-15 23:37:07 +09:00
command_spec.rb rename Pry::CommandSet#commands as Pry::CommandSet#to_hash. 2014-02-04 05:14:41 +01:00
completion_spec.rb eager-load 'completer' via Default in completion_spec.rb 2014-02-03 13:21:34 +01:00
config_spec.rb add Behavior#keys. 2014-02-02 23:23:23 +01:00
control_d_handler_spec.rb Fix Ctrl-D in nested pry's 2012-12-28 10:00:33 -08:00
documentation_helper_spec.rb Fix documentation rendering edge-cases [Fixes #795] 2013-02-01 01:30:07 -08:00
editor_spec.rb Fix errors in "edit_spec.rb" and "editor_spec.rb" 2013-01-14 18:43:19 +02:00
exception_whitelist_spec.rb
helper.rb Initialize History lazily, make it work without Readline 2014-02-02 19:51:39 -08:00
history_array_spec.rb adds HistoryArray#to_h and spec 2013-12-07 07:09:42 -05:00
history_spec.rb HistorySpec: add more tests 2013-03-18 11:20:16 +02:00
hooks_spec.rb
indent_spec.rb Indent 'while/until do' loops correctly [Fixes #787] 2012-12-28 07:37:55 -08:00
method_spec.rb Disable spec to work around rubinius/rubinius#2871 2014-01-19 20:48:31 -08:00
pager_spec.rb Track output size more accurately 2013-11-02 14:20:56 -07:00
Procfile Reword foreman instructions without 'cd' 2013-02-08 00:29:02 -06:00
prompt_spec.rb remove openstruct dependency from all of pry. 2014-01-21 11:11:42 +01:00
pry_defaults_spec.rb Allow customisation of the prompt objects 2013-05-04 11:21:16 +03:00
pry_output_spec.rb Fix pry.config.output_prefix to work. Fix #1128 2014-02-05 22:31:23 +09:00
pry_repl_spec.rb fix last fail. inherit StringIO 'output' from wrapped "Pry" in ReplTester. 2014-01-29 14:56:54 +01:00
pry_spec.rb add Pry::LastException. 2014-03-10 02:59:11 +01:00
pryrc_spec.rb Comment out spec when it's broken 2013-02-17 23:32:17 -08:00
run_command_spec.rb Remove support for 1.8-compatible versions of Ruby 2014-01-19 17:43:07 -08:00
sticky_locals_spec.rb Fix sticky_locals(_ and __) when lambda is given 2014-02-03 22:51:27 +09:00
syntax_checking_spec.rb
wrapped_module_spec.rb Fix all ruby version not mentioned in previous two commits 2013-04-07 21:18:59 -07:00