John Mair
9e1e35e5f4
removed input.rb and output.rb
2011-01-19 22:15:58 +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
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
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
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
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
00ec4c84d3
passing ALL tests now for 1.8 AND 1.9
2010-12-25 16:21:16 +13:00
John Mair
06aa0b9bbc
passing all tests. created a __binding__ method to return a binding unpolluted by Pry context, no longer using instance_eval, thanks to Mon_Ouie's trick. Added test for multi-line, added nest for class nesting
2010-12-25 15:36:39 +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
John Mair
aa03df81ca
* added tests (test.rb and test_helper.rb files)
...
* defined input/output accessors for Pry class to set global defaults for input and output (overridable by specific instances).
* Added reset_defaults method to set input/output and prompt lambdas back to defaults
* added output callback for 'cd' command
* changed eval_string += val to eval_string << val in Pry#r method, for performance reasons (no copy made with <<)
2010-12-24 01:16:04 +13:00
John Mair
ec8f9ec71f
Added out parameter to Output class, so can redirect standard output to any valid IO object. Renamed show_instance_method to show_imethod and method_doc to show_doc, and instance_method_doc to show_idoc, updated README.
2010-12-19 01:54:16 +13:00
John Mair
d2009e6de1
version bump 0.3.0, added method_doc and friends, added cat, updated README, adjusted Rakefile to use 0.2.0 method_source gem
2010-12-19 01:10:23 +13:00
John Mair
6491b0454f
added default of TOPLEVEL_BINDING to Pry.start()
2010-12-18 22:17:07 +13:00
John Mair
53e3301ad0
Version to 0.2.8; moved default_prompt and wait_prompt to Pry class. Instance prompts default to these values (can override by calling default_prompt/wait_prompt accessors on instance
2010-12-18 00:01:34 +13:00
John Mair
c6ee635460
Ripper for 1.9, RubyParser for 1.8. Fixed 1.8 inspect difficulties, added help for new commands, using method_source gem, updated README
2010-12-17 18:10:47 +13:00
John Mair
a31d9e31c1
nested pry, seems to create an anonymous object e.g pry (wait for new repl) then pry -- self changes!. Also exit_program seems broken!
2010-12-15 17:56:06 +13:00
John Mair
1471507b3a
added ls/cd/cd..
2010-12-15 15:21:13 +13:00
John Mair
23cb880422
version bump 0.2.5pre1, added valid_expression? using rue maneuver
2010-12-15 02:27:41 +13:00
John Mair
b243fa84b7
now object-based and added show_method command
2010-12-14 01:46:50 +13:00
John Mair
fa55956fdc
formatting
2010-12-12 23:31:04 +13:00
John Mair
b6394c8835
refactor
2010-12-12 13:35:07 +13:00
John Mair
3542106257
fixed formatting, refactored and cleaned up some code
2010-12-12 10:53:14 +13:00
John Mair
1d271ba47b
reverted lambdas to procs for prompts so that not force users to use the nested parameter if not want to
2010-12-12 02:18:51 +13:00
John Mair
09685f360c
* added new commands: help, status
...
* removed exit_at alias for jump_to, now only jump_to is valid
* updated documentation
* added another format for pry method, can now use 5.pry or pry(5)
2010-12-11 22:08:01 +13:00
John Mair
3ea896efba
cleaned up code (ugly comments)
2010-12-11 18:31:34 +13:00
John Mair
191eb63c6a
* version bump to 0.2.0
...
* added bunch of new nesting functionality
* added input/output accessors instead of binding to stdin/stdout
* added _ for last result
* changed command format (no more sigils)
2010-12-11 18:22:17 +13:00
John Mair
a25c40d2db
version bump to 0.1.3 and slight aesthetic changes to code
2010-12-11 18:19:55 +13:00
John Mair
4fcf81b976
refactored binding tests into binding_for() method
2010-12-09 04:39:42 +13:00
John Mair
9d7058d837
updated docs, added info, fixed typos
2010-12-09 03:57:50 +13:00
John Mair
890ca85030
rescuing SyntaxError as well in valid_expression?
2010-12-09 02:49:28 +13:00
John Mair
ed56b42dd9
updated readme
2010-12-09 01:06:49 +13:00
John Mair
62d1e31819
updated README
2010-12-09 00:39:06 +13:00
John Mair
2dc06b23c8
adding READMEs and CHANGELOG etc
2010-12-08 20:30:38 +13:00
John Mair
a3399b96ed
added # commands, all Pry commands begin with #
2010-12-08 13:19:55 +13:00
John Mair
53e40e9865
first commit
2010-12-07 21:11:35 +13:00