Ryan Fitzgerald
a53fe2c5d1
use exceptions to handle command errors
2011-10-01 16:57:39 -07:00
Ryan Fitzgerald
7c43bcfe58
update commands and tests to use Pry::Method
2011-09-22 01:20:32 -07:00
Conrad Irwin
6fda20a22f
Remove the compulsary "" argument to alias_command
2011-09-19 10:37:51 +08:00
John Mair
8f6878e0e3
now passing output object and pry instance into Pry.config.system proc
2011-09-18 00:42:29 +12:00
John Mair
66c464bafe
system is now determined by a proc, Pry.config.system
2011-09-17 18:35:17 +12:00
John Mair
f89f31ff49
added error handling to cat command
2011-09-15 21:09:46 +12:00
John Mair
21287630d5
cat --ex now movies through backtrace with each invocation (keeps state)
2011-09-14 05:43:57 +12:00
John Mair
019245bf10
extended cat --ex and edit --ex to allow access to all levels of backtrace
...
cat --ex N now shows a window of code around the Nth level of the backtrace (window size determined by Pry.config.exception_window_size, defaults to 5)
edit --ex N opens an editor at the line of code at the Nth level of the backtrace
2011-09-14 05:43:56 +12:00
John Mair
7878654d42
cat --ex now shows code for exceptions raised in the REPL
2011-09-11 04:44:49 +12:00
John Mair
b3576244db
added more rbx helpers (command_helpers.rb) and added limited support for cat --ex on rbx
2011-09-01 15:47:29 +12:00
John Mair
84b0601f4a
all special locals are now injected into all bindings for a Pry instance - e.g _ex_ is consistent no matter if you cd into a new context. New 'special local' system, and added tests for the new system
2011-09-01 05:05:21 +12:00
John Mair
d16e396e51
removed all occurences of Pry.active_instance and Pry.last_exception. Now using inject_local() method. Also initializing all locals in repl_prologue
2011-08-31 05:35:41 +12:00
John Mair
6f8bc2a412
got rid of warnings caused by stricter ruby 1.9.3 rules
2011-08-16 17:00:18 +12:00
John Mair
fb47d61215
removed Pry.active_instance from commands and replaced with _pry_ method
2011-08-16 16:21:52 +12:00
John Mair
0dd660a379
fixed line numbering for cat (off by one), added a header for cat --ex
2011-08-14 21:12:14 +12:00
John Mair
38a9cb0785
added parentheses back in to shell.rb to remove warnings from tests
2011-08-07 08:14:13 +12:00
John Mair
ecf7024b94
cat command now displays red line numbers for --ex (to distinguish from whereami
2011-08-07 08:14:12 +12:00
John Mair
ca14cfc3dc
cat --ex now consistent with whereami output format
2011-08-01 15:58:45 +11:00
John Mair
1d7205352e
made cat --ex 1.8 compatible, cleaned up some code
2011-07-27 23:22:29 +12:00
John Mair
b3763f9382
added cat --ex option, so cat can display the source of an exception
2011-07-27 03:15:36 +12:00
John Mair
57b9c7a505
renamed requires_prefix option to use_prefix, and updated tests
2011-07-26 21:42:44 +12:00
Ryan Fitzgerald
7ece261723
implement command_prefix feature
2011-07-26 00:34:54 -07:00
Rob Gleeson
528a55bda0
Merge branch 'master' of github.com:banister/pry
2011-06-05 23:48:34 +01:00
Rob Gleeson
b2dcfba761
Don't cause warnings, Pry.
2011-06-05 23:48:15 +01:00
John Mair
eb9238ab2b
fixed .<shell commands> error message (dest local not found). Interpolation still not working yet
2011-06-02 04:24:15 +12:00
John Mair
1f3f6c6450
implemented system commands as regex command (in shell.rb), removed all traces of old system command code
2011-05-29 03:41:15 +12:00
Rob Gleeson
7051c12730
Quash (most) warnings emitted by -w.
...
Two remain:
- two from method_source gem.
2011-05-19 19:07:40 +01:00
Lee Jarvis
eef98c7145
use Slop for shell command
2011-05-16 11:23:17 +01:00
Mon ouïe
1750fe4d78
Got rid of CommandSet#name
2011-05-07 07:32:05 +02:00
John Mair
797b636f35
first start at reorganization and classification of commands
2011-05-01 22:25:37 +12:00