krypt-core 0.0.1-universal-java → 0.0.2.rc1-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Manifest.txt +1 -7
- data/Rakefile +3 -3
- data/lib/{krypt-core.rb → krypt/core.rb} +7 -1
- data/lib/kryptcore.jar +0 -0
- metadata +21 -37
- data/lib/krypt/core/version.rb +0 -8
- data/spec/README +0 -2
- data/spec/java/parser_factory_spec.rb +0 -20
- data/spec/java/pull_header_parser_spec.rb +0 -22
- data/test/scratch.rb +0 -11
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f2e317b847cb30c14442a3e0b0326f855469d836
|
4
|
+
data.tar.gz: 7ba38451d8698a21051aba98c0a90dc1f0867305
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9359f2439c9615c8c27ef547f612bd151e3f83623d0497d8b2f4aee523241ba1cbfd62d387cb90ace2657a4cbd3704f37f8810d58cbec931ffbe6208e017aa87
|
7
|
+
data.tar.gz: 55dbdb9258a8127b8c3516c489b73bc23d7f5615070b3cfc4c3969afcc12e2ea822d6fb9394eddf67dea51f1443d7d2da6a3d61494fabc4c3b8ef2a241c5c902
|
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
@@ -6,16 +6,16 @@ require 'ant'
|
|
6
6
|
KRYPT_HOME = '../krypt'
|
7
7
|
|
8
8
|
# TODO: update
|
9
|
-
MANIFEST = FileList["Rakefile", "Manifest.txt", "README.rdoc", "LICENSE", "lib/**/*"
|
9
|
+
MANIFEST = FileList["Rakefile", "Manifest.txt", "README.rdoc", "LICENSE", "lib/**/*"]
|
10
10
|
File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f.puts n } }
|
11
11
|
|
12
12
|
task :default => [:build, :spec]
|
13
13
|
|
14
|
-
file "lib/kryptcore.jar" => :build
|
14
|
+
file "lib/krypt/kryptcore.jar" => :build
|
15
15
|
|
16
16
|
desc "Delete artifact files"
|
17
17
|
task :clean do
|
18
|
-
rm_f FileList['lib/kryptcore.jar']
|
18
|
+
rm_f FileList['lib/krypt/kryptcore.jar']
|
19
19
|
ant :clean
|
20
20
|
end
|
21
21
|
|
data/lib/kryptcore.jar
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,79 +1,63 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: krypt-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2.rc1
|
6
5
|
platform: universal-java
|
7
6
|
authors:
|
8
7
|
- Hiroshi Nakamura, Martin Bosslet
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-02-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: krypt-provider-jdk
|
16
|
-
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
17
|
- - '='
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.0.
|
21
|
-
|
22
|
-
|
19
|
+
version: 0.0.2.rc1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.0.
|
27
|
-
none: false
|
28
|
-
prerelease: false
|
29
|
-
type: :runtime
|
26
|
+
version: 0.0.2.rc1
|
30
27
|
description: Java implementation of the krypt-core API
|
31
28
|
email: Martin.Bosslet@gmail.com
|
32
29
|
executables: []
|
33
30
|
extensions: []
|
34
31
|
extra_rdoc_files: []
|
35
32
|
files:
|
36
|
-
- Rakefile
|
37
33
|
- LICENSE
|
38
|
-
- README.rdoc
|
39
34
|
- Manifest.txt
|
35
|
+
- README.rdoc
|
36
|
+
- Rakefile
|
37
|
+
- lib/krypt/core.rb
|
40
38
|
- lib/kryptcore.jar
|
41
|
-
- !binary |-
|
42
|
-
bGliL2tyeXB0LWNvcmUucmI=
|
43
|
-
- !binary |-
|
44
|
-
bGliL2tyeXB0L2NvcmUvdmVyc2lvbi5yYg==
|
45
|
-
- !binary |-
|
46
|
-
c3BlYy9SRUFETUU=
|
47
|
-
- !binary |-
|
48
|
-
c3BlYy9qYXZhL3B1bGxfaGVhZGVyX3BhcnNlcl9zcGVjLnJi
|
49
|
-
- !binary |-
|
50
|
-
c3BlYy9qYXZhL3BhcnNlcl9mYWN0b3J5X3NwZWMucmI=
|
51
|
-
- !binary |-
|
52
|
-
dGVzdC9zY3JhdGNoLnJi
|
53
39
|
homepage: https://github.com/krypt/krypt-core-java
|
54
40
|
licenses:
|
55
41
|
- MIT
|
56
|
-
|
42
|
+
metadata: {}
|
43
|
+
post_install_message:
|
57
44
|
rdoc_options: []
|
58
45
|
require_paths:
|
59
46
|
- lib
|
60
47
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
48
|
requirements:
|
62
|
-
- -
|
49
|
+
- - ">="
|
63
50
|
- !ruby/object:Gem::Version
|
64
51
|
version: 1.9.3
|
65
|
-
none: false
|
66
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
53
|
requirements:
|
68
|
-
- -
|
54
|
+
- - ">"
|
69
55
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
71
|
-
MA==
|
72
|
-
none: false
|
56
|
+
version: 1.3.1
|
73
57
|
requirements: []
|
74
|
-
rubyforge_project:
|
75
|
-
rubygems_version:
|
76
|
-
signing_key:
|
77
|
-
specification_version:
|
58
|
+
rubyforge_project:
|
59
|
+
rubygems_version: 2.2.0
|
60
|
+
signing_key:
|
61
|
+
specification_version: 4
|
78
62
|
summary: krypt-core API for JRuby
|
79
63
|
test_files: []
|
data/lib/krypt/core/version.rb
DELETED
data/spec/README
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'java'
|
2
|
-
$CLASSPATH << File.expand_path('../../lib/kryptcore.jar', File.dirname(__FILE__))
|
3
|
-
java_import 'impl.krypt.asn1.ParserFactory'
|
4
|
-
java_import 'impl.krypt.asn1.parser.PullHeaderParser'
|
5
|
-
|
6
|
-
describe "ParserFactory" do
|
7
|
-
it "can be instanciated" do
|
8
|
-
ParserFactory.new.should be_an_instance_of ParserFactory
|
9
|
-
end
|
10
|
-
|
11
|
-
describe "instance" do
|
12
|
-
subject {
|
13
|
-
ParserFactory.new
|
14
|
-
}
|
15
|
-
|
16
|
-
it "creates PullHeaderParser" do
|
17
|
-
subject.newHeaderParser.should be_an_instance_of PullHeaderParser
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'java'
|
2
|
-
require 'openssl'
|
3
|
-
$CLASSPATH << File.expand_path('../../lib/kryptcore.jar', File.dirname(__FILE__))
|
4
|
-
java_import 'java.io.ByteArrayInputStream'
|
5
|
-
java_import 'impl.krypt.asn1.ParserFactory'
|
6
|
-
java_import 'impl.krypt.asn1.ParsedHeader'
|
7
|
-
java_import 'impl.krypt.asn1.parser.PullHeaderParser'
|
8
|
-
|
9
|
-
describe "PullHeaderParser" do
|
10
|
-
subject {
|
11
|
-
ParserFactory.new.new_header_parser
|
12
|
-
}
|
13
|
-
|
14
|
-
it "returns parsed header" do
|
15
|
-
test = %w{04 03 01 02 03}
|
16
|
-
raw = [test.join('')].pack('H*')
|
17
|
-
header = subject.next(ByteArrayInputStream.new(raw.to_java_bytes))
|
18
|
-
expected = OpenSSL::ASN1.decode(raw)
|
19
|
-
String.from_java_bytes(header.value).should == expected.value
|
20
|
-
header.parsed_tag.tag.should == expected.tag
|
21
|
-
end
|
22
|
-
end
|