From 9e81b09f85a9425e31bc4f03456c5ba01c455366 Mon Sep 17 00:00:00 2001 From: Alex Skrenchuk Date: Mon, 19 Aug 2024 16:47:09 -0700 Subject: [PATCH] Fix for #99 fixes a failure with rbenv:build when the same version of rubygems is used in different version of ruby. --- manifests/build.pp | 2 +- spec/defines/build_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/build.pp b/manifests/build.pp index 2c08a7a..f741ea5 100644 --- a/manifests/build.pp +++ b/manifests/build.pp @@ -155,7 +155,7 @@ # a series of issues like # https://bundler.io/blog/2019/05/14/solutions-for-cant-find-gem-bundler-with-executable-bundle.html. if $rubygems_version { - exec { "rubygems-${rubygems_version}": + exec { "rubygems-${rubygems_version}-for-${title}": command => "gem update --system ${rubygems_version}", environment => ["RBENV_ROOT=${install_dir}"], require => Exec["rbenv-install-${title}"], diff --git a/spec/defines/build_spec.rb b/spec/defines/build_spec.rb index 4cb8092..8f8bf30 100644 --- a/spec/defines/build_spec.rb +++ b/spec/defines/build_spec.rb @@ -47,7 +47,7 @@ } end - it { is_expected.to contain_exec('rubygems-3.2.1') } + it { is_expected.to contain_exec('rubygems-3.2.1-for-2.0.0-p247') } end context 'with global => true' do