diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2021-04-03 14:58:36 +0200 |
---|---|---|
committer | Lars Kanis <lars@greiz-reinsdorf.de> | 2021-04-03 14:58:36 +0200 |
commit | 85f7db9ec51635ab8fa21e26813b6274c643aac9 (patch) | |
tree | fea567e46634740629e79b9f5e110c60b189f185 /lib | |
parent | 1fb309c728bf5680c01b3781cbadea85cc6cf53b (diff) | |
download | ffi-85f7db9ec51635ab8fa21e26813b6274c643aac9.tar.gz |
Revert "Enable loading FFI gem on rubinius"
This reverts commit 195e12f3ee52a8f5620fd8286c2b94737b6b4fc2.
Removing constants is contrary to expectation.
It was introduced to replace Rubinius internal FFI in favor of the gem.
We no longer test on Rubinius and Rubinius seems to be dead.
So we can remove this line.
Fixes 896
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ffi.rb | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,4 @@ -if RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx' - Object.send(:remove_const, :FFI) if defined?(::FFI) +if RUBY_ENGINE == 'ruby' begin require RUBY_VERSION.split('.')[0, 2].join('.') + '/ffi_c' rescue Exception |