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

16 commits

Author SHA1 Message Date
John Mair
228b95f516 added new 'alias_command' and 'desc' commands to CommandBase; also made it so show_method comamnd without parameters does a show_method on __method__ 2011-01-26 23:13:46 +13:00
John Mair
f45e8bfbd0 finished updating and improving command API; now command API is as follows: command 'blah' do |x| puts x; end where x is a parameter passed to the command from the pry prompt 2011-01-18 03:38:09 +13:00
John Mair
ce3532e7ca added Pry.sessions and Pry#parent, for more info on pry sessions. Also completed more documentation 2011-01-14 01:35:46 +11:00
John Mair
ead507210d starting to write the behemoth that is README.markdown 2011-01-13 15:54:22 +11:00
John Mair
ebdcfdf145 saving before refactor to implement action block instead of action proc for commands. All tests passing in 1.8 and 1.9. 2011-01-12 18:08:56 +11:00
John Mair
70bc1222e2 changed get_prompt to select_prompt 2011-01-10 01:37:22 +13:00
John Mair
878ca414d7 adding back a bunch of tests, almost finished. Also renamed default_prompt to prompt and prompt to get_prompt, etc 2011-01-08 01:25:24 +13:00
John Mair
329f49afa1 updating tests to reflect new program organization/design 2011-01-05 16:23:11 +13:00
John Mair
42fe31e19e now clearing :val rather than :eval_string in commands so that current expression context is not destroyed when running pry command. Also added !pry command to enter a pry session 2010-12-31 04:01:11 +13:00
John Mair
609b09e553 updated docs 2010-12-29 22:14:12 +13:00
John Mair
4f92957e9b start at docs 2010-12-28 16:56:23 +13:00
John Mair
47d34790e7 combined default_prompt and wait_prompt into one prompt array called default_prompt; added ls_methods and ls_imethods commands, version bump to 0.4.0 2010-12-28 01:36:29 +13:00
John Mair
571612f4cf * completely merged Output and Commands classes, reduced Output to just a simple puts() method, a la Input and read()
* Commands now completely manages 'help', so that 'help' returns full command list/doco and 'help cmd' returns doc for just that command
* Turned out.session_start() and out.session_end() into hook methods: Pry.hooks :before_session, and :after_session
* Refactored Pry#initialize, so no longer individually setting accessors and hash options, instead using ConfigOptions to iterate over accessors and set their default value to Pry.send(accessor_name)
* TO DO: rewrite tests in terms of new program structure, since they're all failing due to major change (not because functionality is lacking but due to assumptions tests were making about program structure)
2010-12-27 23:56:55 +13:00
John Mair
630e9ef962 bringing most of output functionality into commands, since 99% of output is command output 2010-12-27 02:39:46 +13:00
John Mair
fecdf2d2b2 slight refactor, just code aesthetics and formatting 2010-12-26 03:18:30 +13:00
John Mair
6b3a6871fc split Pry into 3 more files: pry_class (for class methods) pry_instance (instance methods) and core_extensions, for extensions to Object (e.g pry and __binding__ methods) 2010-12-26 02:59:37 +13:00