Repository navigation
Allow hashie v6 - #41
Merged
Merged
Conversation
Contributor
Author
|
@pboling I would appreciate if this got shipped & release. I'm keeping an eye for any feedback, thanks |
octo-sts-7 Bot
pushed a commit
to wolfi-dev/os
that referenced
this pull request
Nov 15, 2026
* fix(snaky_hash): pin hashie<6 to match the gemspec snaky_hash 2.0.9 requires hashie >= 0.1.0, < 6, but the packages depended on hashie with no version, so apk now picks hashie 6.0.0. RubyGems then refuses to activate snaky_hash (Gem::MissingSpecError), which breaks oauth2 and gitlab-mail_room at startup. Pin hashie<6 for the ruby3.3, ruby3.4 and ruby4.0 packages and add a functional test over Hashie::Mash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mark McCormick <mark.mccormick@chainguard.dev> * fix(snaky_hash): note when to drop the hashie<6 pin Same TODO style as gitlab-mail_room's redis<6 pin: the cap matches snaky_hash 2.0.9's gemspec, and upstream ruby-oauth/snaky_hash#41 lifts it to < 7. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mark McCormick <mark.mccormick@chainguard.dev> --------- Signed-off-by: Mark McCormick <mark.mccormick@chainguard.dev> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Export: f5aec82b47cff5cb9a95c33e6f5b1af8a824198b
Member
|
This is great, thanks @lucasprag ! |
|
@pboling could you release a new version with this change to unblock hashie? 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hashie 6.0.0 came out on 2026-11-11, and the
< 6cap stops apps that depend on snaky_hash (for example through oauth2) from upgrading to it.This raises the cap to
< 7. The breaking changes in 6.0 are in Dash/Trash, DeepMerge, DeepFind andMash.load. SnakyHash overridesconvert_keyandconvert_value, and 6.0 still calls both hooks with the same signatures.Changes
hashie >= 0.1.0, < 7gemfiles/modular/hashie_v6.gemfile. Thecurrentappraisal now uses it, and the Ruby 3.0–3.3 appraisals stay on v5, so CI covers both majors. Happy to move a different set of appraisals if you'd prefer.coverage_local.gemfile/templating_local.gemfile, updatedGemfile.lock, and added a CHANGELOG entry.Tested locally (Ruby 4.0.9)
gemfiles/current.gemfilewith hashie 6.0.0: 93 examples, 0 failuresgemfiles/ruby_3_3.gemfilewith hashie 5.2.0: 93 examples, 0 failuresStringKeyed,SymbolKeyedand a serializer-enabled class through nested hashes, a nestedHashsubclass, arrays of hashes, method access, keys that collide with built-in methods,merge,deep_merge,dup, anddump/load. Its output was identical under 5.2.0 and 6.0.0.