-
-
Notifications
You must be signed in to change notification settings - Fork 905
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
Requiring nokogiri/version does not fully define Nokogiri::VERSION #1896
Comments
Hi @headius, I think you're assuming a contract where one doesn't exist. The file Can you help me understand why you want to load this file individually? Specifics about your use case would really help. I imagine it's because many gems have an implicit contract that you can more-cheaply get version info if only that file is loaded, and you'd like that here -- but I'd like to validate that assumption. The change you've made in #1899 does introduce that contract; but only for JRuby. It may be worth pointing out that currently this contract does not exist for CRuby, either:
modulo that in CRuby, no errors are raised, the constants populated by |
All of which is to say, I think I'm OK with introducing this contract, but I'd like it to be consistently enforced across both backends. |
Part of fixing sparklemotion#1896.
This ensures "version.rb" can be required by itself for CRuby as well as JRuby. Part of fixing sparklemotion#1896.
This ensures "version.rb" can be required by itself for CRuby as well as JRuby. Part of fixing #1896.
This will be fixed in v1.11.0. Please watch the milestone for status. |
When requiring just 'nokogiri/version', the
Nokogiri::VERSION
errors, likely because the JRuby extension does not load.The constant should get defined within version.rb or it should require in what it needs for this constant.
The text was updated successfully, but these errors were encountered: