Skip to content

Standardize podspec json serialization to Ruby 2.7+ format - #787

Merged
amorde merged 1 commit into
masterfrom
amorde/standardize-json-serialization
Nov 14, 2026
Merged

amorde merged 1 commit into
masterfrom
amorde/standardize-json-serialization

Conversation

@amorde

@amorde amorde commented Nov 14, 2026

Copy link
Copy Markdown
Member

Follow up to f9e74f3

the json gem switched behavior in 2.8.0 to stop rendering empty [] / {} collections with newlines. Ruby 2.6 is only compatible with the older versions of the gem that include the extra empty space:

Ruby 2.6 / json < 2.8.0 json 2.8.0 +
"array_field": [

]
"array_field": []

this is problematic as we commit spec checksums to the manifest and Podfile.lock. We can't pin our behavior on the old json gem, so instead we're forcing the new behavior even on older Rubies.

@amorde
amorde force-pushed the amorde/standardize-json-serialization branch from fdbdd9a to 6dbbb00 Compare November 14, 2026 21:34
@amorde
amorde merged commit 3dc855b into master Nov 14, 2026
6 checks passed
@amorde
amorde deleted the amorde/standardize-json-serialization branch November 14, 2026 21:36
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.

1 participant