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

Enable gemfile flag for bundle lock #6748

Merged
1 commit merged into from
Oct 18, 2018
Merged

Enable gemfile flag for bundle lock #6748

1 commit merged into from
Oct 18, 2018

Conversation

lauratpa
Copy link
Contributor

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

bundle lock does not accept the --gemfile flag that allows to define a custom Gemfile.

What was your diagnosis of the problem?

The option is not defined as available.

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

Adds the option to the list available options for lock command.

I wasn't sure though, in which order to display this the new option. I just added it where it felt the most natural to me, but please let me know if there is a better order.

Also do you think it would make sense to add this flag to the other commands as well?
For example: add, remove, console, outdated, clean?
For now it is available for: check, exec, install, update, package, doctor.

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

I don't think there are any other options to implement this.

Closes #6735

@ghost
Copy link

ghost commented Oct 18, 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

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 a great PR! Thank you so much for looking into the problem and helping make Bundler better.👏

@colby-swandale
Copy link
Member

@bundlerbot r+

ghost pushed a commit that referenced this pull request Oct 18, 2018
6748: Enable gemfile flag for bundle lock r=colby-swandale a=jekuta

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

`bundle lock` does not accept the `--gemfile` flag that allows to define a custom Gemfile.

### What was your diagnosis of the problem?

The option is not defined as available.

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

Adds the option to the list available options for `lock` command. 

I wasn't sure though, in which order to display this the new option. I just added it where it felt the most natural to me, but please let me know if there is a better order.

Also do you think it would make sense to add this flag to the other commands as well? 
For example: `add`, `remove`, `console`, `outdated`, `clean`?
For now it is available for: `check`, `exec`, `install`, `update`, `package`, `doctor`. 

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

I don't think there are any other options to implement this.

Closes #6735


Co-authored-by: Laura Paakkinen <[email protected]>
@colby-swandale
Copy link
Member

Also do you think it would make sense to add this flag to the other commands as well?

Yes! it would be great if we could make the UI consistent across the commands that operate on the Gemfile

@ghost
Copy link

ghost commented Oct 18, 2018

Build succeeded

@ghost ghost merged commit 5bd3ef0 into rubygems:master Oct 18, 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.

bundle lock should accept most of the options of bundle install
3 participants