From d6ced69c318fbc8a659fa0c451e62724e345193c Mon Sep 17 00:00:00 2001 From: "Z. Cliffe Schreuders" Date: Fri, 18 Aug 2017 23:31:57 -0700 Subject: [PATCH] Fix calling rubygem executable on some platforms --- lib/helpers/gem_exec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers/gem_exec.rb b/lib/helpers/gem_exec.rb index 0bb7311b4..f5b021802 100644 --- a/lib/helpers/gem_exec.rb +++ b/lib/helpers/gem_exec.rb @@ -14,7 +14,7 @@ class GemExec version = '>= 0' begin gem_path = Gem.bin_path(gem_name, gem_name, version) - unless File.file?(filename) + unless File.file?(gem_path) raise 'Gem.bin_path returned a path that does not exist.' end rescue Exception => e