lib/guard/rails/runner.rb in guard-rails-0.5.1 vs lib/guard/rails/runner.rb in guard-rails-0.5.2

- old
+ new

@@ -36,12 +36,11 @@ def build_command command = build_cli_command if options[:CLI] command ||= build_zeus_command if options[:zeus] command ||= build_rails_command - # zeus will check if it runs inside bundler, remove the flag here - "env -u RUBYOPT sh -c 'cd \"#{@root}\" && #{command} &'" + "sh -c 'cd \"#{@root}\" && #{command} &'" end def environment rails_env = if options[:zeus] nil @@ -87,10 +86,11 @@ def build_zeus_command zeus_options = [ options[:zeus_plan] || 'server', ] - "zeus #{zeus_options.join(' ')} #{build_options}" + # zeus will check if it runs inside bundler, remove the flag here + "RUBYOPT='' zeus #{zeus_options.join(' ')} #{build_options}" end def build_rails_command "rails server #{build_options}" end