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

Fix missing requires of i18n/core_ext/hash #574

Merged
merged 1 commit into from Jan 26, 2022
Merged

Conversation

razum2um
Copy link
Contributor

If you try to build a custom i18n backend using chain in a rails initialiser it requires only chain file but breaks with uninitialized constant I18n::HashRefinements

This cannot be reproduced during just rake test because file gets loaded, but I added explicit requires to test to reproduce failure if you stash lib changes:

$ rake test TEST=test/backend/chain_test.rb                                                                                                                                                     ​
...
i18n/lib/i18n/backend/chain.rb:20:in `<class:Chain>': uninitialized constant I18n::HashRefinements (NameError)
	from i18n/lib/i18n/backend/chain.rb:19:in `<module:Backend>'
      ​....
rake aborted!
...

same for rake test TEST=test/gettext/backend_test.rb

@radar radar merged commit 2d4ee9e into ruby-i18n:master Jan 26, 2022
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.

None yet

2 participants