Skip to content

Commit bf560f6

Browse files
authored
Merge pull request rails#47442 from Shopify/add-irb-to-gemfile-template
Make irb a railties dependency
2 parents 2f6183d + 4fefed4 commit bf560f6

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
@@ -21,6 +21,13 @@
2121

2222
*Xavier Noria*
2323

24+
* Railties now requires the irb gem as a dependency, which means when you install Rails, irb will also
25+
be installed as a gem. Rails will then use the installed version of irb for its console instead of
26+
relying on Ruby's built-in version.
27+
This ensures that Rails has access to the most up-to-date and reliable version of irb for its console.
28+
29+
*Stan Lo*
30+
2431
* Use infinitive form for all rails command descriptions verbs.
2532
2633
*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)