Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PDK-1365) Use dynamic ruby detection for default ruby instance #678

Merged
merged 1 commit into from
Jun 11, 2019

Conversation

glennsarti
Copy link
Contributor

Previously the default version of ruby selected in packaged PDK instances was
hardcoded to 2.4.5 which caused issues when updating ruby runtimes and did not
reflect that the default should really by ruby 2.5 and Puppet 6. This commit
modifies the default ruby detection to instead use the ruby environment for the
latest Puppet Gem in the PDK package install. Non-pkged installs are not
affected.

This commit also memoizes the default value to slightly speed up default ruby
selection.

@glennsarti glennsarti changed the title (PDK-1365) Use dynamic ruby detection for default ruby instance {WIP}(PDK-1365) Use dynamic ruby detection for default ruby instance Jun 7, 2019
@coveralls
Copy link

coveralls commented Jun 7, 2019

Coverage Status

Coverage decreased (-0.02%) to 93.069% when pulling 2067abe on glennsarti:pdk-1365-default-pup6 into 48bbbf1 on puppetlabs:master.

@glennsarti glennsarti force-pushed the pdk-1365-default-pup6 branch 2 times, most recently from aafa1ac to 276e240 Compare June 10, 2019 06:13
Previously the default version of ruby selected in packaged PDK instances was
hardcoded to 2.4.5 which caused issues when updating ruby runtimes and did not
reflect that the default should really by ruby 2.5 and Puppet 6.  This commit
modifies the default ruby detection to instead use the ruby environment for the
latest Puppet Gem in the PDK package install.  Non-pkged installs are not
affected.

This commit also memoizes the default value to slightly speed up default ruby
selection.
@glennsarti glennsarti changed the title {WIP}(PDK-1365) Use dynamic ruby detection for default ruby instance (PDK-1365) Use dynamic ruby detection for default ruby instance Jun 10, 2019
@glennsarti glennsarti requested a review from scotje June 10, 2019 07:01
@glennsarti glennsarti merged commit 87dbc6c into puppetlabs:master Jun 11, 2019
@glennsarti glennsarti deleted the pdk-1365-default-pup6 branch August 19, 2019 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants