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

JSON and URI updates #9523

Merged
merged 2 commits into from
Nov 26, 2024
Merged

Conversation

mhashizume
Copy link
Contributor

A new JSON gem release (2.8.0) changed how empty arrays and hashes are pretty printed. This PR updates Puppet to maintain past behavior and adds a test for empty hashes.

Ruby also released a new URI gem (1.0.0) this month that adds a space to their error messages. This PR updates our test to reflect that.

The URI gem recently updated its error messages to include a space where
there previously was not one: ruby/uri@9f2c7ed

This commit updates our test to reflect that change.
@mhashizume mhashizume added the maintenance Maintenance chores are excluded from changelogs label Nov 25, 2024
@mhashizume mhashizume requested a review from a team as a code owner November 25, 2024 23:47
The JSON gem has historically included newlines when pretty printing
empty arrays or hashes. This changed with ruby/json@b2c4480 in JSON
2.8.0.

In order to maintain consistent behavior for our users, this commit
special cases empty array and hash facts and adds a new test for empty
hashes.
@mhashizume mhashizume force-pushed the maint/main/test-fixes branch from 2853f8f to 295d2f9 Compare November 25, 2024 23:50
@cthorn42 cthorn42 merged commit e967115 into puppetlabs:main Nov 26, 2024
7 of 11 checks passed
@mhashizume mhashizume deleted the maint/main/test-fixes branch November 26, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance chores are excluded from changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants