xmlsec 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ext/xmlsec/extconf.rb +2 -2
- data/lib/xmlsec/version.rb +1 -1
- data/spec/spec_helper.rb +9 -0
- data/spec/xmlsec/sign_spec.rb +1 -4
- data/spec/xmlsec/verify_spec.rb +1 -7
- metadata +9 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1104957a44443972693a8e34b5bc6e827d547039
|
4
|
+
data.tar.gz: 3b1f966d88e3c0994c25bb04ffae4eea99e64df9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8bcd75ce8299f013eebd457721c843cdd6db271dbe3fde10eaba9fd420991f9fc50ba222486c4bec5619595facf01fb5c0da96db013e9238e9f23cd0c09c4cc1
|
7
|
+
data.tar.gz: 978b24daad003f20cb262f4b496130bc48b79194c91938471e53d4ca7751495e73175419ae9729013ce7029740d6eb8163db3e40b03430528ff76ef195ac99ed
|
data/ext/xmlsec/extconf.rb
CHANGED
@@ -20,7 +20,7 @@ if (xc = with_config('xmlsec1-config')) or RUBY_PLATFORM.match(/darwin/i) then
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
else
|
23
|
-
pkg_config('xmlsec1')
|
23
|
+
pkg_config('xmlsec1-openssl') || pkg_config('xmlsec1')
|
24
24
|
end
|
25
25
|
|
26
26
|
unless (have_library('xmlsec1', 'xmlSecDSigCtxCreate') or
|
@@ -35,4 +35,4 @@ need libxmlsec1.
|
|
35
35
|
EOL
|
36
36
|
end
|
37
37
|
|
38
|
-
create_makefile('xmlsec/xmlsec_ext')
|
38
|
+
create_makefile('xmlsec/xmlsec_ext')
|
data/lib/xmlsec/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/xmlsec/sign_spec.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe XmlSec do
|
4
|
-
|
5
4
|
it "should sign unsigned.test.xml with unprotected private key" do
|
6
5
|
asset_dir = File.expand_path('../../assets', __FILE__)
|
7
6
|
xml = XmlSec::sign_file(
|
@@ -315,6 +314,4 @@ describe XmlSec do
|
|
315
314
|
"xmlns" => "http://www.w3.org/2000/09/xmldsig#"
|
316
315
|
).count.should eql(1)
|
317
316
|
end
|
318
|
-
|
319
|
-
|
320
|
-
end
|
317
|
+
end
|
data/spec/xmlsec/verify_spec.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe XmlSec do
|
4
|
-
|
5
4
|
it "should verify signed.test.xml with public key" do
|
6
5
|
asset_dir = File.expand_path('../../assets', __FILE__)
|
7
6
|
XmlSec::valid_file?(
|
@@ -9,7 +8,6 @@ describe XmlSec do
|
|
9
8
|
File.join(asset_dir, 'public.key.pem'),
|
10
9
|
nil
|
11
10
|
).should be_true
|
12
|
-
|
13
11
|
end
|
14
12
|
|
15
13
|
it "should verify signed.test.xml certificate" do
|
@@ -19,7 +17,6 @@ describe XmlSec do
|
|
19
17
|
nil,
|
20
18
|
File.join(asset_dir, 'x509.crt')
|
21
19
|
).should be_true
|
22
|
-
|
23
20
|
end
|
24
21
|
|
25
22
|
|
@@ -30,7 +27,6 @@ describe XmlSec do
|
|
30
27
|
File.join(asset_dir, 'public.key.pem'),
|
31
28
|
nil
|
32
29
|
).should be_true
|
33
|
-
|
34
30
|
end
|
35
31
|
|
36
32
|
it "should verify xml string certificate" do
|
@@ -40,7 +36,5 @@ describe XmlSec do
|
|
40
36
|
nil,
|
41
37
|
File.join(asset_dir, 'x509.crt')
|
42
38
|
).should be_true
|
43
|
-
|
44
39
|
end
|
45
|
-
|
46
|
-
end
|
40
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmlsec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tomas Didziokas
|
@@ -12,12 +11,11 @@ authors:
|
|
12
11
|
autorequire:
|
13
12
|
bindir: bin
|
14
13
|
cert_chain: []
|
15
|
-
date:
|
14
|
+
date: 2014-08-26 00:00:00.000000000 Z
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
18
17
|
name: rake-compiler
|
19
18
|
requirement: !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
19
|
requirements:
|
22
20
|
- - ~>
|
23
21
|
- !ruby/object:Gem::Version
|
@@ -25,7 +23,6 @@ dependencies:
|
|
25
23
|
type: :development
|
26
24
|
prerelease: false
|
27
25
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
26
|
requirements:
|
30
27
|
- - ~>
|
31
28
|
- !ruby/object:Gem::Version
|
@@ -33,7 +30,6 @@ dependencies:
|
|
33
30
|
- !ruby/object:Gem::Dependency
|
34
31
|
name: rake
|
35
32
|
requirement: !ruby/object:Gem::Requirement
|
36
|
-
none: false
|
37
33
|
requirements:
|
38
34
|
- - '='
|
39
35
|
- !ruby/object:Gem::Version
|
@@ -41,7 +37,6 @@ dependencies:
|
|
41
37
|
type: :development
|
42
38
|
prerelease: false
|
43
39
|
version_requirements: !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
40
|
requirements:
|
46
41
|
- - '='
|
47
42
|
- !ruby/object:Gem::Version
|
@@ -49,23 +44,20 @@ dependencies:
|
|
49
44
|
- !ruby/object:Gem::Dependency
|
50
45
|
name: rspec
|
51
46
|
requirement: !ruby/object:Gem::Requirement
|
52
|
-
none: false
|
53
47
|
requirements:
|
54
|
-
- -
|
48
|
+
- - '>='
|
55
49
|
- !ruby/object:Gem::Version
|
56
50
|
version: '0'
|
57
51
|
type: :development
|
58
52
|
prerelease: false
|
59
53
|
version_requirements: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
54
|
requirements:
|
62
|
-
- -
|
55
|
+
- - '>='
|
63
56
|
- !ruby/object:Gem::Version
|
64
57
|
version: '0'
|
65
58
|
- !ruby/object:Gem::Dependency
|
66
59
|
name: nokogiri
|
67
60
|
requirement: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
61
|
requirements:
|
70
62
|
- - '='
|
71
63
|
- !ruby/object:Gem::Version
|
@@ -73,7 +65,6 @@ dependencies:
|
|
73
65
|
type: :development
|
74
66
|
prerelease: false
|
75
67
|
version_requirements: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
68
|
requirements:
|
78
69
|
- - '='
|
79
70
|
- !ruby/object:Gem::Version
|
@@ -118,27 +109,26 @@ files:
|
|
118
109
|
- xmlsec.gemspec
|
119
110
|
homepage: https://github.com/friendlyfashion/xmlsec
|
120
111
|
licenses: []
|
112
|
+
metadata: {}
|
121
113
|
post_install_message:
|
122
114
|
rdoc_options: []
|
123
115
|
require_paths:
|
124
116
|
- lib
|
125
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
118
|
requirements:
|
128
|
-
- -
|
119
|
+
- - '>='
|
129
120
|
- !ruby/object:Gem::Version
|
130
121
|
version: '0'
|
131
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
-
none: false
|
133
123
|
requirements:
|
134
|
-
- -
|
124
|
+
- - '>='
|
135
125
|
- !ruby/object:Gem::Version
|
136
126
|
version: '0'
|
137
127
|
requirements: []
|
138
128
|
rubyforge_project:
|
139
|
-
rubygems_version:
|
129
|
+
rubygems_version: 2.2.2
|
140
130
|
signing_key:
|
141
|
-
specification_version:
|
131
|
+
specification_version: 4
|
142
132
|
summary: Ruby bindings for xmlsec
|
143
133
|
test_files:
|
144
134
|
- spec/assets/csr.pem
|