summaryrefslogtreecommitdiff
path: root/lib/bundler/cli
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-06-14 10:20:25 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-06-14 10:22:37 -0500
commit922ef03904f014276af66c488cee91d245905432 (patch)
tree3f30029577458cfa450eb2464c3352e67b7fe533 /lib/bundler/cli
parent65aca787cc329c8c655eaccedf0ea50fa5a47153 (diff)
downloadbundler-922ef03904f014276af66c488cee91d245905432.tar.gz
[Pristine] Raise when trying to pristine a missing gemseg-pristine-specific-gems
Diffstat (limited to 'lib/bundler/cli')
-rw-r--r--lib/bundler/cli/pristine.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/cli/pristine.rb b/lib/bundler/cli/pristine.rb
index ccf970eae0..cfd90da34b 100644
--- a/lib/bundler/cli/pristine.rb
+++ b/lib/bundler/cli/pristine.rb
@@ -8,6 +8,8 @@ module Bundler
end
def run
+ CLI::Common.ensure_all_gems_in_lockfile!(@gems)
+
Bundler.load.specs.each do |spec|
next if spec.name == "bundler" # Source::Rubygems doesn't install bundler
next if !@gems.empty? && !@gems.include?(spec.name)