OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
bump ruby to 3.0
ulferts632e2c9f4122
diff --git a/.rubocop.yml b/.rubocop.ymlindex d366e8c07b2..8d26876e05a 100644--- a/.rubocop.yml+++ b/.rubocop.yml@@ -3,7 +3,7 @@ require:- rubocop-rspecAllCops:- TargetRubyVersion: 2.7+ TargetRubyVersion: 3.0# Enable any new cops in new versions by defaultNewCops: enableExclude:diff --git a/.ruby-version b/.ruby-versionindex a603bb50a29..282895a8f8f 100644--- a/.ruby-version+++ b/.ruby-version@@ -1 +1 @@-2.7.5+3.0.3\ No newline at end of filediff --git a/Gemfile b/Gemfileindex 54a31e85fce..a56b1b1f66f 100644--- a/Gemfile+++ b/Gemfile@@ -28,7 +28,7 @@source 'https://rubygems.org'-ruby '~> 2.7.5'+ruby '~> 3.0.3'gem 'actionpack-xml_parser', '~> 2.0.0'gem 'activemodel-serializers-xml', '~> 1.0.1'diff --git a/Gemfile.lock b/Gemfile.lockindex 27b0088c99a..ad4ca0c6c29 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -1127,7 +1127,7 @@ DEPENDENCIESwith_advisory_lock (~> 4.6.0)RUBY VERSION- ruby 2.7.5p203+ ruby 3.0.3p157BUNDLED WITH- 2.1.4+ 2.2.32diff --git a/config/boot.rb b/config/boot.rbindex 64946c954e6..ad889d1a77b 100644--- a/config/boot.rb+++ b/config/boot.rb@@ -40,7 +40,7 @@ require 'bundler/setup' # Set up gems listed in the Gemfile.env = ENV['RAILS_ENV']# Disable deprecation warnings early on (before loading gems), which behaves as RUBYOPT="-w0"-# to disable the Ruby 2.7 warnings in production.+# to disable the Ruby warnings in production.# Set OPENPROJECT_PROD_DEPRECATIONS=true if you want to see them for debugging purposesif env == 'production' && ENV['OPENPROJECT_PROD_DEPRECATIONS'] != 'true'require 'structured_warnings'diff --git a/docker/ci/Dockerfile b/docker/ci/Dockerfileindex c3479102d76..1d4b0a75e37 100644--- a/docker/ci/Dockerfile+++ b/docker/ci/Dockerfile@@ -1,4 +1,4 @@-FROM ruby:2.7.5-buster+FROM ruby:3.0.3-busterMAINTAINER [email protected]ENV NODE_VERSION="14.17.0"diff --git a/docker/dev/backend/Dockerfile b/docker/dev/backend/Dockerfileindex fe0ef9f0c00..e972a747a35 100644--- a/docker/dev/backend/Dockerfile+++ b/docker/dev/backend/Dockerfile@@ -1,4 +1,4 @@-FROM ruby:2.7.5-buster as develop+FROM ruby:3.0.3-buster as developMAINTAINER [email protected]ARG DEV_UID=1000diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfileindex e10fb4c4208..13cf700fd9a 100644--- a/docker/prod/Dockerfile+++ b/docker/prod/Dockerfile@@ -1,4 +1,4 @@-FROM ruby:2.7.5-buster+FROM ruby:3.0.3-busterMAINTAINER [email protected]# Allow platform-specific additions. Valid values are: on-prem,saas,bahndiff --git a/docs/development/development-environment-docker/README.md b/docs/development/development-environment-docker/README.mdindex d3133f6674c..988393cc5f5 100644--- a/docs/development/development-environment-docker/README.md+++ b/docs/development/development-environment-docker/README.md@@ -191,8 +191,7 @@ rebuild the image. For instance when the Ruby version is updated you may run intan error like the following when running `bin/compose setup`:```-Creating core_backend_run ... done-Your Ruby version is 2.7.1, but your Gemfile specified ~> 2.7.5+Your Ruby version is 2.7.4, but your Gemfile specified ~> 3.0.3```This means that the current image is out-dated. You can update it like this:diff --git a/docs/development/development-environment-osx/README.md b/docs/development/development-environment-osx/README.mdindex 0cc162496bf..c42800b20a1 100644--- a/docs/development/development-environment-osx/README.md+++ b/docs/development/development-environment-osx/README.md@@ -15,7 +15,7 @@ We'll use [homebrew](https://brew.sh/) to install most of our requirements. Plea## Install Ruby-Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install Ruby. We always require the latest ruby versions, and you can check which version is required by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At the time of writing, this version is "2.6"+Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install Ruby. We always require the latest ruby versions, and you can check which version is required by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At the time of writing, this version is "3.0.3"### Install rbenv and ruby-build@@ -29,23 +29,23 @@ $ brew install rbenv ruby-build$ rbenv init```-### Installing ruby-2.7+### Installing ruby-3.0-With both installed, we can now install the actual ruby version 2.7. You can check available ruby versions with `rbenv install --list`.-At the time of this writing, the latest stable version is `2.7.5`, which we also require.+With both installed, we can now install the actual ruby version 3.0. You can check available ruby versions with `rbenv install --list`.+At the time of this writing, the latest stable version is `3.0.3`, which we also require.We suggest you install the version we require in the [Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile). Search for the `ruby '~> X.Y.Z'` lineand install that version.```bash# Install the required version as read from the Gemfile-rbenv install 2.7.5+rbenv install 3.0.3```This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to globally activate this version```bash-rbenv global 2.7.5+rbenv global 3.0.3```You also need to install [bundler](https://github.com/bundler/bundler/), the ruby gem bundler.@@ -116,7 +116,7 @@ You should now have an active ruby and node installation. Verify that it works w```bash$ ruby --version-ruby 2.7.5p203 (2021-07-07 revision a21a3b7d23) [x86_64-linux]+ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-darwin20]$ bundler --versionBundler version 2.1.4diff --git a/docs/development/development-environment-ubuntu/README.md b/docs/development/development-environment-ubuntu/README.mdindex 63e917dec4e..51f9334e761 100644--- a/docs/development/development-environment-ubuntu/README.md+++ b/docs/development/development-environment-ubuntu/README.md@@ -26,7 +26,7 @@ sudo apt-get install git curl build-essential zlib1g-dev libyaml-dev libssl-dev## Install Ruby-Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install Ruby. We always require the latest ruby versions, and you can check which version is required by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At the time of writing, this version is "2.7.5"+Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install Ruby. We always require the latest ruby versions, and you can check which version is required by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At the time of writing, this version is "3.0.3"### Install rbenv and ruby-build@@ -57,23 +57,23 @@ ruby-build is an addon to rbenv that installs ruby versionsgit clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build```-### Installing ruby-2.7+### Installing ruby-3.0-With both installed, we can now install the actual ruby version 2.7. You can check available ruby versions with `rbenv install --list`.-At the time of this writing, the latest stable version is `2.7.5`, which we also require.+With both installed, we can now install the actual ruby version 3.0. You can check available ruby versions with `rbenv install --list`.+At the time of this writing, the latest stable version is `3.0.3` which we also require.We suggest you install the version we require in the [Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile). Search for the `ruby '~> X.Y.Z'` lineand install that version.```bash# Install the required version as read from the Gemfile-rbenv install 2.7.5+rbenv install 3.0.3```This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv to globally activate this version```bash-rbenv global 2.7.5+rbenv global 3.0.3rbenv rehash```@@ -159,7 +159,11 @@ You should now have an active ruby and node installation. Verify that it works w```bashruby --version+<<<<<<< HEADruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]+=======+ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-darwin20]+>>>>>>> 003c95615c (bump ruby to 3.0)bundler --versionBundler version 2.2.33diff --git a/docs/installation-and-operations/installation/manual/README.md b/docs/installation-and-operations/installation/manual/README.mdindex 2dee613d15c..ffe30ea6cb9 100644--- a/docs/installation-and-operations/installation/manual/README.md+++ b/docs/installation-and-operations/installation/manual/README.md@@ -106,16 +106,16 @@ time to finish.[openproject@host] source ~/.profile[openproject@host] git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build-[openproject@host] rbenv install 2.7.5+[openproject@host] rbenv install 3.0.3[openproject@host] rbenv rehash-[openproject@host] rbenv global 2.7.5+[openproject@host] rbenv global 3.0.3```To check our Ruby installation we run `ruby --version`. It should outputsomething very similar to:```-ruby 2.7.5p203 (2021-07-07 revision a21a3b7d23) [x86_64-linux]+ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-darwin20]```## Installation of Node