Upgrading ruby can break gitlab-markup patching
We hardcode the gems directory in software/gitlab-rails.rb
:
gems_directory = "#{install_dir}/embedded/service/gem/ruby/2.3.0/gems"`
But this is just a "guess" on our side, and it's not used by the tools that actually install the gems.
If we forget to update this line, or if we forget to update or use a wrong version number like 2.3.3
instead as the pattern x.y.0
, we break code that depends on it.
We need a better way to detect the right version here.