xmldsig 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +2 -1
- data/Gemfile +1 -1
- data/lib/xmldsig/canonicalizer.rb +10 -20
- data/lib/xmldsig/transforms/canonicalize.rb +1 -1
- data/lib/xmldsig/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66b03c3cd566858ca1c6a1c421de06622caeee89
|
4
|
+
data.tar.gz: e2089e041db7143409d8eba14f4ca3bcbd321e64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b9c325f69ed37f8fb5bc6e27ce19abe152d578d27d8d7f35d8b04a8399c7719ce4a4a0908778671cfb446d8fdfd5b31cf06b48a2dd72820df123295ec6fafeb
|
7
|
+
data.tar.gz: a51acd4b6f20f70226700ad11fb35e4c2734f2856c8f34e0d78c20a8cc2ac97cf04f3b174b39ae0b35020dba89585d55c204710a5827809747641adcdbcfe7c8
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -4,7 +4,7 @@ module Xmldsig
|
|
4
4
|
end
|
5
5
|
attr_accessor :node, :method, :inclusive_namespaces, :with_comments
|
6
6
|
|
7
|
-
def initialize(node, method = nil, inclusive_namespaces =
|
7
|
+
def initialize(node, method = nil, inclusive_namespaces = nil, with_comments = false)
|
8
8
|
@node = node
|
9
9
|
@method = method
|
10
10
|
@inclusive_namespaces = inclusive_namespaces
|
@@ -18,26 +18,16 @@ module Xmldsig
|
|
18
18
|
private
|
19
19
|
|
20
20
|
def mode(method)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
case method
|
22
|
+
when "http://www.w3.org/2001/10/xml-exc-c14n#",
|
23
|
+
"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
|
24
|
+
Nokogiri::XML::XML_C14N_EXCLUSIVE_1_0
|
25
|
+
when "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
|
26
|
+
Nokogiri::XML::XML_C14N_1_0
|
27
|
+
when "http://www.w3.org/2006/12/xml-c14n11"
|
28
|
+
Nokogiri::XML::XML_C14N_1_1
|
29
29
|
else
|
30
|
-
|
31
|
-
when "http://www.w3.org/2001/10/xml-exc-c14n#",
|
32
|
-
"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
|
33
|
-
Nokogiri::XML::XML_C14N_EXCLUSIVE_1_0
|
34
|
-
when "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"
|
35
|
-
Nokogiri::XML::XML_C14N_1_0
|
36
|
-
when "http://www.w3.org/2006/12/xml-c14n11"
|
37
|
-
Nokogiri::XML::XML_C14N_1_1
|
38
|
-
else
|
39
|
-
Nokogiri::XML::XML_C14N_1_0
|
40
|
-
end
|
30
|
+
Nokogiri::XML::XML_C14N_1_0
|
41
31
|
end
|
42
32
|
end
|
43
33
|
end
|
data/lib/xmldsig/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmldsig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- benoist
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|