Fix calling rubygem executable on some platforms

This commit is contained in:
Z. Cliffe Schreuders
2017-08-18 23:31:57 -07:00
parent 799d729f2c
commit d6ced69c31

View File

@@ -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