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

Added quiet flag to inline bundler #6828

Merged
1 commit merged into from
Dec 13, 2018
Merged

Added quiet flag to inline bundler #6828

1 commit merged into from
Dec 13, 2018

Conversation

ipepe
Copy link
Contributor

@ipepe ipepe commented Dec 5, 2018

Thanks so much for the contribution!
To make reviewing this PR a bit easier, please fill out answers to the following questions.

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

I'm using inline bundler on my CI minitest file. I wanted to make it quiet so output is clean and meaningful.

What was your diagnosis of the problem?

Bundler inline's gemfile method only accepted :ui option.

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

I added quiet option flag to gemfile method.

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

I chose this fix because it looked simple and clean.

@welcome
Copy link

welcome bot commented Dec 5, 2018

Thanks for opening a pull request and helping make Bundler better! Someone from the Bundler team will take a look at your pull request shortly and leave any feedback. Please make sure that your pull request has tests for any changes or added functionality.

We use Travis CI to test and make sure your change works functionally and uses acceptable conventions, you can review the current progress of Travis CI in the PR status window below.

If you have any questions or concerns that you wish to ask, feel free to leave a comment in this PR or join our #bundler channel on Slack.

For more information about contributing to the Bundler project feel free to review our CONTRIBUTING guide

@colby-swandale
Copy link
Member

This PR will need a test before we will consider merging it.

@ipepe
Copy link
Contributor Author

ipepe commented Dec 13, 2018

👍 I'm on it!

@ipepe
Copy link
Contributor Author

ipepe commented Dec 13, 2018

How do You like it now @colby-swandale ?

Copy link
Member

@colby-swandale colby-swandale left a comment

Choose a reason for hiding this comment

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

This is nearly ready to merge, just some small minor details need fixing.

@@ -36,6 +36,7 @@ def gemfile(install = false, options = {}, &gemfile)

opts = options.dup
ui = opts.delete(:ui) { Bundler::UI::Shell.new }
ui.level = "silent" if opts.delete(:quiet) { false }
Copy link
Member

Choose a reason for hiding this comment

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

We don't need to set a default value here.

RUBY

expect(out).to be_empty
expect(exitstatus).to be_zero if exitstatus
Copy link
Member

Choose a reason for hiding this comment

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

This assertion can be removed, this test only cares about the quiet flag.

@ipepe
Copy link
Contributor Author

ipepe commented Dec 13, 2018

some small minor details fixed!

@colby-swandale
Copy link
Member

Looks great! Thank you!

@bundlerbot r+

ghost pushed a commit that referenced this pull request Dec 13, 2018
6828: Added quiet flag to inline bundler r=colby-swandale a=ipepe

Thanks so much for the contribution!
To make reviewing this PR a bit easier, please fill out answers to the following questions.

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

I'm using inline bundler on my CI minitest file. I wanted to make it quiet so output is clean and meaningful.

### What was your diagnosis of the problem?

Bundler inline's gemfile method only accepted :ui option.

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

I added quiet option flag to gemfile method.

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

I chose this fix because it looked simple and clean.


Co-authored-by: Patryk Ptasiński <[email protected]>
@ipepe
Copy link
Contributor Author

ipepe commented Dec 13, 2018

Thank You

@ghost
Copy link

ghost commented Dec 13, 2018

Build succeeded

@ghost ghost merged commit ecaefcb into rubygems:master Dec 13, 2018
@colby-swandale colby-swandale added this to the 2.1.0 milestone Feb 25, 2019
@deivid-rodriguez deivid-rodriguez removed this from the 2.1.0 milestone Dec 13, 2019
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.

3 participants