Skip to content

Commit

Permalink
Fix for #99 (#100)
Browse files Browse the repository at this point in the history
fixes a failure with rbenv:build when the same version of rubygems
is used in different version of ruby.
  • Loading branch information
alexskr authored Sep 15, 2024
1 parent 72a326f commit fff5f5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/build.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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}"],
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/build_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fff5f5c

Please sign in to comment.