From b9b17e3ac5a15a6b18f37804e526a9132bed2aae Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Fri, 12 Apr 2013 20:59:45 -0700 Subject: [PATCH] In general, no need for bundle exec since we call bundle/setup --- middleman-core/lib/middleman-core/cli/build.rb | 1 - middleman-core/lib/middleman-core/profiling.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/cli/build.rb b/middleman-core/lib/middleman-core/cli/build.rb index 1003c5b1..b6dedfcb 100644 --- a/middleman-core/lib/middleman-core/cli/build.rb +++ b/middleman-core/lib/middleman-core/cli/build.rb @@ -66,7 +66,6 @@ module Middleman::Cli if @had_errors && !@debugging cmd = "middleman build --verbose" - cmd = "bundle exec '#{cmd}'" if defined?(Bundler) self.shell.say "There were errors during this build, re-run with `#{cmd}` to see the full exception." end diff --git a/middleman-core/lib/middleman-core/profiling.rb b/middleman-core/lib/middleman-core/profiling.rb index faa17ea0..961da23b 100644 --- a/middleman-core/lib/middleman-core/profiling.rb +++ b/middleman-core/lib/middleman-core/profiling.rb @@ -34,7 +34,7 @@ module Middleman begin require 'ruby-prof' rescue LoadError - raise "To use the --profile option, you must 'gem install ruby-prof' (and include it in your Gemfile if running under bundle exec)" + raise "To use the --profile option, you must add the 'ruby-prof' gem to your Gemfile" end end