summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2025-02-02 17:49:19 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-02-06 15:58:01 +0900
commitdd1fe03b8a8da5e2cbe7b35dddb07541e7f58678 (patch)
tree36d7d90306df86eba1e5c46b66cbdda24c9c0211 /lib
parentac093f4350ae8f41ef18ac64829ea9dbc272063d (diff)
[rubygems/rubygems] Add `irb` to a Gemfile for a newly created gem
I think we need this to silence the following warning when running `bin/console` with Ruby 3.4 ``` ./bin/console:10: warning: irb was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0. You can add irb to your Gemfile or gemspec to silence this warning. ``` https://github.com/rubygems/rubygems/commit/c46230c856
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/templates/newgem/Gemfile.tt1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/Gemfile.tt b/lib/bundler/templates/newgem/Gemfile.tt
index de82a63c5f..ea7a33ee28 100644
--- a/lib/bundler/templates/newgem/Gemfile.tt
+++ b/lib/bundler/templates/newgem/Gemfile.tt
@@ -5,6 +5,7 @@ source "https://rubygems.org"
# Specify your gem's dependencies in <%= config[:name] %>.gemspec
gemspec
+gem "irb"
gem "rake", "~> 13.0"
<%- if config[:ext] -%>