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/sha2 | |
parent | ff1f696d300cdf2a7073ddec91846cd3aee103d8 (diff) |
[ruby/digest] jruby support
https://github.com/ruby/digest/commit/2e9dc14693
Diffstat (limited to 'ext/digest/sha2')
-rw-r--r-- | ext/digest/sha2/lib/sha2.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/digest/sha2/lib/sha2.rb b/ext/digest/sha2/lib/sha2.rb index 61a0734850..22e099768c 100644 --- a/ext/digest/sha2/lib/sha2.rb +++ b/ext/digest/sha2/lib/sha2.rb @@ -11,7 +11,12 @@ # $Id$ require 'digest' -require 'digest/sha2.so' + +if RUBY_ENGINE == 'jruby' + JRuby::Util.load_ext("org.jruby.ext.digest.SHA2") +else + require 'digest/sha2.so' +end module Digest # |