diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-09-27 12:26:20 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-12 16:46:30 +0200 |
commit | 78ae7d9ee81cf43257ff9f8e75c05b00f7c80196 (patch) | |
tree | cd8dd91dd3b18497411f11563de254acdb51c7d8 | |
parent | 17e71ea01291b2f9ee2417c31bbe95efb9602767 (diff) | |
download | bundler-78ae7d9ee81cf43257ff9f8e75c05b00f7c80196.tar.gz |
Remove outdated header
I don't think it adds much to the output?
-rw-r--r-- | lib/bundler/cli/outdated.rb | 12 | ||||
-rw-r--r-- | spec/commands/outdated_spec.rb | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb index e97501d692..fd0ec5a3a3 100644 --- a/lib/bundler/cli/outdated.rb +++ b/lib/bundler/cli/outdated.rb @@ -98,10 +98,6 @@ module Bundler if outdated_gems.empty? display_nothing_outdated_message else - unless options[:parseable] - Bundler.ui.info(header_outdated_message) - end - if options_include_groups outdated_gems.group_by {|g| g[:groups] }.sort.each do |groups, gems| contains_group = groups.split(", ").include?(options[:group]) @@ -139,14 +135,6 @@ module Bundler "#{group_text}#{groups.split(",").size > 1 ? "s" : ""} \"#{groups}\"" end - def header_outdated_message - if options[:pre] - "Outdated gems included in the bundle (including pre-releases):" - else - "Outdated gems included in the bundle:" - end - end - def header_group_message(groups) if groups.empty? "===== Without group =====" diff --git a/spec/commands/outdated_spec.rb b/spec/commands/outdated_spec.rb index 9ae74f4c31..844781b515 100644 --- a/spec/commands/outdated_spec.rb +++ b/spec/commands/outdated_spec.rb @@ -517,7 +517,6 @@ RSpec.describe "bundle outdated" do G bundle "outdated" - expect(out).to include("Outdated gems included in the bundle:") expect(out).to include("laduradura (newest 5.15.3, installed 5.15.2, requested = 5.15.2)") end end @@ -527,7 +526,6 @@ RSpec.describe "bundle outdated" do shared_examples_for "version update is detected" do it "reports that a gem has a newer version" do subject - expect(out).to include("Outdated gems included in the bundle:") expect(out).to include("activesupport (newest") expect(out).to_not include("ERROR REPORT TEMPLATE") end |