Skip to content

Fix feature fiber storage#736

Merged
radar merged 2 commits into
ruby-i18n:masterfrom
YashaVinter:fix-feature-fiber-storage
Jun 17, 2026
Merged

Fix feature fiber storage#736
radar merged 2 commits into
ruby-i18n:masterfrom
YashaVinter:fix-feature-fiber-storage

Conversation

@YashaVinter

Copy link
Copy Markdown

Fixes #735.

Summary

i18n 1.15.0 uses Fiber[:i18n_config], but Fiber.[] is only available starting from Ruby 3.2. The README already documents Ruby 3.2+ support, but the gemspec still allowed Ruby 3.1, which lets Bundler install a version that fails at runtime on Ruby 3.1.

This PR updates the gemspec to require Ruby >= 3.2 and adds Ruby 3.2 back to the CI matrix so the minimum supported Ruby version is tested.

Testing

I could not run the full test suite locally because my local Ruby is 3.1.7 and dependencies are not installed.

I verified locally that Ruby 3.1.7 does not support Fiber.[]:

Fiber.respond_to?(:[])
# => false

@radar

radar commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@radar radar merged commit 94891ca into ruby-i18n:master Jun 17, 2026
27 of 28 checks passed
@willnet willnet mentioned this pull request Jun 18, 2026
@chadlwilson

Copy link
Copy Markdown

Would it be possible to consider yanking 1.15.0? It now gets automatically installed for anything needing to support Ruby 3.1 (where not locked, which is common for matrix testing scenarios); or suggested to install by dependabot.

That also includes JRuby 9.4 which is only just in soft EOL now.

@Fryguy

Fryguy commented Jun 19, 2026

Copy link
Copy Markdown

Agree with the above on yanking, or perhaps fix a different way to allow 3.1? I have a number of apps and gems that need to support multiple Rubies, including Ruby 3.1, and with this change, Ruby 3.1 is just broken because 1.15.0 gets installed.

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.

[BUG] 1.15.0 Fiber Support Breaking Cases where fiber not used.

4 participants