Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Summarize the number of using gems #3872

Merged
merged 1 commit into from
Jul 29, 2015

Conversation

hbd225
Copy link

@hbd225 hbd225 commented Jul 22, 2015

For this issue rubygems/bundler-features#33
Thanks for making great gem :)

@@ -105,6 +105,7 @@ def run
Installer.install(Bundler.root, definition, options)
Bundler.load.cache if Bundler.app_cache.exist? && options["cache"] && !Bundler.settings[:frozen]

Bundler.ui.confirm "Using #{Installer.using_gems.size} already installed gems" if Installer.using_gems?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just use Installer.using_gems.size > 0?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@hbd225 hbd225 force-pushed the hbd225/summarize-all-the-using-gems branch from 220c5ef to 4698ca6 Compare July 26, 2015 08:26
@segiddins
Copy link
Member

👍

@hbd225 hbd225 force-pushed the hbd225/summarize-all-the-using-gems branch from 4698ca6 to 0fa607d Compare July 26, 2015 08:33
@indirect
Copy link
Member

@homu r+

@homu
Copy link
Contributor

homu commented Jul 29, 2015

📌 Commit 0fa607d has been approved by indirect

@homu
Copy link
Contributor

homu commented Jul 29, 2015

⌛ Testing commit 0fa607d with merge f2e4584...

homu added a commit that referenced this pull request Jul 29, 2015
…ndirect

Summarize the number of using gems

For this issue rubygems/bundler-features#33
Thanks for making great gem :)
@homu
Copy link
Contributor

homu commented Jul 29, 2015

☀️ Test successful - status

@homu homu merged commit 0fa607d into rubygems:2-0-dev Jul 29, 2015
@coilysiren coilysiren modified the milestone: 2.0 — Breaking Changes Oct 9, 2016
bundlerbot added a commit that referenced this pull request Jul 5, 2017
[2.0] Suppress `Using …` messages during installation when a version has not changed

### What was the end-user problem that led to this PR?

The problem was that `bundle install` output can get very verbose, even when Bundler is not doing anything.

See rubygems/bundler-features#33.

### Was was your diagnosis of the problem?

My diagnosis was that bundler was printing a bunch of `Using name (version)` messages, even when we were already using that gem at the same version.

### What is your fix for the problem, implemented in this PR?

My fix is to introduce a feature flag (enabled by default on 2.0), that will only print those extra `Using` messages when `--verbose` is passed, and will continue to print them when there was an old version we can tell users about. Note that we still print a message when installing a gem for the first time.

### Why did you choose this fix out of the possible options?

I chose this fix because it was essentially what had been done in #3872, and allows for easy feature-flagging.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants