summaryrefslogtreecommitdiff
path: root/ext/digest/bubblebabble
diff options
context:
space:
mode:
authorPavel Rosick√Ĺ <pavel.rosicky@easy.cz>2021-06-12 18:49:57 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-10-12 20:46:13 +0900
commit94882df3a215a3de16fa7ca18cf5c160f904c904 (patch)
tree1150503c5eb6a5b570ba3eb5e8fce26998fe036a /ext/digest/bubblebabble
parentff1f696d300cdf2a7073ddec91846cd3aee103d8 (diff)
[ruby/digest] jruby support
https://github.com/ruby/digest/commit/2e9dc14693
Diffstat (limited to 'ext/digest/bubblebabble')
-rw-r--r--ext/digest/bubblebabble/lib/bubblebabble.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/digest/bubblebabble/lib/bubblebabble.rb b/ext/digest/bubblebabble/lib/bubblebabble.rb
new file mode 100644
index 0000000000..8ad06c7740
--- /dev/null
+++ b/ext/digest/bubblebabble/lib/bubblebabble.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: false
+
+require 'digest'
+
+if RUBY_ENGINE == 'jruby'
+ JRuby::Util.load_ext("org.jruby.ext.digest.BubbleBabble")
+else
+ require 'digest/bubblebabble.so'
+end