jruby-openssl 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -0,0 +1,23 @@
1
+ unless defined? JRUBY_VERSION
2
+ warn 'Loading jruby-openssl in a non-JRuby interpreter'
3
+ end
4
+
5
+ # Load bouncy-castle gem if available
6
+ begin
7
+ require 'bouncy-castle-java'
8
+ rescue LoadError
9
+ # runs under restricted mode or uses builtin BC
10
+ end
11
+
12
+ # Load extension
13
+ require 'jruby'
14
+ require 'jopenssl.jar'
15
+ org.jruby.ext.openssl.OSSLLibrary.new.load(JRuby.runtime, false)
16
+
17
+ if RUBY_VERSION >= '1.9.0'
18
+ load('jopenssl19/openssl.rb')
19
+ else
20
+ load('jopenssl18/openssl.rb')
21
+ end
22
+
23
+ require 'openssl/pkcs12'
@@ -1,5 +1,5 @@
1
1
  module Jopenssl
2
2
  module Version
3
- VERSION = "0.9.3"
3
+ VERSION = "0.9.4"
4
4
  end
5
5
  end
@@ -2,28 +2,4 @@
2
2
  # the gem version of jruby-openssl rather than the stdlib version. JRuby 1.7.5
3
3
  # and higher use the "default gems" capability of RubyGems.
4
4
 
5
- unless defined? JRUBY_VERSION
6
- warn 'Loading jruby-openssl in a non-JRuby interpreter'
7
- end
8
-
9
- # Load bouncy-castle gem if available
10
- begin
11
- require 'bouncy-castle-java'
12
- rescue LoadError
13
- # runs under restricted mode or uses builtin BC
14
- end
15
-
16
- # Load extension
17
- require 'jruby'
18
- # only boot ext if jar has not been loaded before
19
- if require 'jopenssl.jar'
20
- org.jruby.ext.openssl.OSSLLibrary.new.load(JRuby.runtime, false)
21
- end
22
-
23
- if RUBY_VERSION >= '1.9.0'
24
- load('jopenssl19/openssl.rb')
25
- else
26
- load('jopenssl18/openssl.rb')
27
- end
28
-
29
- require 'openssl/pkcs12'
5
+ require 'jopenssl/load'
@@ -1,25 +1 @@
1
- unless defined? JRUBY_VERSION
2
- warn 'Loading jruby-openssl in a non-JRuby interpreter'
3
- end
4
-
5
- # Load bouncy-castle gem if available
6
- begin
7
- require 'bouncy-castle-java'
8
- rescue LoadError
9
- # runs under restricted mode or uses builtin BC
10
- end
11
-
12
- # Load extension
13
- require 'jruby'
14
- # only boot ext if jar has not been loaded before
15
- if require 'jopenssl.jar'
16
- org.jruby.ext.openssl.OSSLLibrary.new.load(JRuby.runtime, false)
17
- end
18
-
19
- if RUBY_VERSION >= '1.9.0'
20
- load('jopenssl19/openssl.rb')
21
- else
22
- load('jopenssl18/openssl.rb')
23
- end
24
-
25
- require 'openssl/pkcs12'
1
+ require 'jopenssl/load'
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
5
4
  prerelease:
5
+ version: 0.9.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ola Bini
@@ -75,6 +75,7 @@ files:
75
75
  - lib/jopenssl.jar
76
76
  - lib/jruby-openssl.rb
77
77
  - lib/openssl.rb
78
+ - lib/jopenssl/load.rb
78
79
  - lib/jopenssl/version.rb
79
80
  - lib/jopenssl18/openssl.rb
80
81
  - lib/jopenssl18/openssl/bn.rb