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

10 commits

Author SHA1 Message Date
John Mair
e53af39a93 Edit::MethodPatcher: remove unnecessary assignment 2013-01-16 15:50:45 +01:00
John Mair
5e3a3f068b Thread.current -> Pry.current 2013-01-15 23:29:23 +01:00
John Mair
e171029de0 Improve Pry::Command::Edit
* put all file and line location logic into FileAndLineLocator module
* pass explicit parameters to ExceptionPatcher and MethodPatcher (rather than just 'self')
2013-01-10 00:07:59 +01:00
John Mair
9cc95f9ec9 Try to simplify edit.rb
* Remove ContextLocator, inlining the class in edit.rb instead.
* Pass explicit parameters into MethodPatcher and ExceptionPatcher, rather than passing 'self'
  and using def_delegators

Hopefully this won't upset codeclimate too much!
2013-01-09 17:26:19 +01:00
John Mair
ef8b71a09c MethodPatcher#with_method_transactions: alias --> alias_method 2013-01-02 17:52:37 +01:00
John Mair
4d384737a7 bunch of random refactorings to different commands 2013-01-02 02:06:51 +01:00
John Mair
68758e49ab be brave, fully remove the 'edit-method' command
All functionality has been successfully moved to 'edit' command, with all tests passing.
2013-01-01 01:25:43 +01:00
John Mair
03d3d99211 edit command: extracted out ContextLocator class 2012-12-31 21:52:06 +01:00
John Mair
1a6077a0f9 edit command: extract out ExceptionPatcher, and clean up some code 2012-12-31 19:13:25 +01:00
John Mair
4cfb0dccae Merge remaining edit-method functionality into edit
edit now accepts the -p (runtime patch) switch, and can patch methods.
Coming soon: patching of classes and commands.

edit-method command has been left in codebase until 100% sure 'edit' is a full replacement.
2012-12-31 05:18:30 +01:00