Skip to content

Commit

Permalink
Tweak message to indicate installed gems
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Sep 30, 2020
1 parent 18c4aff commit 88fe4f7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bundler/lib/bundler/cli/common.rb
Expand Up @@ -23,7 +23,7 @@ def self.output_fund_metadata_summary

return if count.zero?

intro = count > 1 ? "#{count} gems you directly depend on are" : "#{count} gem you directly depend on is"
intro = count > 1 ? "#{count} installed gems you directly depend on are" : "#{count} installed gem you directly depend on is"
message = "#{intro} looking for funding.\n Run `bundle fund` for details"
Bundler.ui.info message
end
Expand Down
2 changes: 1 addition & 1 deletion bundler/lib/bundler/cli/fund.rb
Expand Up @@ -27,7 +27,7 @@ def run
end

if fund_info.empty?
Bundler.ui.info "None of the gems you directly depend on are looking for funding."
Bundler.ui.info "None of the installed gems you directly depend on are looking for funding."
else
Bundler.ui.info fund_info.join("\n")
end
Expand Down
2 changes: 1 addition & 1 deletion bundler/spec/commands/fund_spec.rb
Expand Up @@ -36,7 +36,7 @@

bundle "fund"

expect(out).to include("None of the gems you directly depend on are looking for funding.")
expect(out).to include("None of the installed gems you directly depend on are looking for funding.")
end

describe "with --group option" do
Expand Down
12 changes: 6 additions & 6 deletions bundler/spec/install/gems/fund_spec.rb
Expand Up @@ -11,7 +11,7 @@
gem 'rack-obama'
G

expect(out).to include("2 gems you directly depend on are looking for funding.")
expect(out).to include("2 installed gems you directly depend on are looking for funding.")
end

it "displays the singular fund message after installing" do
Expand All @@ -21,7 +21,7 @@
gem 'rack-obama'
G

expect(out).to include("1 gem you directly depend on is looking for funding.")
expect(out).to include("1 installed gem you directly depend on is looking for funding.")
end
end

Expand Down Expand Up @@ -61,7 +61,7 @@
gem 'also_has_funding', :git => '#{lib_path("also_has_funding-1.0")}'
G

expect(out).to include("1 gem you directly depend on is looking for funding.")
expect(out).to include("1 installed gem you directly depend on is looking for funding.")
end

it "displays the fund message if repo is updated" do
Expand All @@ -85,7 +85,7 @@
gem 'also_has_funding', :git => '#{lib_path("also_has_funding-1.1")}'
G

expect(out).to include("1 gem you directly depend on is looking for funding.")
expect(out).to include("1 installed gem you directly depend on is looking for funding.")
end

it "displays the fund message if repo is not updated" do
Expand All @@ -100,10 +100,10 @@
G

bundle :install
expect(out).to include("1 gem you directly depend on is looking for funding.")
expect(out).to include("1 installed gem you directly depend on is looking for funding.")

bundle :install
expect(out).to include("1 gem you directly depend on is looking for funding.")
expect(out).to include("1 installed gem you directly depend on is looking for funding.")
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion bundler/spec/update/gems/fund_spec.rb
Expand Up @@ -23,7 +23,7 @@
end

it "displays fund message" do
expect(out).to include("2 gems you directly depend on are looking for funding.")
expect(out).to include("2 installed gems you directly depend on are looking for funding.")
end
end
end

0 comments on commit 88fe4f7

Please sign in to comment.