jruby-openssl 0.8.8 → 0.8.9.dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Mavenfile +11 -0
- data/README.txt +2 -2
- data/Rakefile +4 -55
- data/lib/shared/jopenssl/version.rb +1 -1
- metadata +38 -6
- data/lib/shared/jopenssl.jar +0 -0
data/Mavenfile
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#-*- mode: ruby -*-
|
|
2
|
+
|
|
3
|
+
gemspec
|
|
4
|
+
|
|
5
|
+
# just make sure the openssl jar is in place
|
|
6
|
+
jar 'org.jruby:openssl', "#{model.version.sub(/.dev/, '')}-SNAPSHOT", :scope => :provided
|
|
7
|
+
|
|
8
|
+
properties( 'tesla.dump.pom' => 'pom.xml',
|
|
9
|
+
'tesla.dump.readonly' => true )
|
|
10
|
+
|
|
11
|
+
# vim: syntax=Ruby
|
data/README.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
= JRuby-OpenSSL
|
|
2
2
|
|
|
3
|
-
* https://github.com/jruby/jruby-
|
|
3
|
+
* https://github.com/jruby/jruby/tree/master/maven/gems/jruby-openssl
|
|
4
4
|
|
|
5
5
|
== DESCRIPTION:
|
|
6
6
|
|
|
@@ -10,4 +10,4 @@ Please report bugs and incompatibilities (preferably with testcases) to either t
|
|
|
10
10
|
mailing list [1] or the JRuby bug tracker [2].
|
|
11
11
|
|
|
12
12
|
[1]: http://xircles.codehaus.org/projects/jruby/lists
|
|
13
|
-
[2]:
|
|
13
|
+
[2]: https://github.com/jruby/jruby/issues
|
data/Rakefile
CHANGED
|
@@ -1,58 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
require 'rake/testtask'
|
|
3
|
-
load File.dirname(__FILE__) + "/lib/shared/jopenssl/version.rb"
|
|
1
|
+
#-*- mode: ruby -*-
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
JOPENSSL_JAR = 'lib/shared/jopenssl.jar'
|
|
7
|
-
GEM_FILE = "pkg/jruby-openssl-#{Jopenssl::Version::VERSION}.gem"
|
|
8
|
-
GEM_SPEC_FILE = 'jruby-openssl.gemspec'
|
|
3
|
+
require 'maven/ruby/tasks'
|
|
9
4
|
|
|
10
|
-
|
|
5
|
+
# the actual build configuration is inside the Mavenfile
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
begin
|
|
14
|
-
cpath = Java::java.lang.System.getProperty('java.class.path').split(File::PATH_SEPARATOR)
|
|
15
|
-
cpath += Java::java.lang.System.getProperty('sun.boot.class.path').split(File::PATH_SEPARATOR)
|
|
16
|
-
jruby_cpath = cpath.compact.join(File::PATH_SEPARATOR)
|
|
17
|
-
rescue => e
|
|
18
|
-
end
|
|
19
|
-
unless jruby_cpath
|
|
20
|
-
jruby_cpath = ENV['JRUBY_PARENT_CLASSPATH'] || ENV['JRUBY_HOME'] &&
|
|
21
|
-
FileList["#{ENV['JRUBY_HOME']}/lib/*.jar"].join(File::PATH_SEPARATOR)
|
|
22
|
-
end
|
|
23
|
-
bc_jars = BC_JARS.join(File::PATH_SEPARATOR)
|
|
24
|
-
jruby_cpath ? "-cp \"#{jruby_cpath.gsub('\\', '/')}#{File::PATH_SEPARATOR}#{bc_jars}\"" : "-cp \"#{bc_jars}\""
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
desc "Compile the native Java code and create the jopenssl jar file."
|
|
28
|
-
task file JOPENSSL_JAR do
|
|
29
|
-
mkdir_p "pkg/classes"
|
|
30
|
-
|
|
31
|
-
File.open("pkg/compile_options", "w") do |f|
|
|
32
|
-
f << "-g -target 1.5 -source 1.5 -Xlint:unchecked -Xlint:deprecation -d pkg/classes"
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
File.open("pkg/compile_classpath", "w") do |f|
|
|
36
|
-
f << java_classpath_arg
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
File.open("pkg/compile_sourcefiles", "w") do |f|
|
|
40
|
-
f << FileList['../../src/org/jruby/ext/openssl/**/*.java'].join(' ')
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
sh "javac @pkg/compile_options @pkg/compile_classpath @pkg/compile_sourcefiles"
|
|
44
|
-
sh "jar cf #{JOPENSSL_JAR} -C pkg/classes/ ."
|
|
45
|
-
FileUtils.cp JOPENSSL_JAR, '../../lib/ruby/shared/jopenssl.jar'
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
task :more_clean do
|
|
49
|
-
rm_f FileList[JOPENSSL_JAR]
|
|
50
|
-
end
|
|
51
|
-
task :clean => :more_clean
|
|
52
|
-
|
|
53
|
-
file GEM_FILE => [GEM_SPEC_FILE, JOPENSSL_JAR] do
|
|
54
|
-
puts "Generating #{GEM_FILE}"
|
|
55
|
-
`gem build #{GEM_SPEC_FILE}`
|
|
56
|
-
FileUtils.mv "jruby-openssl-#{Jopenssl::Version::VERSION}.gem", GEM_FILE
|
|
57
|
-
end
|
|
58
|
-
task :package => GEM_FILE
|
|
7
|
+
task :default => :build
|
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.8.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.8.9.dev
|
|
5
|
+
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Ola Bini
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-
|
|
13
|
+
date: 2013-09-19 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bouncy-castle-java
|
|
@@ -28,6 +28,38 @@ dependencies:
|
|
|
28
28
|
none: false
|
|
29
29
|
prerelease: false
|
|
30
30
|
type: :runtime
|
|
31
|
+
- !ruby/object:Gem::Dependency
|
|
32
|
+
name: rake
|
|
33
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ~>
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '10.1'
|
|
38
|
+
none: false
|
|
39
|
+
requirement: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ~>
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '10.1'
|
|
44
|
+
none: false
|
|
45
|
+
prerelease: false
|
|
46
|
+
type: :development
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: ruby-maven
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ~>
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 3.1.0.0.0
|
|
54
|
+
none: false
|
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
- - ~>
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: 3.1.0.0.0
|
|
60
|
+
none: false
|
|
61
|
+
prerelease: false
|
|
62
|
+
type: :development
|
|
31
63
|
description: JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library.
|
|
32
64
|
email: ola.bini@gmail.com
|
|
33
65
|
executables: []
|
|
@@ -36,6 +68,7 @@ extra_rdoc_files: []
|
|
|
36
68
|
files:
|
|
37
69
|
- History.txt
|
|
38
70
|
- License.txt
|
|
71
|
+
- Mavenfile
|
|
39
72
|
- README.txt
|
|
40
73
|
- Rakefile
|
|
41
74
|
- TODO-1_9-support.txt
|
|
@@ -60,7 +93,6 @@ files:
|
|
|
60
93
|
- lib/1.9/openssl/ssl.rb
|
|
61
94
|
- lib/1.9/openssl/x509-internal.rb
|
|
62
95
|
- lib/1.9/openssl/x509.rb
|
|
63
|
-
- lib/shared/jopenssl.jar
|
|
64
96
|
- lib/shared/jruby-openssl.rb
|
|
65
97
|
- lib/shared/openssl.rb
|
|
66
98
|
- lib/shared/jopenssl/version.rb
|
|
@@ -89,9 +121,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
89
121
|
none: false
|
|
90
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
123
|
requirements:
|
|
92
|
-
- - '
|
|
124
|
+
- - '>'
|
|
93
125
|
- !ruby/object:Gem::Version
|
|
94
|
-
version:
|
|
126
|
+
version: 1.3.1
|
|
95
127
|
none: false
|
|
96
128
|
requirements: []
|
|
97
129
|
rubyforge_project: jruby/jruby
|
data/lib/shared/jopenssl.jar
DELETED
|
Binary file
|