Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Make the Bundler warning less scary and more friendly #275

Merged
merged 1 commit into from Apr 12, 2012
Jump to file or symbol
Failed to load files and symbols.
+8 −1
Split
View
@@ -159,7 +159,14 @@ def show
#
def verify_bundler_presence
if File.exists?('Gemfile') && !ENV['BUNDLE_GEMFILE']
- ::Guard::UI.warning 'You are using Guard outside of Bundler, this is dangerous and may not work. Using `bundle exec guard` is safer.'
+ ::Guard::UI.info <<EOT
+
+Guard here! It looks like your project has a Gemfile, yet you are running
+`guard` outside of Bundler. If this is your intent, feel free to ignore this
+message. Otherwise, consider using `bundle exec guard` to ensure your
+dependencies are loaded correctly.
+(You can run `guard` with --no-bundler-warning to get rid of this message.)
+EOT
end
end