From 679b1340fc57ab159ba22628cc822964f5e3b3d1 Mon Sep 17 00:00:00 2001 From: Matthias Winkelmann Date: Thu, 1 Nov 2018 23:09:12 +0100 Subject: [PATCH] Fix undefined method `windows?' This fixes an incompatibility with current pry HEAD, which apparently retired Pry::Platform. I fear this fix by itself would again be incompatible with current pry *release* version. But I don't know enough about the respective releases processes, and which strategy you tend to prefer (set dependency to next pry release/```respond_to?```/etc.). Feel free to close and/or adapt as you see fit. --- lib/pry-rescue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry-rescue.rb b/lib/pry-rescue.rb index 322c099..4c1f665 100644 --- a/lib/pry-rescue.rb +++ b/lib/pry-rescue.rb @@ -12,7 +12,7 @@ end case ENV['PRY_PEEK'] when nil - PryRescue.peek_on_signal('QUIT') unless Pry::Helpers::BaseHelpers.windows? + PryRescue.peek_on_signal('QUIT') unless Pry::Helpers::Platform.windows? when '' # explicitly disable QUIT. else