-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support ruby 1.9.3 #23
Conversation
OK, so it's not as straightforward as I'd hoped. Would you be interested in this change if I can get it working? |
59857cc
to
d5ca7d2
Compare
I have the tests passing, but I'm not sure what I've done is correct. The ruby issue that introduced |
ext/brotli/extconf.rb
Outdated
# Gem should support wide range of ruby versions | ||
def _dir | ||
File.dirname(__FILE__) | ||
end |
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.
I think this func does not need. just write File.dirname(__FILE__)
as like spec file.
Oh, I'm don't know too. It scary... |
Despite 1.9 being EOL, some people still need it. This changes adds support for that. The main issue was __dir__ is a 2.x feature.
d5ca7d2
to
9489553
Compare
I think not supporting 1.9 is a reasonable position, since it's been EOL for a number of years. People that still have to use 1.9 should be encouraged to upgrade. |
Ah, sorry for Misleading response. |
Invoke directly
rb_thread_call_without_gvl is an internal API in Ruby 1.9, and was only made part of ruby/thread.h in 2.x. To support 1.9, we instead call the function directly. This is deemed less risky than relying on an unexported, internal API from the EOL Ruby 1.9.x code base.
Despite 1.9 being EOL, some people still need it. This changes adds
support for that. The main issue was dir is a 2.x feature.