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

Add ruby source files to the java gem #763

Merged
merged 1 commit into from Mar 30, 2020
Merged

Conversation

larskanis
Copy link
Member

Related to #747 .

JRuby-9.3 is expected to be fully compatible to this gem's Ruby code. This allows to ship the Ruby library code per platform java gem and add it as a default gem to JRuby.

Related to ffi#747 .
JRuby-9.3 is expected to be fully compatible to this gem's Ruby code.
This allows to ship the Ruby library code per platform java gem and add it as a default gem to JRuby.
lib/ffi.rb Show resolved Hide resolved
@larskanis larskanis merged commit 1262f42 into ffi:master Mar 30, 2020
headius added a commit to headius/ffi that referenced this pull request Sep 22, 2020
When running with --disable-gems, JRuby still needs to be able to
load FFI from stdlib. Accessing the Gem namespace here requires
that gems not be disabled.

This patch uses a simple split and integer comparison to compare
the first two digits of the JRuby version with 9.3.

See ffi#763 for the original code.
headius added a commit to headius/ffi that referenced this pull request Sep 22, 2020
When running with --disable-gems, we still need to be able to
load FFI from stdlib. Accessing the Gem namespace here requires
that gems not be disabled.

This patch splits and compares the integer elements of version
directly rather than using Gem::Version to do that comparison.

See ffi#763 for the original code.
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

3 participants