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
[chore] bump ruby version to 3.1.2
Eric Schubertdd0b142d4543
diff --git a/.ruby-version b/.ruby-versionindex b0f2dcb32fc..ef538c28109 100644--- a/.ruby-version+++ b/.ruby-version@@ -1 +1 @@-3.0.4+3.1.2diff --git a/Gemfile b/Gemfileindex a5d0ddb2612..a28aad32235 100644--- a/Gemfile+++ b/Gemfile@@ -28,7 +28,7 @@source 'https://rubygems.org'-ruby '~> 3.0.4'+ruby '~> 3.1.2'gem 'actionpack-xml_parser', '~> 2.0.0'gem 'activemodel-serializers-xml', '~> 1.0.1'@@ -62,6 +62,10 @@ gem 'typed_dag', '~> 2.0.2'gem 'addressable', '~> 2.8.0'+# Needed to make rails 6.x work with ruby 3.1, can be dropped+# after migrated to rails 7 (see https://stackoverflow.com/a/70500221)+gem 'net-smtp', '~> 0.3.1', require: false+# Remove whitespace from model inputgem "auto_strip_attributes", "~> 2.5"diff --git a/Gemfile.lock b/Gemfile.lockindex d90f6eee6e5..c5ad2b733c1 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -404,6 +404,7 @@ GEMactiverecord (>= 3.0, < 8.0)delayed_job (>= 3.0, < 5)diff-lcs (1.5.0)+ digest (3.1.0)disposable (0.6.2)declarative (>= 0.0.9, < 1.0.0)representable (>= 3.1.1, < 3.2.0)@@ -554,6 +555,7 @@ GEMice_cube (~> 0.16)ice_cube (0.16.4)interception (0.5)+ io-wait (0.2.1)iso8601 (0.13.0)jmespath (1.6.1)json (2.6.1)@@ -626,6 +628,13 @@ GEMmustermann (>= 1.0.0)nap (1.1.0)net-ldap (0.17.0)+ net-protocol (0.1.2)+ io-wait+ timeout+ net-smtp (0.3.1)+ digest+ net-protocol+ timeoutnetrc (0.11.0)nio4r (2.5.8)no_proxy_fix (0.1.2)@@ -925,6 +934,7 @@ GEMthor (1.2.1)tilt (2.0.10)timecop (0.9.5)+ timeout (0.2.0)trailblazer-option (0.1.2)ttfunk (1.7.0)typed_dag (2.0.2)@@ -1044,6 +1054,7 @@ DEPENDENCIESmulti_json (~> 1.15.0)my_page!net-ldap (~> 0.17.0)+ net-smtp (~> 0.3.1)nokogiri (~> 1.13.4)oj (~> 3.13.0)okcomputer (~> 1.18.1)@@ -1147,7 +1158,7 @@ DEPENDENCIESwith_advisory_lock (~> 4.6.0)RUBY VERSION- ruby 3.0.4p208+ ruby 3.1.2p20BUNDLED WITH2.3.12diff --git a/docker/ci/Dockerfile b/docker/ci/Dockerfileindex 0334bf0cde6..bae9fe5343b 100644--- a/docker/ci/Dockerfile+++ b/docker/ci/Dockerfile@@ -1,4 +1,4 @@-FROM ruby:3.0.4-buster+FROM ruby:3.1.2-busterMAINTAINER [email protected]ENV NODE_VERSION="14.17.0"diff --git a/docker/dev/backend/Dockerfile b/docker/dev/backend/Dockerfileindex 5c01e796b3e..ad2f1107d38 100644--- a/docker/dev/backend/Dockerfile+++ b/docker/dev/backend/Dockerfile@@ -1,4 +1,4 @@-FROM ruby:3.0.4-bullseye as develop+FROM ruby:3.1.2-bullseye as developMAINTAINER [email protected]ARG DEV_UID=1000@@ -47,7 +47,7 @@ WORKDIR /home/$USER/openprojectUSER $USER-RUN gem install bundler --version "${bundler_version}" --no-document+RUN gem install bundler --version "${BUNDLER_VERSION}" --no-document####### Testing image below #########diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfileindex 0f7e68ed832..d831e4c46ad 100644--- a/docker/prod/Dockerfile+++ b/docker/prod/Dockerfile@@ -1,4 +1,4 @@-FROM ruby:3.0.4-buster+FROM ruby:3.1.2-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 21f21261fcb..aee0ac3b0ed 100644--- a/docs/development/development-environment-docker/README.md+++ b/docs/development/development-environment-docker/README.md@@ -192,7 +192,7 @@ When a dependency of the image or the base image itself is changed you may needRuby version is updated you may run into an error like the following when running `bin/compose setup`:```-Your Ruby version is 2.7.4, but your Gemfile specified ~> 3.0.4+Your Ruby version is 2.7.6, but your Gemfile specified ~> 3.1.2```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 2b345adc551..e8b854e7cb5 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 "3.0.4"+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.1.2"### Install rbenv and ruby-build@@ -32,20 +32,20 @@ $ rbenv init### Installing ruby-3.0With 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.4`, which we also require.+At the time of this writing, the latest stable version is `3.1.2`, 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 3.0.4+rbenv install 3.1.2```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 3.0.4+rbenv global 3.1.2```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 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]+ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]$ bundler --versionBundler version 2.3.12diff --git a/docs/development/development-environment-ubuntu/README.md b/docs/development/development-environment-ubuntu/README.mdindex d19b945d80f..d9484be3f6b 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 "3.0.4"+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.1.2"### Install rbenv and ruby-build@@ -60,20 +60,20 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build### Installing ruby-3.0With 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.4` which we also require.+At the time of this writing, the latest stable version is `3.1.2` 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 3.0.4+rbenv install 3.1.2```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 3.0.4+rbenv global 3.1.2rbenv rehash```@@ -159,7 +159,7 @@ You should now have an active ruby and node installation. Verify that it works w```bashruby --version-ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]+ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]bundler --versionBundler version 2.3.12diff --git a/docs/installation-and-operations/installation/manual/README.md b/docs/installation-and-operations/installation/manual/README.mdindex 27aadb21951..a6c001b3c08 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 3.0.4+[openproject@host] rbenv install 3.1.2[openproject@host] rbenv rehash-[openproject@host] rbenv global 3.0.4+[openproject@host] rbenv global 3.1.2```To check our Ruby installation we run `ruby --version`. It should outputsomething very similar to:```-ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]+ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]```## Installation of Node