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

8 commits

Author SHA1 Message Date
John Mair
ed52bfdb74 reload-code (with no args) should reload 'current file'
This should fix #920.
Also added a guard for !code_object.source_file, this existed on 0.9.12
but for some reason was not on master.
2013-05-10 02:48:55 +02:00
John Mair
2b8468a3b6 reload-code improve docs for mean old yozzy 2013-01-29 18:16:47 +01:00
John Mair
2e40eb24c6 re-add reload-method as an alias for reload-code
Turns out some people actually used reload-method, so we re-add it to avoid them getting angry
2013-01-29 15:25:05 +01:00
John Mair
7ae55b3a8a Pry::CodeObject: remove unnecessary 'target' parameter
Since we can access 'target' via _pry_.current_context

* We also update a few files (code_collector/show_info) that need to be updated for this change
2013-01-11 20:47:46 +01:00
Kyrylo Silin
256f35422a Prettify command descriptions, switches and stuff
Wrap command descriptions to 80 characters. Convert some string options
to symbols (where possible). Align options in code. Remove dots in the
end of switch descriptions.

Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
2013-01-09 22:23:19 +02:00
John Mair
f1654d8603 Allow 'edit self' and 'reload-code self'
This didn't work due to a quirk in Pry::CodeObject.lookup() which purposely ignores 'expressions'
as they can be methods, which are dangerous to lookup. We now make an exception when the expression is 'self'

This code needs to be refactored as we have ridiculosu method names like  `def variable_or_constant_or_self?`
and we have methods like this in a couple of places. Refactor pls.
2013-01-05 21:17:07 +01:00
John Mair
6254b8a0a0 reload-code: use obj_name (rather than code_object) in output strings 2013-01-05 20:37:37 +01:00
John Mair
38e49b16d3 renamed reload-method to reload-code and extended functionality
Should now be able to reload any valid code object, including: methods, modules, commands, procs, etc
2013-01-05 20:33:27 +01:00