1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/spec
Kyrylo Silin ff6567d3f4 method: delegate internally-used methods
Improves on #2086 (Directly delegate internally-used Method methods)
(we add tests here)

Description by @michaelherold

> Relying on `method_missing` for all delegation to `Method` methods means
> that it's easier for the wrong method to be called when gems mess with
> `Object` or other such core areas.

> See https://github.com/ankane/ownership/pull/3 for an example of this.

> By defining explicit delegators, at least for the methods that we use
> internally withing Pry, we can eliminate this issue and be more
> communicative around the methods on the `Pry::Method` class.

I omitted the `source_location` changes because they need some clarification.
2020-03-21 16:53:58 +08:00
..
commands Fix whereami -c when class definition is not beginning of line 2019-12-29 22:20:34 -06:00
config MemoizedValue memoizes nil results (#2053) 2019-06-03 11:09:31 +03:00
fixtures spec/commands/show_{doc,source}: refactor to be order independent 2019-06-15 18:28:00 +03:00
helpers Fix offences of the Style/FrozenStringLiteralComment cop 2019-05-08 00:14:20 +03:00
integration spec/integration/bundler: fix the "no dependencies" warning 2020-03-21 10:48:23 +08:00
method rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
support Remove all remaining .shoulds from the tests 2019-05-30 23:25:18 -05:00
block_command_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
class_command_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
cli_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
code_object_spec.rb spec/code_object: fix broken 'class method lookup' test 2019-06-15 18:35:18 +03:00
code_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
color_printer_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
command_integration_spec.rb Attempt to allow pasting multiple lines with leading dots (#2060) 2019-07-11 16:54:10 +03:00
command_set_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
command_spec.rb Attempt to allow pasting multiple lines with leading dots (#2060) 2019-07-11 16:54:10 +03:00
command_state_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
completion_spec.rb Fix completion_spec on MRI 2.7.0 2020-03-20 13:33:39 +01:00
config_spec.rb spec/config: fix flaky test 2019-06-09 18:27:59 +03:00
control_d_handler_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
documentation_helper_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
editor_spec.rb spec/editor: make specs order-independent (and sturdier) 2019-06-15 18:34:37 +03:00
env_spec.rb Add Pry::Env 2019-06-09 17:11:24 +03:00
exception_handler_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
history_spec.rb Close #2054 - prefer XDG_* paths (if set) 2019-06-05 18:29:45 +03:00
hooks_spec.rb Fix offences of the Style/FrozenStringLiteralComment cop 2019-05-08 00:14:20 +03:00
indent_spec.rb Merge Pry::Terminal with Pry::Output 2019-05-26 17:11:42 +03:00
method_spec.rb method: delegate internally-used methods 2020-03-21 16:53:58 +08:00
output_spec.rb Use Pry::Env where it makes sense 2019-06-09 17:47:23 +03:00
pager_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
prompt_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
pry_defaults_spec.rb spec/pry_defaults: silence unwanted deprecation warnings 2019-05-28 21:17:25 +03:00
pry_output_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
pry_repl_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
pry_spec.rb Use Pry::Env where it makes sense 2019-06-09 17:47:23 +03:00
pryrc_spec.rb Fix offences of the Style/FrozenStringLiteralComment cop 2019-05-08 00:14:20 +03:00
ring_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
run_command_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
spec_helper.rb spec_helper: reset Pry defaults after each test 2019-06-15 18:35:18 +03:00
sticky_locals_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
syntax_checking_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
system_command_handler_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
unrescued_exceptions_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
warning_spec.rb rubocop: enable the Style/FrozenStringLiteralComment cop 2019-05-08 00:13:17 +03:00
wrapped_module_spec.rb Fix offences of the Style/FrozenStringLiteralComment cop 2019-05-08 00:14:20 +03:00