jruby-openssl 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/lib/{shared/jopenssl.jar → jopenssl.jar} +0 -0
  2. data/lib/{shared/jopenssl → jopenssl}/version.rb +1 -1
  3. data/lib/{1.8 → jopenssl18}/openssl.rb +0 -0
  4. data/lib/{1.8 → jopenssl18}/openssl/bn.rb +0 -0
  5. data/lib/{1.8 → jopenssl18}/openssl/buffering.rb +0 -0
  6. data/lib/{1.8 → jopenssl18}/openssl/cipher.rb +0 -0
  7. data/lib/{1.8 → jopenssl18}/openssl/config.rb +0 -0
  8. data/lib/{1.8 → jopenssl18}/openssl/digest.rb +0 -0
  9. data/lib/{1.8 → jopenssl18}/openssl/pkcs7.rb +0 -0
  10. data/lib/{1.8 → jopenssl18}/openssl/ssl-internal.rb +0 -0
  11. data/lib/{1.8 → jopenssl18}/openssl/ssl.rb +0 -0
  12. data/lib/{1.8 → jopenssl18}/openssl/x509-internal.rb +0 -0
  13. data/lib/{1.8 → jopenssl18}/openssl/x509.rb +0 -0
  14. data/lib/{1.9 → jopenssl19}/openssl.rb +1 -0
  15. data/lib/{1.9 → jopenssl19}/openssl/bn.rb +0 -0
  16. data/lib/{1.9 → jopenssl19}/openssl/buffering.rb +0 -0
  17. data/lib/{1.9 → jopenssl19}/openssl/cipher.rb +0 -0
  18. data/lib/{1.9 → jopenssl19}/openssl/config.rb +0 -0
  19. data/lib/{1.9 → jopenssl19}/openssl/digest.rb +0 -0
  20. data/lib/{1.9 → jopenssl19}/openssl/ssl-internal.rb +0 -0
  21. data/lib/{1.9 → jopenssl19}/openssl/ssl.rb +0 -0
  22. data/lib/{1.9 → jopenssl19}/openssl/x509-internal.rb +0 -0
  23. data/lib/{1.9 → jopenssl19}/openssl/x509.rb +0 -0
  24. data/lib/{shared/jruby-openssl.rb → jruby-openssl.rb} +6 -5
  25. data/lib/{shared/openssl.rb → openssl.rb} +2 -5
  26. data/lib/openssl/bn.rb +5 -0
  27. data/lib/openssl/buffering.rb +5 -0
  28. data/lib/openssl/cipher.rb +5 -0
  29. data/lib/openssl/config.rb +5 -0
  30. data/lib/openssl/digest.rb +5 -0
  31. data/lib/{shared/openssl → openssl}/pkcs12.rb +0 -0
  32. data/lib/openssl/pkcs7.rb +5 -0
  33. data/lib/openssl/ssl-internal.rb +5 -0
  34. data/lib/openssl/ssl.rb +5 -0
  35. data/lib/openssl/x509-internal.rb +5 -0
  36. data/lib/openssl/x509.rb +5 -0
  37. metadata +39 -29
@@ -1,5 +1,5 @@
1
1
  module Jopenssl
2
2
  module Version
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -20,3 +20,4 @@ require 'openssl/config'
20
20
  require 'openssl/digest'
21
21
  require 'openssl/ssl-internal'
22
22
  require 'openssl/x509-internal'
23
+ require 'krypt/ossl'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,7 @@
1
+ # This file allows older version of JRuby (prior to 1.7.5) to explicitly load
2
+ # the gem version of jruby-openssl rather than the stdlib version. JRuby 1.7.5
3
+ # and higher use the "default gems" capability of RubyGems.
4
+
1
5
  unless defined? JRUBY_VERSION
2
6
  warn 'Loading jruby-openssl in a non-JRuby interpreter'
3
7
  end
@@ -14,13 +18,10 @@ require 'jruby'
14
18
  require 'jopenssl.jar'
15
19
  org.jruby.ext.openssl.OSSLLibrary.new.load(JRuby.runtime, false)
16
20
 
17
- # Add version-appropriate library path to LOAD_PATH
18
21
  if RUBY_VERSION >= '1.9.0'
19
- $LOAD_PATH.unshift(File.expand_path('../../1.9', __FILE__))
20
- load(File.expand_path('../../1.9/openssl.rb', __FILE__))
22
+ load('jopenssl19/openssl.rb')
21
23
  else
22
- $LOAD_PATH.unshift(File.expand_path('../../1.8', __FILE__))
23
- load(File.expand_path('../../1.8/openssl.rb', __FILE__))
24
+ load('jopenssl18/openssl.rb')
24
25
  end
25
26
 
26
27
  require 'openssl/pkcs12'
@@ -14,13 +14,10 @@ require 'jruby'
14
14
  require 'jopenssl.jar'
15
15
  org.jruby.ext.openssl.OSSLLibrary.new.load(JRuby.runtime, false)
16
16
 
17
- # Add version-appropriate library path to LOAD_PATH
18
17
  if RUBY_VERSION >= '1.9.0'
19
- $LOAD_PATH.unshift(File.expand_path('../../1.9', __FILE__))
20
- load(File.expand_path('../../1.9/openssl.rb', __FILE__))
18
+ load('jopenssl19/openssl.rb')
21
19
  else
22
- $LOAD_PATH.unshift(File.expand_path('../../1.8', __FILE__))
23
- load(File.expand_path('../../1.8/openssl.rb', __FILE__))
20
+ load('jopenssl18/openssl.rb')
24
21
  end
25
22
 
26
23
  require 'openssl/pkcs12'
data/lib/openssl/bn.rb ADDED
@@ -0,0 +1,5 @@
1
+ if RUBY_VERSION >= '1.9.0'
2
+ load('jopenssl19/openssl/bn.rb')
3
+ else
4
+ load('jopenssl18/openssl/bn.rb')
5
+ end
@@ -0,0 +1,5 @@
1
+ if RUBY_VERSION >= '1.9.0'
2
+ load('jopenssl19/openssl/buffering.rb')
3
+ else
4
+ load('jopenssl18/openssl/buffering.rb')
5
+ end
@@ -0,0 +1,5 @@
1
+ if RUBY_VERSION >= '1.9.0'
2
+ load('jopenssl19/openssl/cipher.rb')
3
+ else
4
+ load('jopenssl18/openssl/cipher.rb')
5
+ end
@@ -0,0 +1,5 @@
1
+ if RUBY_VERSION >= '1.9.0'
2
+ load('jopenssl19/openssl/config.rb')
3
+ else
4
+ load('jopenssl18/openssl/config.rb')
5
+ end
@@ -0,0 +1,5 @@
1
+ if RUBY_VERSION >= '1.9.0'
2
+ load('jopenssl19/openssl/digest.rb')
3
+ else
4
+ load('jopenssl18/openssl/digest.rb')
5
+ end
File without changes
@@ -0,0 +1,5 @@
1
+ if RUBY_VERSION >= '1.9.0'
2
+ load('jopenssl19/openssl/pkcs7.rb')
3
+ else
4
+ raise LoadError, "no such library in 1.8 mode: openssl/pkcs7"
5
+ end
@@ -0,0 +1,5 @@
1
+ if RUBY_VERSION >= '1.9.0'
2
+ load('jopenssl19/openssl/ssl-internal.rb')
3
+ else
4
+ load('jopenssl18/openssl/ssl-internal.rb')
5
+ end
@@ -0,0 +1,5 @@
1
+ if RUBY_VERSION >= '1.9.0'
2
+ load('jopenssl19/openssl/ssl.rb')
3
+ else
4
+ load('jopenssl18/openssl/ssl.rb')
5
+ end
@@ -0,0 +1,5 @@
1
+ if RUBY_VERSION >= '1.9.0'
2
+ load('jopenssl19/openssl/x509-internal.rb')
3
+ else
4
+ load('jopenssl18/openssl/x509-internal.rb')
5
+ end
@@ -0,0 +1,5 @@
1
+ if RUBY_VERSION >= '1.9.0'
2
+ load('jopenssl19/openssl/x509.rb')
3
+ else
4
+ load('jopenssl18/openssl/x509.rb')
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-09-19 00:00:00.000000000 Z
13
+ date: 2013-10-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bouncy-castle-java
@@ -72,32 +72,42 @@ files:
72
72
  - README.txt
