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

Fix specs with rubygems master installed globally #7147

Merged
4 commits merged into from
May 2, 2019

Conversation

deivid-rodriguez
Copy link
Member

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

The problem was if you have rubygems's master installed globally, bundler specs no longer pass.

What was your diagnosis of the problem?

My diagnosis was that having rubygems master installed, installs bundler's master as a default gem. That actually makes bundler behave better. In particular, bundle show and bundle licenses start properly handling the bundler gem itself.

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

My fix is to change bundler's code to fix this specs in every situation, and not only when the bundler version being tested is also installed as a default gem.

NOTE: I also included some changes to unify bundle show deprecation specs in the file that tests all deprecations.

@deivid-rodriguez deivid-rodriguez changed the title Fix specs with bundler master installed globally Fix specs with rubygems master installed globally Apr 28, 2019
@deivid-rodriguez deivid-rodriguez force-pushed the fix_specs_with_bundler_master_installed_globally branch from c6cb2dd to 3717fa1 Compare April 28, 2019 11:19
@deivid-rodriguez
Copy link
Member Author

deivid-rodriguez commented May 2, 2019

This fixes several realworld issues, like bundle not being able to show certain informations about itself, like website or license. So I'm merging it!

@bundlerbot r+

ghost pushed a commit that referenced this pull request May 2, 2019
7147: Fix specs with rubygems master installed globally r=deivid-rodriguez a=deivid-rodriguez

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

The problem was if you have rubygems's master installed globally, bundler specs no longer pass.

### What was your diagnosis of the problem?

My diagnosis was that having rubygems master installed, installs bundler's master as a default gem. That actually makes bundler behave better. In particular, `bundle show` and `bundle licenses` start properly handling the `bundler` gem itself.

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

My fix is to change bundler's code to fix this specs in every situation, and not only when the bundler version being tested is also installed as a default gem.

NOTE: I also included some changes to unify `bundle show` deprecation specs in the file that tests all deprecations.

Co-authored-by: David Rodríguez <[email protected]>
@ghost
Copy link

ghost commented May 2, 2019

Build succeeded

@ghost ghost merged commit 3717fa1 into master May 2, 2019
@ghost ghost deleted the fix_specs_with_bundler_master_installed_globally branch May 2, 2019 14:37
This pull request was closed.
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.

1 participant