Skip to content

Commit 4fefed4

Browse files
committed
Add irb to railties' dependencies
- Firstly, including irb as a dependency allows users with older versions of Ruby to benefit from the latest version of irb, instead of being limited to the version bundled with their Ruby installation. - Additionally, there is an [ongoing discussion](https://bugs.ruby-lang.org/issues/19351) to move irb to bundled gems. If this change is implemented, users may need to declare irb in their Gemfile in order to use it for Rails console. By adding irb as a dependency, users can avoid the extra effort of manually specifying irb in their Gemfile.
1 parent 09f5d81 commit 4fefed4

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ PATH
9696
railties (7.1.0.alpha)
9797
actionpack (= 7.1.0.alpha)
9898
activesupport (= 7.1.0.alpha)
99+
irb
99100
rackup (>= 1.0.0)
100101
rake (>= 12.2)
101102
thor (~> 1.0)

railties/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323

2424
*Xavier Noria*
2525

26+
* Railties now requires the irb gem as a dependency, which means when you install Rails, irb will also
27+
be installed as a gem. Rails will then use the installed version of irb for its console instead of
28+
relying on Ruby's built-in version.
29+
This ensures that Rails has access to the most up-to-date and reliable version of irb for its console.
30+
31+
*Stan Lo*
32+
2633
* Use infinitive form for all rails command descriptions verbs.
2734
2835
*Petrik de Heus*

railties/railties.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Gem::Specification.new do |s|
4444
s.add_dependency "rake", ">= 12.2"
4545
s.add_dependency "thor", "~> 1.0"
4646
s.add_dependency "zeitwerk", "~> 2.6"
47+
s.add_dependency "irb"
4748

4849
s.add_development_dependency "actionview", version
4950
end

0 commit comments

Comments
 (0)