-
Notifications
You must be signed in to change notification settings - Fork 35
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
Autoload the parsers on first use #66
Autoload the parsers on first use #66
Conversation
Adding this gem to an application should probably load the gettext parsing utilities when it's being used at runtime. Currently, the gem entry lib file requires parser which eager loads these parsers and consumes time and memory when the developer or system may not need them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great contribution!
Fails for ruby 2.7, I'm thinking about dropping all ruby versions which are already eol, like everything below 3.1. |
Or at least below 3.0 |
@tboerger It looks like #65 is also failing on 2.7 with rails 7 for the same io console reason:
I'd hate to drop 2.7 since it's supported with rails 7.0 unless it's truly required. I can't recreate it locally with ruby 2.7/bundler 1.17/rails 7.0, so I'm wondering if it's specific to the CI environment. My first thought is loosening the bundler 1.17 requirement. Any ideas? |
It works for me locally. I'll close and reopen to try it again but it expect it to fail similarly to #65
|
Ok, I opened #67 to see if we can get it to pass with ruby 2.7, rails 6.1, and bundler 2.4 as the minimums for testing. |
I have published this change as v2.1.0 now, thanks for your effort. |
Thank you! I opened #69 for a minor typo. Have a great day. |
Adding this gem to an application should probably load the gettext parsing utilities when it's being used at runtime. Currently, the gem entry lib file requires parser which eager loads these parsers and consumes time and memory when the developer or system may not need them.
before this PR
after this PR
Using this script: