Skip to content

Commit 1320ff0

Browse files
authored
Merge pull request #2 from zzak/bump-ruby-version_check
Remove Ruby version check
2 parents 6ba2fdb + 110a4e6 commit 1320ff0

File tree

7 files changed

+8
-27
lines changed

7 files changed

+8
-27
lines changed

guides/source/active_record_postgresql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ irb> Event.where("payload->>'kind' = ?", "user_renamed")
170170
* [type definition](https://www.postgresql.org/docs/current/static/rangetypes.html)
171171
* [functions and operators](https://www.postgresql.org/docs/current/static/functions-range.html)
172172

173-
This type is mapped to Ruby [`Range`](https://ruby-doc.org/core-2.7.0/Range.html) objects.
173+
This type is mapped to Ruby [`Range`](https://ruby-doc.org/core-3.1.0/Range.html) objects.
174174

175175
```ruby
176176
# db/migrate/20130923065404_create_events.rb
@@ -449,7 +449,7 @@ irb> user.save!
449449
* [type definition](https://www.postgresql.org/docs/current/static/datatype-net-types.html)
450450

451451
The types `inet` and `cidr` are mapped to Ruby
452-
[`IPAddr`](https://ruby-doc.org/stdlib-2.7.0/libdoc/ipaddr/rdoc/IPAddr.html)
452+
[`IPAddr`](https://ruby-doc.org/stdlib-3.1.0/libdoc/ipaddr/rdoc/IPAddr.html)
453453
objects. The `macaddr` type is mapped to normal text.
454454

455455
```ruby

guides/source/command_line.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,8 @@ $ bin/rails destroy model Oops
509509
$ bin/rails about
510510
About your application's environment
511511
Rails version 7.2.0
512-
Ruby version 2.7.0 (x86_64-linux)
513-
RubyGems version 2.7.3
512+
Ruby version 3.1.0 (x86_64-linux)
513+
RubyGems version 3.3.7
514514
Rack version 3.0.8
515515
JavaScript Runtime Node.js (V8)
516516
Middleware: ActionDispatch::HostAuthorization, Rack::Sendfile, ActionDispatch::Static, ActionDispatch::Executor, ActionDispatch::ServerTiming, ActiveSupport::Cache::Strategy::LocalCache::Middleware, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, ActionDispatch::RemoteIp, Sprockets::Rails::QuietAssets, Rails::Rack::Logger, ActionDispatch::ShowExceptions, WebConsole::Middleware, ActionDispatch::DebugExceptions, ActionDispatch::ActionableExceptions, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::Migration::CheckPending, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ContentSecurityPolicy::Middleware, ActionDispatch::PermissionsPolicy::Middleware, Rack::Head, Rack::ConditionalGet, Rack::ETag, Rack::TempfileReaper

guides/source/getting_started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ current version of Ruby installed:
9393

9494
```bash
9595
$ ruby --version
96-
ruby 2.7.0
96+
ruby 3.1.0
9797
```
9898

99-
Rails requires Ruby version 2.7.0 or later. It is preferred to use the latest Ruby version.
99+
Rails requires Ruby version 3.1.0 or later. It is preferred to use the latest Ruby version.
100100
If the version number returned is less than that number (such as 2.3.7, or 1.8.7),
101101
you'll need to install a fresh copy of Ruby.
102102

guides/source/upgrading_ruby_on_rails.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ The best way to be sure that your application still works after upgrading is to
2020

2121
Rails generally stays close to the latest released Ruby version when it's released:
2222

23-
* Rails 7 requires Ruby 2.7.0 or newer.
23+
* Rails 7.2 requires Ruby 3.1.0 or newer.
24+
* Rails 7.0 and 7.1 requires Ruby 2.7.0 or newer.
2425
* Rails 6 requires Ruby 2.5.0 or newer.
2526
* Rails 5 requires Ruby 2.2.2 or newer.
2627

railties/lib/rails.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "rails/ruby_version_check"
4-
53
require "pathname"
64

75
require "active_support"

railties/lib/rails/cli.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# the rest of this script is not run.
77
Rails::AppLoader.exec_app
88

9-
require "rails/ruby_version_check"
109
Signal.trap("INT") { puts; exit(1) }
1110

1211
require "rails/command"

railties/lib/rails/ruby_version_check.rb

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)