New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest quicker bundle add
for installation in README.md
generated by bundle gem
#5337
Conversation
Thanks for opening a pull request and helping make RubyGems and Bundler better! Someone from the RubyGems 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 GitHub Actions to test and make sure your change works functionally and uses acceptable conventions, you can review the current progress of GitHub Actions 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 #rubygems or #bundler channel on Slack. For more information about contributing to the RubyGems project feel free to review our CONTRIBUTING guide |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed some minor thing.
bundle add
for installation in README.md
generated by bundle gem
0be0e02
to
f30b2b8
Compare
Reduce the number of steps required to install a gem from two steps to one by using `bundle add`
Suggest quicker `bundle add` for installation in `README.md` generated by `bundle gem` (cherry picked from commit e474b28)
Funny how I just used it this week for the first time and now I see this in RubyWeekly. How long has it been around? |
|
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
* Use bundle add instead As per rubygems/rubygems#5337, we can simplify the steps of adding a gem. * Update README.md Co-authored-by: Ben Sheldon [he/him] <bensheldon@gmail.com>
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
* Use bundle add instead As per rubygems/rubygems#5337, we can simplify the steps of adding a gem. * Update README.md
I'll be curious to see how much adoption this ends up getting — while I've used |
I strongly prefer |
I encourage you to read https://bundler.io/man/bundle-add.1.html, note the gaps in your concerns, and enhance It doesn't bother me that much that maintainers, like Justin, don't want to use Between this PR and making people more aware of |
I think when you first add a gem to your application you don't necessarily care about the |
Great (and pragmatic) thoughts, @bradgessler. |
|
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
* Use bundle add instead As per rubygems/rubygems#5337, we can simplify the steps of adding a gem. * Update README.md Co-authored-by: Ben Sheldon [he/him] <bensheldon@gmail.com>
As per rubygems/rubygems#5337, we can simplify the steps of adding a gem.
* Use bundle add instead As per rubygems/rubygems#5337, we can simplify the steps of adding a gem. * Update README.md Co-authored-by: Ben Sheldon [he/him] <bensheldon@gmail.com>
* Use bundle add instead As per rubygems/rubygems#5337, we can simplify the steps of adding a gem. * Update README.md Co-authored-by: Ben Sheldon [he/him] <bensheldon@gmail.com>
Reduce the number of steps required to install a gem from two steps to one by using
bundle add
What was the end-user or developer problem that led to this PR?
I keep seeing 2-step installation instructions for installing gems on README's all around the internet.
bundler add
has been around long enough now where it seems safe to suggest to people installing a gem to use that command.This will save thousands of people-hours per year and have the advantage of locking the dependency with a
~>
by default, which will save even more time.What is your fix for the problem, implemented in this PR?
Updated the
README.md.tt
doc to tell people how to install a gem viabundle add
instead of the old two-step method.Make sure the following tasks are checked