Skip to content

Commit 98ab7bb

Browse files
committed
(officially) drop support for anything below ~ JRuby 1.7.20
1 parent 036dc0f commit 98ab7bb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

jruby-openssl.gemspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ Gem::Specification.new do |s|
2929
s.requirements << "jar org.bouncycastle:bcpkix-jdk15on, #{bc_version}"
3030
s.requirements << "jar org.bouncycastle:bcprov-jdk15on, #{bc_version}"
3131

32+
s.required_ruby_version = '>= 1.9.3'
33+
s.required_rubygems_version = '>= 2.4.8'
34+
3235
s.add_development_dependency 'jar-dependencies', '~> 0.1'
3336

3437
s.add_development_dependency 'mocha', '~> 1.1.0'

lib/jopenssl/load.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
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'
23

34
require 'java'
45
require 'jopenssl/version'
@@ -14,6 +15,7 @@
1415
require_jar( 'org.bouncycastle', 'bcprov-jdk15on', version )
1516
bc_jars = true
1617
rescue LoadError
18+
bc_jars = false
1719
end
1820
unless bc_jars
1921
load "org/bouncycastle/bcpkix-jdk15on/#{version}/bcpkix-jdk15on-#{version}.jar"

0 commit comments

Comments
 (0)