File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ Gem::Specification.new do |s|
29
29
s . requirements << "jar org.bouncycastle:bcpkix-jdk15on, #{ bc_version } "
30
30
s . requirements << "jar org.bouncycastle:bcprov-jdk15on, #{ bc_version } "
31
31
32
+ s . required_ruby_version = '>= 1.9.3'
33
+ s . required_rubygems_version = '>= 2.4.8'
34
+
32
35
s . add_development_dependency 'jar-dependencies' , '~> 0.1'
33
36
34
37
s . add_development_dependency 'mocha' , '~> 1.1.0'
Original file line number Diff line number Diff line change 1
- warn 'Loading jruby-openssl in a non-JRuby interpreter' unless defined? JRUBY_VERSION
1
+ 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'
2
3
3
4
require 'java'
4
5
require 'jopenssl/version'
14
15
require_jar ( 'org.bouncycastle' , 'bcprov-jdk15on' , version )
15
16
bc_jars = true
16
17
rescue LoadError
18
+ bc_jars = false
17
19
end
18
20
unless bc_jars
19
21
load "org/bouncycastle/bcpkix-jdk15on/#{ version } /bcpkix-jdk15on-#{ version } .jar"
You can’t perform that action at this time.
0 commit comments