Skip to content

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

Read the ruby version in the Gemfile from .ruby-version file

Dombi Attilae9baac686319
diff --git a/Gemfile b/Gemfile
index 93100f1c5d4..917bde68bc4 100644
--- a/Gemfile
+++ b/Gemfile
@@ -28,7 +28,11 @@
source 'https://rubygems.org'
-ruby '3.2.2'
+# TODO: Once packager.io and heroku buildpacks support bundler 2.4.22,
+# then we can use the new bundler syntax `ruby file: '.ruby-version'`.
+# https://github.com/heroku/heroku-buildpack-ruby/issues/1408#issuecomment-1841596215
+
+ruby File.read('.ruby-version').strip
gem 'actionpack-xml_parser', '~> 2.0.0'
gem 'activemodel-serializers-xml', '~> 1.0.1'