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
Robert Gleeson
7f0e6f999f update lib/pry/commands/code_collector.rb to use _pry_.config.gist.inspecter.call 2014-02-07 02:03:58 +01:00
John Mair
f7a11a6d81 v0.9.11.1 bugfix
* forgot to remove 'no_arg' from Pry::Command::CodeCollector, this method no longer exists
and so 'gist' (when not given any params) would break. Replaced no_arg with empty string ""
so that 'gist' gists current object/method by default.
2013-01-16 16:35:01 +01:00
John Mair
0531b8a7bd Add deprecated_commands API
And rewrite edit-method / show-command to use this API.
2013-01-15 21:48:16 +01:00
John Mair
08ac190bcb Pry::Command::CodeCollector: add #file attribute
This allows callers to know that CC is working on a file rather than ruby code.
2013-01-15 18:29:43 +01:00
John Mair
21b5337307 Improved Pry::CodeCollector so it accept multiple -i/o ranges
i.e play -i 1..3 -i 5..9 now works
2013-01-12 22:29:32 +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
☈king
889ace40b1 Downgrade each_with_object to manual accumulation 2013-01-08 14:37:37 -06:00
John Mair
4a059fd3a6 Pry::Command::CodeCollector: replace module inclusion with delegation
And implement play and save-file using the new delegator. 'gist' still needs
to be re-implemented using CodeCollector.

************
TODO:
**************
Couldn't write a test for `play --lines 4..5` with implied target.eval("__FILE__") parameter,
need to come up with a decent test.
2013-01-09 01:42:09 +01:00
John Mair
439c5c6811 Reimplemented play, save-file with Pry::Command::CodeCollector
Pry::Command::CodeCollector is a mixin that extracts out shared
functionality from play, save-file and gist. Gist is yet to be
reimplemented.
2013-01-09 01:42:08 +01:00