From cbce214e7d726341686279414a20353176d50b40 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 22 Mar 2012 22:21:23 -0400 Subject: [PATCH] work without bundle exec --- bin/flowerbox | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/flowerbox b/bin/flowerbox index 441b0d6..6406a5b 100755 --- a/bin/flowerbox +++ b/bin/flowerbox @@ -1,5 +1,11 @@ #!/usr/bin/env ruby +if !ENV['BUNDLE_GEMFILE'] && File.file?('Gemfile') + require 'bundler/setup' + + $: << File.expand_path('../../lib', __FILE__) +end + require 'flowerbox' require 'thor'