From b855e33b655d9c0cfa07aab8e8622d68f0402ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 24 Jul 2019 13:00:46 +0200 Subject: [bundler/bundler] Add exclamation mark to method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To indicate that it can raise. Co-authored-by: Guillermo Guerrero Co-authored-by: David Rodríguez https://github.com/bundler/bundler/commit/584e841624 --- lib/bundler/cli/outdated.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb index e35031a4ff..5c8cd26d88 100644 --- a/lib/bundler/cli/outdated.rb +++ b/lib/bundler/cli/outdated.rb @@ -27,7 +27,7 @@ module Bundler end def run - check_for_deployment_mode + check_for_deployment_mode! gems.each do |gem_name| Bundler::CLI::Common.select_spec(gem_name) @@ -224,7 +224,7 @@ module Bundler Bundler.ui.info output_message.rstrip end - def check_for_deployment_mode + def check_for_deployment_mode! return unless Bundler.frozen_bundle? suggested_command = if Bundler.settings.locations("frozen")[:global] "bundle config unset frozen" -- cgit v1.2.3