pry--pry/spec
Robert Gleeson 43b80755e6 change Pry.view_clip() to optionally drop or include hex value.
change 2nd argument of Pry.view_clip() to accept a Hash of options
with two keys: max_length (default 60) and id (default false)

the custom prompt proc's in lib/pry.rb clip the object shown to
look better visually. this change still supports that behavior but
also adds the option to include a hex representation of the object's
ID by including id: true.

@rf- suggested supporting both (with & without id) to be able to
keep printer proc's pretty but also support other code that's okay
with printing inspects that are hex-y, like the Pry::CLIPPED_PRINT.

also changes Pry::CLIPPED_PRINT to print return values with a hex
ID included since it is a bit different from prompt proc's.
2014-03-16 08:25:04 +01:00
..
commands allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
fixtures spec/code_spec.rb: add more tests for $LOAD_PATH behaviour 2013-11-23 22:13:54 +02:00
helpers allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
method allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
regression use HEREDOC's to improve readability of eval string. 2014-03-14 07:31:17 +01:00
spec_helpers Fix repl_tester to access correct config object 2014-01-28 22:42:41 +09:00
Procfile Reword foreman instructions without 'cd' 2013-02-08 00:29:02 -06:00
cli_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
code_object_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
code_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
command_helpers_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
command_integration_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
command_set_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
command_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
completion_spec.rb lazy load `Pry::InputCompleter` or `Pry::BondCompleter` 2014-03-16 04:24:12 +01:00
config_spec.rb alias clear as 'refresh'. 2014-03-15 03:05:19 +01:00
control_d_handler_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
documentation_helper_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
editor_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
exception_whitelist_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
helper.rb alias clear as 'refresh'. 2014-03-15 03:05:19 +01:00
history_array_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
history_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
hooks_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
indent_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
method_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
pager_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
prompt_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
pry_defaults_spec.rb change Pry.view_clip() to optionally drop or include hex value. 2014-03-16 08:25:04 +01:00
pry_output_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
pry_repl_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
pry_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
pryrc_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
run_command_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
sticky_locals_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
syntax_checking_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00
wrapped_module_spec.rb allow for tests to be run with ease. 2014-03-14 05:31:24 +01:00