Skip to content

Commit 79d2f55

Browse files
committed
load before warn-ing on using an unsupported jossl VERSION
1 parent ab9ff6c commit 79d2f55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/jopenssl/load.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
warn 'Loading jruby-openssl gem in a non-JRuby interpreter' unless defined? JRUBY_VERSION
2-
warn "JRuby #{JRUBY_VERSION} is not supported by jruby-openssl #{Jopenssl::VERSION}" if JRUBY_VERSION <= '1.7.20'
32

43
require 'java'
54
require 'jopenssl/version'
65

6+
warn "JRuby #{JRUBY_VERSION} is not supported by jruby-openssl #{Jopenssl::VERSION}" if JRUBY_VERSION <= '1.7.20'
7+
78
# NOTE: assuming user does pull in BC .jars from somewhere else on the CP
89
unless ENV_JAVA['jruby.openssl.load.jars'].eql?('false')
910
version = Jopenssl::BOUNCY_CASTLE_VERSION

0 commit comments

Comments
 (0)