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

Fixed version matching in extconf.rb. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidbrewer
Copy link

A regex near the beginning of extconf.rb was intended to determine if the Ruby version was 1.8.x. However, it was written in such a way that it would also match Ruby 2.1.8. In this case, the extension would fail to compile because the wrong headers were being used.

The regex has now been modified to be more specific to prevent this issue. Caveat: although I have tested this against Ruby 2.1.8, I do not have a Ruby 1.8.x environment to test against to confirm that it works there.

A regex near the beginning of extconf.rb was intended to determine if
the Ruby version was 1.8.x. However, it was written in such a way that
it would also match Ruby 2.1.8. In this case, the extension would fail
to compile because the wrong headers were being used.
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.

1 participant