From dd1fe03b8a8da5e2cbe7b35dddb07541e7f58678 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sun, 2 Feb 2025 17:49:19 +0900 Subject: [PATCH] [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 --- lib/bundler/templates/newgem/Gemfile.tt | 1 + 1 file changed, 1 insertion(+) 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] -%>