John Mair
14b7eb5c65
show-source dependency on ruby18_source_location
...
* necessary to bring new show-source/show-doc functionality to ruby 1.8
* pry now also auto-requires ruby18_source_location if it's available
2012-04-18 18:20:36 +12:00
John Mair
c32f00989b
in tests: show-method -> show-source
2012-04-18 11:42:15 +12:00
misfo
cd8ca7b82b
Allow Pry.config.editor
procs that take a reloading
arg
...
This allow the user to implement an editor proc that only blocks the Pry
process if Pry is going to reload code when it returns:
Pry.config.editor = proc do |file, line, reloading|
"subl #{'--wait' if reloading} #{file}:#{line}"
end
2012-04-03 21:48:09 -05:00
Conrad Irwin
d028beb813
Regex-escape method names in regexes [ Fixes #503 ]
2012-03-31 14:06:09 -07:00
Conrad Irwin
40945bfbdf
Fix show-method in the face of overridden method method
2012-02-28 07:08:07 -08:00
Ryan Fitzgerald
e7fed21ded
refactor cat
2012-01-07 22:01:15 -08:00
Conrad Irwin
701436922c
A few missing trues
2011-12-26 14:10:11 +00:00
Jordon Bedwell
f5a01141ea
Ask Tempfile to unlink when we Tempfile#close.
...
Fixes : #375
Signed-off-by: Jordon Bedwell <jordon@envygeeks.com>
2011-12-26 07:30:24 -06:00
Conrad Irwin
560a6cbd79
Ensure show-method -h works in ruby-1.9.2 [ fixes #374 ]
2011-12-13 23:09:32 -08:00
Conrad Irwin
91a249845e
Handle -m/-M correctly [ Fixes #365 ]
2011-12-07 22:36:16 -08:00
Conrad Irwin
13819b84db
Remove reference to deleted helper [ Fixes #359 ]
2011-12-03 19:03:31 -08:00
Ryan Fitzgerald
aee2eae8e5
use a better prefix for tempfiles ( fixes #331 )
2011-11-06 01:09:11 -07:00
Ryan Fitzgerald
509e908688
modify edit-method -p to support aliased methods that use super
2011-10-15 22:07:52 -07:00
Conrad Irwin
f72228bd1c
Allow methody objects to accept more Ruby.
...
In particular this disables shell-words so quotes and spaces are
preserved.
2011-10-15 01:35:24 -07:00
Conrad Irwin
bf85c62c42
Share argument parsing code for methody commands
2011-10-15 01:35:24 -07:00
Conrad Irwin
0e904ada39
edit --in can take a range, added some more tests.
2011-09-26 00:45:49 -07:00
Conrad Irwin
bf3243f8f9
Add edit --in (Issue 275)
...
(Really just testing travis :p)
2011-09-21 11:07:57 -07:00
Conrad Irwin
4db25f1b8d
Always edit a blank file with -t
2011-09-14 15:51:56 -07:00
John Mair
5af4111846
added tests for cat --ex N and edit --ex N, all passing except on RBX
2011-09-14 05:43:57 +12:00
Ryan Fitzgerald
7f9adcb40c
allow Pry.config.editor to return nil for testing purposes
2011-09-12 00:57:17 -07:00
Conrad Irwin
e0aaef6d67
Use temp_file instead of broken manual code
2011-09-12 00:25:54 -07:00
Ryan Fitzgerald
423fc48fa1
fix edit-method tests for rbx
2011-09-11 21:30:32 -07:00
Ryan Fitzgerald
c331b14063
partial test coverage for edit-method
2011-09-10 22:56:13 -07:00
Conrad Irwin
700adfbfb4
Refactor and test the "edit" command.
2011-09-10 13:02:32 -07:00
Gosha Arinich
2b70a27f1f
show-method and show-doc now accept multiple method names
...
fixes
2011-08-27 17:21:01 +03:00
Conrad Irwin
a5ca8e602f
Fix syntax error in tests.
2011-08-02 02:01:25 -07:00
John Mair
82f348ac04
added tests for intrrospection and input commands to work with unified one-indexing (show-input, amend-line, play, etc)
2011-06-17 01:51:32 +12:00
John Mair
597f1cc68c
reorganized command tests into test_default_commands/ folder with separate test files for each command set
2011-06-03 03:26:49 +12:00