Skip to content

A platform for community discussion. Free, open, simple.

DEV: Require Ruby 4.0 and update PostgreSQL documentation (#45374)

Alan Guo Xiang Tan3b5b10a4c302
diff --git a/Gemfile b/Gemfile
index 71802d54d97..646d619df89 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-ruby ">= 3.4", "< 4.1"
+ruby "~> 4.0.0"
source "https://rubygems.org"
# if there is a super emergency and rubygems is playing up, try
diff --git a/Gemfile.lock b/Gemfile.lock
index 4e89c5fe164..e76dd236c8c 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1339,7 +1339,7 @@ CHECKSUMS
zendesk_api (3.1.2) sha256=3f726c133af8ed3518a9e7cfa9015a368617bd210754ed9173d984f12ddcec15
RUBY VERSION
- ruby 3.4.7p58
+ ruby 4.0.7
BUNDLED WITH
4.0.23
diff --git a/README.md b/README.md
index cde23ce9562..c5cf0da0e91 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ To get your environment set up, follow one of the setup guides:
- [Ubuntu/Debian](https://meta.discourse.org/t/14727)
- [Windows](https://meta.discourse.org/t/75149)
-Before you get started, ensure you have the following minimum versions: [Ruby 3.4+](https://www.ruby-lang.org/en/downloads/), [PostgreSQL 15](https://www.postgresql.org/download/), [Redis 7](https://redis.io/download).
+Before you get started, ensure you have the following minimum versions: [Ruby 4.0](https://www.ruby-lang.org/en/downloads/), [PostgreSQL 18+](https://www.postgresql.org/download/), [Redis 7](https://redis.io/download).
For more information, check out [the Developer Documentation](https://meta.discourse.org/c/documentation/developer-guides/56).
diff --git a/docs/INSTALL.md b/docs/INSTALL.md
index 2830873afa5..733061ea966 100644
--- a/docs/INSTALL.md
+++ b/docs/INSTALL.md
@@ -25,9 +25,10 @@ Hosting Rails applications is complicated. Even if you already have Postgres, Re
### Software Requirements
-- [PostgreSQL](https://www.postgresql.org/download/) (with major version matching the [version deployed in our docker images](https://github.com/discourse/discourse_docker/blob/main/image/base/Dockerfile))
+- [PostgreSQL 18+](https://www.postgresql.org/download/) (with major version matching the [version deployed in our docker images](https://github.com/discourse/discourse_docker/blob/main/image/base/Dockerfile))
- [Redis 7](https://redis.io/download)
-- [Ruby 3.2+](https://www.ruby-lang.org/en/downloads/)
+- [Ruby 4.0](https://www.ruby-lang.org/en/downloads/)
+
## Security
We take security very seriously at Discourse, and all our code is 100% open source and peer reviewed. Please read [our security guide](https://github.com/discourse/discourse/blob/main/docs/SECURITY.md) for an overview of security measures in Discourse.