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

Use absolute path to load `.ruby-version` file

Christophe Bliard9c630144f40f
diff --git a/Gemfile b/Gemfile
index 0b12eec3541..5e3fb6ba9ed 100644
--- a/Gemfile
+++ b/Gemfile
@@ -32,7 +32,7 @@ source "https://rubygems.org"
# 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
+ruby File.read(File.expand_path(".ruby-version", __dir__)).strip
gem "actionpack-xml_parser", "~> 2.0.0"
gem "activemodel-serializers-xml", "~> 1.0.1"