summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisty De Meo <mistydemeo@github.com>2016-08-02 11:20:37 +1000
committerMisty De Meo <mistydemeo@github.com>2016-08-02 12:41:40 +1000
commit5d236a989f2f582800a754114224465784d662a8 (patch)
tree871d0b1a34ec6bceaffad31254368611af59baef
parent1f2d9c5958924abc96da10033d6fb4dc5aa49816 (diff)
downloadbundler-5d236a989f2f582800a754114224465784d662a8.tar.gz
doctor: gems not being installed isn't fatal
-rw-r--r--lib/bundler/cli.rb3
-rw-r--r--lib/bundler/cli/doctor.rb4
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 5e568995d0..a20c76b30f 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -479,9 +479,6 @@ module Bundler
Doctor scans the OS dependencies of each of the gems requested in the Gemfile. If
missing dependencies are detected, Bundler prints them and exits status 1.
Otherwise, Bundler prints a success message and exits with a status of 0.
-
- The bundle's gem dependencies must all be installed to run this command; if
- they are not, Bundler prints an error message and exits with a status of 2.
D
method_option "gemfile", :type => :string, :banner =>
"Use the specified gemfile instead of Gemfile"
diff --git a/lib/bundler/cli/doctor.rb b/lib/bundler/cli/doctor.rb
index df49315b45..b8aac1a320 100644
--- a/lib/bundler/cli/doctor.rb
+++ b/lib/bundler/cli/doctor.rb
@@ -66,9 +66,9 @@ module Bundler
not_installed = definition.missing_specs
raise GemNotFound if not_installed.any?
rescue GemNotFound
- Bundler.ui.error "This bundle's gems must be installed to run this command."
+ Bundler.ui.warn "This bundle's gems must be installed to run this command."
Bundler.ui.warn "Install missing gems with `bundle install`."
- exit 2
+ exit 0
end
definition.specs.each do |spec|