1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/spec
Barrett Ingram d6f3183875
Return with an error message if pry is started inside signal handler (#2206)
Mutex#synchronize will throw an error if called from code passed to
Signal.trap. This makes it impossible to start a working Pry session
inside a signal handler.

Currently, calling binding.pry inside signal handling code raises an
exception because Pry uses mutexes to solve various thread-safety
issues.

This commit updates Pry.start to detect whether we'll have the ability
to use Mutex#synchronize. If not, we'll print an error message and
return instead of raising an error.

https://github.com/pry/pry/issues/2191
2021-07-03 15:55:57 +03:00
..
commands Update Wtf spec to match non-printing chars wrapping 2020-09-07 13:02:16 -03: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 Make #strip_color only remove colors. 2020-10-05 21:57:25 -03:00
integration Fix bundler_spec test 2020-06-16 19:35:43 +05:30
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 Remove plugin system in favor of regular requires 2020-03-22 13:02:21 +01: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 Improve help listing for regex aliases 2020-03-22 14:43:20 -05: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 validates file presence in Config#default_rc_file (#2129) 2021-07-01 10:21:14 +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 helpers/documentation: don't colorize twice 2021-04-11 01:02:59 +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 Fix RegexpError: premature end of char-class 2020-10-05 21:57:30 -03:00
pry_spec.rb Return with an error message if pry is started inside signal handler (#2206) 2021-07-03 15:55:57 +03:00
pryrc_spec.rb Fix offences of the Style/FrozenStringLiteralComment cop 2019-05-08 00:14:20 +03:00
ring_spec.rb ring: change guard priority so that the value at index can be read 2021-06-28 22:33:20 +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 Add CI support for ruby 3 and fix broken spec 2021-01-02 18:06:21 -06: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