summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2021-04-03 14:58:36 +0200
committerLars Kanis <lars@greiz-reinsdorf.de>2021-04-03 14:58:36 +0200
commit85f7db9ec51635ab8fa21e26813b6274c643aac9 (patch)
treefea567e46634740629e79b9f5e110c60b189f185
parent1fb309c728bf5680c01b3781cbadea85cc6cf53b (diff)
downloadffi-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
-rw-r--r--lib/ffi.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ffi.rb b/lib/ffi.rb
index d9e7415..4c59462 100644
--- a/lib/ffi.rb
+++ b/lib/ffi.rb
@@ -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