From a7bba4f35c85af9797b9d70a52687c5f543cd611 Mon Sep 17 00:00:00 2001 From: dsisnero Date: Wed, 10 Sep 2014 12:45:02 -0600 Subject: [PATCH] fixed Pry::Editor#invoke_editor Pry::Editor doesn't have a class method called invoke_editor. Fixed to call on an initialized Pry::Editor instance --- lib/pry/commands/gem_open.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/commands/gem_open.rb b/lib/pry/commands/gem_open.rb index e21723aa..2f0b8d89 100644 --- a/lib/pry/commands/gem_open.rb +++ b/lib/pry/commands/gem_open.rb @@ -16,7 +16,7 @@ class Pry def process(gem) Dir.chdir(Rubygem.spec(gem).full_gem_path) do - Pry::Editor.invoke_editor(".", 0, false) + Pry::Editor.new(_pry_).invoke_editor(".", 0, false) end end