From be3b948034a8201dae1b85b6d6f4885339f87af3 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 17 Nov 2013 01:37:56 +0900 Subject: [PATCH] Fix Gem executable --- fzf | 2 +- test/test_fzf.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fzf b/fzf index 5fd1a71..258d367 100755 --- a/fzf +++ b/fzf @@ -845,5 +845,5 @@ class FZF end end#FZF -FZF.new(ARGV, $stdin).start if $0 == __FILE__ +FZF.new(ARGV, $stdin).start if ENV.fetch('FZF_EXECUTABLE', '1') == '1' diff --git a/test/test_fzf.rb b/test/test_fzf.rb index b33502d..6bff944 100644 --- a/test/test_fzf.rb +++ b/test/test_fzf.rb @@ -3,6 +3,7 @@ require 'minitest/autorun' $LOAD_PATH.unshift File.expand_path('../..', __FILE__) +ENV['FZF_EXECUTABLE'] = '0' load 'fzf' class TestFZF < MiniTest::Unit::TestCase