Skip to content

Create stpst 11 version with Trixie support#3

Open
rfpronk wants to merge 25 commits intomainfrom
stpst11
Open

Create stpst 11 version with Trixie support#3
rfpronk wants to merge 25 commits intomainfrom
stpst11

Conversation

@rfpronk
Copy link
Copy Markdown
Collaborator

@rfpronk rfpronk commented Mar 1, 2026

Ref nedap/puppet/pull/16172

Diff to stpst10, not main, to see what actually changed. 3.8.7.stpst.10...nedap:puppet-gem:stpst11

We only use this repo with the tags, not on main/master

Ref nedap/steppingstone/issues/10588

@rfpronk rfpronk self-assigned this Mar 1, 2026
@rfpronk rfpronk changed the title Stpst11 Create stpst 11 version with Trixie support Apr 14, 2026
Copy link
Copy Markdown

@terraflubb terraflubb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one suggestion which isn't really a suggestion, just a thing I like to draw attention to when anybody does it, but in this case it doesn't really matter.

🧇 🐳

Comment on lines +101 to +106
if ::Gem::VERSION =~ /^[012]\./
command << "--no-rdoc" << "--no-ri" << resource[:name]
else
# Rubygems 3.0.0 changed --no-ri to --no-document
command << "--no-document" << resource[:name]
end
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not important enough to request it as a change, but I wanted to flag it since it's a tiiiiny example of something I see a lot in stpst code (not you specifically, just in general, even by me when I miss it)

When a conditional has a common component, yanking it out sets you up for success. Because if that thing grows, it becomes more duplication to maintain. Or if it changes in one it might be forgotten in the other.

Again, this is like 10 characters so it doesn't matter here at all, I'm not that pedantic.

Suggested change
if ::Gem::VERSION =~ /^[012]\./
command << "--no-rdoc" << "--no-ri" << resource[:name]
else
# Rubygems 3.0.0 changed --no-ri to --no-document
command << "--no-document" << resource[:name]
end
if ::Gem::VERSION =~ /^[012]\./
command << "--no-rdoc" << "--no-ri"
else
# Rubygems 3.0.0 changed --no-ri to --no-document
command << "--no-document"
end
command << resource[:name]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yeah I agree, but I didn't touch that part of the code 😄 That's made by puppetlabs

3.8.7.stpst.10...nedap:puppet-gem:stpst11 is what I changed here

# REVISIT: This is less that ideal, I think, but right now I am more
# comfortable watching us ship with some copyright than without any; we
# can redress that when it becomes appropriate. --daniel 2011-04-27
it :copyright do should =~ /20\d{2}/ end
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird that the syntax changed! The possessive its sounds better to me when dealing with properties. But better to be consistent, I guess. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants