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
Update Ruby to 3.3.1 in all relevant places
Klaus Zandersc19aa3c74b7b
diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.ymlindex 8b30f3873e4..1d49b64e64b 100644--- a/.github/workflows/danger.yml+++ b/.github/workflows/danger.yml@@ -17,7 +17,7 @@ jobs:- uses: actions/checkout@v4- uses: ruby/setup-ruby@v1with:- ruby-version: '3.2.3'+ ruby-version: '3.3.1'- uses: MeilCli/danger-action@v5with:danger_file: 'Dangerfile'diff --git a/.rubocop.yml b/.rubocop.ymlindex f9c72240f9e..c70f37c8780 100644--- a/.rubocop.yml+++ b/.rubocop.yml@@ -22,7 +22,7 @@ inherit_mode:- ExcludeAllCops:- TargetRubyVersion: 3.2+ TargetRubyVersion: 3.3# Enable any new cops in new versions by defaultNewCops: enableExclude:diff --git a/.ruby-version b/.ruby-versionindex b347b11eac8..bea438e9ade 100644--- a/.ruby-version+++ b/.ruby-version@@ -1 +1 @@-3.2.3+3.3.1diff --git a/Gemfile.lock b/Gemfile.lockindex c0afb206273..33c19e8e894 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -1357,7 +1357,7 @@ DEPENDENCIESwith_advisory_lock (~> 5.1.0)RUBY VERSION- ruby 3.2.3p157+ ruby 3.3.1p55BUNDLED WITH- 2.5.5+ 2.5.9diff --git a/docker/ci/Dockerfile b/docker/ci/Dockerfileindex 8af9d1bb8f1..10fdf441039 100644--- a/docker/ci/Dockerfile+++ b/docker/ci/Dockerfile@@ -3,7 +3,7 @@ ARG RUBY_VERSIONFROM ruby:${RUBY_VERSION}-bullseyeENV NODE_VERSION="20.9.0"-ENV BUNDLER_VERSION="2.5.5"+ENV BUNDLER_VERSION="2.5.9"ENV DEBIAN_FRONTEND=noninteractiveENV BUNDLE_WITHOUT="development:production:docker"diff --git a/docker/dev/backend/Dockerfile b/docker/dev/backend/Dockerfileindex 1734bb13b8b..f029428ba57 100644--- a/docker/dev/backend/Dockerfile+++ b/docker/dev/backend/Dockerfile@@ -1,4 +1,4 @@-FROM ruby:3.2.3-bullseye as develop+FROM ruby:3.3.1-bullseye as developMAINTAINER [email protected]ARG DEV_UID=1000@@ -8,7 +8,7 @@ ENV USER=devENV RAILS_ENV=developmentENV NODE_MAJOR=20-ENV BUNDLER_VERSION "2.5.5"+ENV BUNDLER_VERSION "2.5.9"# `--no-log-init` is required as a workaround to avoid disk exhaustion.#diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfileindex 1aa8df4d9d3..04435df1c2b 100644--- a/docker/prod/Dockerfile+++ b/docker/prod/Dockerfile@@ -1,6 +1,6 @@-ARG RUBY_VERSION="3.2.3"+ARG RUBY_VERSION="3.3.1"ARG NODE_VERSION="20.9.0"-ARG BUNDLER_VERSION="2.5.5"+ARG BUNDLER_VERSION="2.5.9"ARG DEBIAN_FRONTEND=noninteractive# -------------------------------------@@ -166,9 +166,9 @@ COPY docker/prod/setup ./docker/prod/setupRUN ./docker/prod/setup/preinstall.shRUN dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \- && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \- && chmod +x /usr/local/bin/gosu \- && gosu nobody true+ && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \+ && chmod +x /usr/local/bin/gosu \+ && gosu nobody true# set irb default config for app (docker run -it ...) and root (docker exec -it ...) usersRUN ln -s /app/docker/prod/setup/.irbrc /home/$APP_USER/diff --git a/docs/development/development-environment-osx/README.md b/docs/development/development-environment-osx/README.mdindex ea57e1fd59f..7fc10b642a7 100644--- a/docs/development/development-environment-osx/README.md+++ b/docs/development/development-environment-osx/README.md@@ -27,7 +27,7 @@ their homepage.Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to installRuby. We always require the latest ruby versions, and you can check which version is requiredby [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.2.3"+the time of writing, this version is "3.3.1"### Install rbenv and ruby-build@@ -45,7 +45,7 @@ $ rbenv initWith both installed, we can now install the actual ruby version. You can check available ruby versionswith `rbenv install --list`.-At the time of this writing, the latest stable version is `3.2.3`, which we also require.+At the time of this writing, the latest stable version is `3.3.1`, 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'` line@@ -53,14 +53,14 @@ and install that version.```shell# Install the required version as read from the Gemfile-rbenv install 3.2.3+rbenv install 3.3.1```This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv toglobally activate this version```shell-rbenv global 3.2.3+rbenv global 3.3.1```You also need to install [bundler](https://github.com/bundler/bundler/), the ruby gem bundler.@@ -134,10 +134,10 @@ You should now have an active ruby and node installation. Verify that it works w```shell$ ruby --version-ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [arm64-darwin23]+ruby 3.3.1 (2024-04-23 revision c56cd86388) [arm64-darwin23]$ bundler --version-Bundler version 2.5.5+Bundler version 2.5.9node --versionv20.9.0diff --git a/docs/development/development-environment-ubuntu/README.md b/docs/development/development-environment-ubuntu/README.mdindex 67a208dc29b..b6fe2f07499 100644--- a/docs/development/development-environment-ubuntu/README.md+++ b/docs/development/development-environment-ubuntu/README.md@@ -41,7 +41,7 @@ sudo apt-get install git curl build-essential zlib1g-dev libyaml-dev libssl-devUse [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to installRuby. We always require the latest ruby versions, and you can check which version is requiredby [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.2.3"+the time of writing, this version is "3.3.1"### Install rbenv and ruby-build@@ -75,7 +75,7 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build### Installing rubyWith both installed, we can now install ruby. You can check available ruby versions with `rbenv install --list`.-At the time of this writing, the latest stable version is `3.2.3` which we also require.+At the time of this writing, the latest stable version is `3.3.1` 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'` line@@ -83,14 +83,14 @@ and install that version.```shell# Install the required version as read from the Gemfile-rbenv install 3.2.3+rbenv install 3.3.1```This might take a while depending on whether ruby is built from source. After it is complete, you need to tell rbenv toglobally activate this version```shell-rbenv global 3.2.3+rbenv global 3.3.1rbenv rehash```@@ -180,10 +180,10 @@ You should now have an active ruby and node installation. Verify that it works w```shellruby --version-ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [arm64-darwin23]+ruby 3.3.1 (2024-04-23 revision c56cd86388) [arm64-darwin23]bundler --version-Bundler version 2.5.5+Bundler version 2.5.9node --versionv20.9.0diff --git a/docs/installation-and-operations/installation/manual/README.md b/docs/installation-and-operations/installation/manual/README.mdindex 102f2e1bcc9..5f095555fe0 100644--- a/docs/installation-and-operations/installation/manual/README.md+++ b/docs/installation-and-operations/installation/manual/README.md@@ -108,16 +108,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.2.3+[openproject@host] rbenv install 3.3.1[openproject@host] rbenv rehash-[openproject@host] rbenv global 3.2.3+[openproject@host] rbenv global 3.3.1```To check our Ruby installation we run `ruby --version`. It should outputsomething very similar to:```-ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [arm64-darwin23]+ruby 3.3.1 (2024-04-23 revision c56cd86388) [arm64-darwin23]```## Installation of Node@@ -440,7 +440,7 @@ If you need to restart the server (for example after a configuration change), do* **When accessing OpenProject, I get an error page. How do I find out what went wrong?**Things can go wrong on different levels. You can find the apache error logs here: `/var/log/apache2/error.log`-+The OpenProject log can be found here: `/home/openproject/openproject/log/production.log`* **I cannot solve an error, not even with the log files. How do I get help?**diff --git a/script/github_pr_errors b/script/github_pr_errorsindex a5e10629c9d..ff2df8f3f01 100755--- a/script/github_pr_errors+++ b/script/github_pr_errors@@ -283,7 +283,7 @@ end# rubocop:disable Layout/LineLength# Looks like this in the job log:-# Process 28: TEST_ENV_NUMBER=28 RUBYOPT=-I/usr/local/bundle/bundler/gems/turbo_tests-3148ae6c3482/lib -r/usr/local/bundle/gems/bundler-2.5.5/lib/bundler/setup -W0 RSPEC_SILENCE_FILTER_ANNOUNCEMENTS=1 /usr/local/bundle/gems/bundler-2.5.5/exe/bundle exec rspec --seed 52674 --format TurboTests::JsonRowsFormatter --out tmp/test-pipes/subprocess-28 --format ParallelTests::RSpec::RuntimeLogger --out spec/support/turbo_runtime_features.log spec/features/api_docs/index_spec.rb spec/features/custom_fields/reorder_options_spec.rb spec/features/projects/projects_portfolio_spec.rb spec/features/projects/template_spec.rb spec/features/versions/edit_spec.rb spec/features/work_packages/details/markdown/description_editor_spec.rb spec/features/work_packages/table/hierarchy/hierarchy_parent_below_spec.rb spec/features/work_packages/table/inline_create/inline_create_refresh_spec.rb spec/features/work_packages/table/invalid_query_spec.rb spec/features/work_packages/tabs/activity_revisions_spec.rb+# Process 28: TEST_ENV_NUMBER=28 RUBYOPT=-I/usr/local/bundle/bundler/gems/turbo_tests-3148ae6c3482/lib -r/usr/local/bundle/gems/bundler-2.5.9/lib/bundler/setup -W0 RSPEC_SILENCE_FILTER_ANNOUNCEMENTS=1 /usr/local/bundle/gems/bundler-2.5.9/exe/bundle exec rspec --seed 52674 --format TurboTests::JsonRowsFormatter --out tmp/test-pipes/subprocess-28 --format ParallelTests::RSpec::RuntimeLogger --out spec/support/turbo_runtime_features.log spec/features/api_docs/index_spec.rb spec/features/custom_fields/reorder_options_spec.rb spec/features/projects/projects_portfolio_spec.rb spec/features/projects/template_spec.rb spec/features/versions/edit_spec.rb spec/features/work_packages/details/markdown/description_editor_spec.rb spec/features/work_packages/table/hierarchy/hierarchy_parent_below_spec.rb spec/features/work_packages/table/inline_create/inline_create_refresh_spec.rb spec/features/work_packages/table/invalid_query_spec.rb spec/features/work_packages/tabs/activity_revisions_spec.rb# rubocop:enable Layout/LineLengthclass TestsGroupattr_accessor :test_env_number, :seed, :files