diff options
author | Pavel Rosický <pavel.rosicky@easy.cz> | 2021-06-12 18:49:57 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-10-12 20:46:13 +0900 |
commit | 94882df3a215a3de16fa7ca18cf5c160f904c904 (patch) | |
tree | 1150503c5eb6a5b570ba3eb5e8fce26998fe036a /ext/digest/md5 | |
parent | ff1f696d300cdf2a7073ddec91846cd3aee103d8 (diff) | |
download | ruby-94882df3a215a3de16fa7ca18cf5c160f904c904.tar.gz |
[ruby/digest] jruby support
https://github.com/ruby/digest/commit/2e9dc14693
Diffstat (limited to 'ext/digest/md5')
-rw-r--r-- | ext/digest/md5/lib/md5.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/digest/md5/lib/md5.rb b/ext/digest/md5/lib/md5.rb new file mode 100644 index 0000000000..3748f9d187 --- /dev/null +++ b/ext/digest/md5/lib/md5.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: false + +require 'digest' + +if RUBY_ENGINE == 'jruby' + JRuby::Util.load_ext("org.jruby.ext.digest.MD5") +else + require 'digest/md5.so' +end |