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 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
@@ -3,11 +3,5 @@ Manifest.txt
3
3
  README.rdoc
4
4
  LICENSE
5
5
  lib/krypt
6
- lib/krypt-core.rb
7
- lib/krypt/core
8
- lib/krypt/core/version.rb
6
+ lib/krypt/core.rb
9
7
  lib/kryptcore.jar
10
- spec/README
11
- spec/java
12
- spec/java/parser_factory_spec.rb
13
- spec/java/pull_header_parser_spec.rb
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/**/*", "spec/**/*"]
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
 
@@ -35,5 +35,11 @@ unless defined? JRUBY_VERSION
35
35
  end
36
36
 
37
37
  require 'kryptcore.jar'
38
- require 'krypt-provider-jdk'
38
+ require 'krypt/provider/jdk'
39
+
40
+ begin
41
+ jdk = Krypt::Provider::JDK.new
42
+ Krypt::Provider.register(jdk)
43
+ end
44
+
39
45
 
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.1
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: 2013-02-27 00:00:00.000000000 Z
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
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
17
  - - '='
19
18
  - !ruby/object:Gem::Version
20
- version: 0.0.1
21
- none: false
22
- requirement: !ruby/object:Gem::Requirement
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.1
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
- post_install_message:
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: !binary |-
71
- MA==
72
- none: false
56
+ version: 1.3.1
73
57
  requirements: []
74
- rubyforge_project:
75
- rubygems_version: 1.8.24
76
- signing_key:
77
- specification_version: 3
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: []
@@ -1,8 +0,0 @@
1
- module Krypt
2
- module Core
3
- class Version
4
- VERSION = "0.1.0.dev"
5
- end
6
- end
7
- end
8
-
data/spec/README DELETED
@@ -1,2 +0,0 @@
1
- Specs for krypt-core are to be found in the main krypt project at https://github.com/emboss/krypt.
2
-
@@ -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
data/test/scratch.rb DELETED
@@ -1,11 +0,0 @@
1
- require 'krypt'
2
- require 'openssl'
3
- require 'stringio'
4
- require 'pp'
5
- require 'base64'
6
-
7
- d = Krypt::Digest.new("SHA1")
8
- p d
9
-
10
- result = d.hexdigest("test")
11
- p result