Skip to content

Allow hashie v6 - #41

Merged
pboling merged 1 commit into
ruby-oauth:mainfrom
lucasprag:allow-hashie-6
Nov 15, 2026
Merged

pboling merged 1 commit into
ruby-oauth:mainfrom
lucasprag:allow-hashie-6

Conversation

@lucasprag

Copy link
Copy Markdown
Contributor

hashie 6.0.0 came out on 2026-11-11, and the < 6 cap 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 and Mash.load. SnakyHash overrides convert_key and convert_value, and 6.0 still calls both hooks with the same signatures.

Changes

  • gemspec: hashie >= 0.1.0, < 7
  • New gemfiles/modular/hashie_v6.gemfile. The current appraisal 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.
  • Mirrored the new range in coverage_local.gemfile / templating_local.gemfile, updated Gemfile.lock, and added a CHANGELOG entry.

Tested locally (Ruby 4.0.9)

  • gemfiles/current.gemfile with hashie 6.0.0: 93 examples, 0 failures
  • gemfiles/ruby_3_3.gemfile with hashie 5.2.0: 93 examples, 0 failures
  • A script that runs StringKeyed, SymbolKeyed and a serializer-enabled class through nested hashes, a nested Hash subclass, arrays of hashes, method access, keys that collide with built-in methods, merge, deep_merge, dup, and dump/load. Its output was identical under 5.2.0 and 6.0.0.

@lucasprag

lucasprag commented Nov 12, 2026 •

Copy link
Copy Markdown
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
@pboling

pboling commented Nov 15, 2026

Copy link
Copy Markdown
Member

This is great, thanks @lucasprag !

@pboling
pboling merged commit 85f8f71 into ruby-oauth:main Nov 15, 2026
@jakeonfire

Copy link
Copy Markdown

@pboling could you release a new version with this change to unblock hashie? 🙏

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.

3 participants