ruby-changes:71332
From: Brad <ko1@a...>
Date: Mon, 7 Mar 2022 07:03:51 +0900 (JST)
Subject: [ruby-changes:71332] 8ae09706f3 (master): [rubygems/rubygems] Update README.md.tt
https://git.ruby-lang.org/ruby.git/commit/?id=8ae09706f3 From 8ae09706f37f64fe32503c2d48e41adb95836254 Mon Sep 17 00:00:00 2001 From: Brad Gessler <bradgessler@g...> Date: Tue, 8 Feb 2022 16:40:41 -0800 Subject: [rubygems/rubygems] Update README.md.tt Reduce the number of steps required to install a gem from two steps to one by using `bundle add` https://github.com/rubygems/rubygems/commit/2c968420cd --- lib/bundler/templates/newgem/README.md.tt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/bundler/templates/newgem/README.md.tt b/lib/bundler/templates/newgem/README.md.tt index 8fd87abe9a..a60c7967ec 100644 --- a/lib/bundler/templates/newgem/README.md.tt +++ b/lib/bundler/templates/newgem/README.md.tt @@ -6,17 +6,11 @@ TODO: Delete this and the text above, and describe your gem https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/README.md.tt#L6 ## Installation -Add this line to your application's Gemfile: +Install the gem and add to the application's Gemfile by executing: -```ruby -gem '<%= config[:name] %>' -``` + $ bundle add <%= config[:name] %> -And then execute: - - $ bundle install - -Or install it yourself as: +If bundler is not being used to manage dependencies, install the gem by executing: $ gem install <%= config[:name] %> -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/