73
73
  - Rakefile
74
74
  - TODO-1_9-support.txt
75
- - lib/1.8/openssl.rb
76
- - lib/1.8/openssl/bn.rb
77
- - lib/1.8/openssl/buffering.rb
78
- - lib/1.8/openssl/cipher.rb
79
- - lib/1.8/openssl/config.rb
80
- - lib/1.8/openssl/digest.rb
81
- - lib/1.8/openssl/pkcs7.rb
82
- - lib/1.8/openssl/ssl-internal.rb
83
- - lib/1.8/openssl/ssl.rb
84
- - lib/1.8/openssl/x509-internal.rb
85
- - lib/1.8/openssl/x509.rb
86
- - lib/1.9/openssl.rb
87
- - lib/1.9/openssl/bn.rb
88
- - lib/1.9/openssl/buffering.rb
89
- - lib/1.9/openssl/cipher.rb
90
- - lib/1.9/openssl/config.rb
91
- - lib/1.9/openssl/digest.rb
92
- - lib/1.9/openssl/ssl-internal.rb
93
- - lib/1.9/openssl/ssl.rb
94
- - lib/1.9/openssl/x509-internal.rb
95
- - lib/1.9/openssl/x509.rb
96
- - lib/shared/jopenssl.jar
97
- - lib/shared/jruby-openssl.rb
98
- - lib/shared/openssl.rb
99
- - lib/shared/jopenssl/version.rb
100
- - lib/shared/openssl/pkcs12.rb
75
+ - lib/jopenssl.jar
76
+ - lib/jruby-openssl.rb
77
+ - lib/openssl.rb
78
+ - lib/jopenssl/version.rb
79
+ - lib/jopenssl18/openssl.rb
80
+ - lib/jopenssl18/openssl/bn.rb
81
+ - lib/jopenssl18/openssl/buffering.rb
82
+ - lib/jopenssl18/openssl/cipher.rb
83
+ - lib/jopenssl18/openssl/config.rb
84
+ - lib/jopenssl18/openssl/digest.rb
85
+ - lib/jopenssl18/openssl/pkcs7.rb
86
+ - lib/jopenssl18/openssl/ssl-internal.rb
87
+ - lib/jopenssl18/openssl/ssl.rb
88
+ - lib/jopenssl18/openssl/x509-internal.rb
89
+ - lib/jopenssl18/openssl/x509.rb
90
+ - lib/jopenssl19/openssl.rb
91
+ - lib/jopenssl19/openssl/bn.rb
92
+ - lib/jopenssl19/openssl/buffering.rb
93
+ - lib/jopenssl19/openssl/cipher.rb
94
+ - lib/jopenssl19/openssl/config.rb
95
+ - lib/jopenssl19/openssl/digest.rb
96
+ - lib/jopenssl19/openssl/ssl-internal.rb
97
+ - lib/jopenssl19/openssl/ssl.rb
98
+ - lib/jopenssl19/openssl/x509-internal.rb
99
+ - lib/jopenssl19/openssl/x509.rb
100
+ - lib/openssl/bn.rb
101
+ - lib/openssl/buffering.rb
102
+ - lib/openssl/cipher.rb
103
+ - lib/openssl/config.rb
104
+ - lib/openssl/digest.rb
105
+ - lib/openssl/pkcs12.rb
106
+ - lib/openssl/pkcs7.rb
107
+ - lib/openssl/ssl-internal.rb
108
+ - lib/openssl/ssl.rb
109
+ - lib/openssl/x509-internal.rb
110
+ - lib/openssl/x509.rb
101
111
  - test/test_java.rb
102
112
  - test/ut_eof.rb
103
113
  - test/java/pkcs7_mime_enveloped.message
@@ -113,7 +123,7 @@ licenses: []
113
123
  post_install_message:
114
124
  rdoc_options: []
115
125
  require_paths:
116
- - lib/shared
126
+ - lib
117
127
  required_ruby_version: !ruby/object:Gem::Requirement
118
128
  requirements:
119
129
  - - '>='