Commit Graph

22 Commits

Author SHA1 Message Date
John Mair d0cf3ef153 version 0.4.5 fixed show_method command 2011-01-27 22:37:43 +13:00
John Mair 8682e269eb Version 0.4.2
* Added alias_command and desc commands to Pry::CommandBase
* Added pry and version tasks to Rakefile to start a pry session and show current version
* Added tests for alias_command and desc commands
* made it so ls_methods and ls_imethods return sort arrays
* made it so show_method without a paramater displays current method, if exists, who displays error if not
2011-01-27 07:05:40 +13:00
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 548b4f82d8 added import_from, delete, run to command API. Also added examples, added more tests, and changed the way that commands work using split instead of regex captures. Also added output and trget methods to Pry::CommandBase 2011-01-21 03:41:41 +13:00
John Mair 7fa4750650 made ls_methods and ls_imethods commands now show all public/private/protected methods - not just public 2011-01-19 19:22:24 +13:00
John Mair b95b5e64b5 Regex working 2011-01-18 16:40:28 +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 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 8e006829fe got CommandBase working; just need to migrate old commands into a new commands.rb and move CommandBase into command_base.rb 2011-01-11 13:14:25 +11:00
John Mair a832451e9e implementing command dsl 2011-01-11 11:01:48 +11:00
John Mair 4ea554fcfd added completion (taken from irb). Remember to remove hardcoding expecation of command_info from Pry#re() method, need to turn command addition into DSL 2011-01-11 00:54:17 +11: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 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 7135d5179e minor changes: added Pry instance (__pry__) to status, changed _pry_ to __pry__, minor aesthetic changes..decreased ljust() for help, changed cd .. match in command_info to regex 2010-12-28 00:45:47 +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 f11806d2da Save before major refactor to split up Pry into pry_class and pry_instance 2010-12-26 02:51:34 +13:00
John Mair 294d46c02a commands now separated and pluggable as a hash, defined in commands.rb 2010-12-26 01:05:48 +13:00
John Mair 5ae3b69667 all tests passing, new functionality in form of: hash args to Pry.start() for :input and :output 2010-12-24 21:30:51 +13:00