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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86696b5c6faa51b3c24f483af3a51eaf8bfc82cf
4
- data.tar.gz: d79a464cae245bb59b63b1cc98e5664e7f8292d2
3
+ metadata.gz: 66b03c3cd566858ca1c6a1c421de06622caeee89
4
+ data.tar.gz: e2089e041db7143409d8eba14f4ca3bcbd321e64
5
5
  SHA512:
6
- metadata.gz: ba491cf35dd77d78c471fcb29871004cbd6fc1c02e08ede8a25db7bec3d21693f4f32a235d79a59a1b996310eda589f55a07755444fa8bf38dfcad68797be796
7
- data.tar.gz: 1fbb14729b3d1ae1ab7d8ece83b874fdbe4e63e0d77e6bd8ba22cf9089f430c1e4416de770f84871aa827092b08a086f5c5985fb8809db9ccb61f0c2463547d3
6
+ metadata.gz: 1b9c325f69ed37f8fb5bc6e27ce19abe152d578d27d8d7f35d8b04a8399c7719ce4a4a0908778671cfb446d8fdfd5b31cf06b48a2dd72820df123295ec6fafeb
7
+ data.tar.gz: a51acd4b6f20f70226700ad11fb35e4c2734f2856c8f34e0d78c20a8cc2ac97cf04f3b174b39ae0b35020dba89585d55c204710a5827809747641adcdbcfe7c8
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ test/tmp
17
17
  test/version_tmp
18
18
  tmp
19
19
  .idea
20
+ .ruby-version
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.3.0
4
- - 2.2.4
4
+ - 2.2.5
5
+ - jruby-9.1.5.0
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gemspec
6
6
  group :test, :development do
7
7
  gem 'simplecov'
8
8
  gem 'rspec'
9
- gem 'guard-rspec'
9
+ gem 'guard-rspec', platform: :mri
10
10
  gem 'rb-fsevent', '~> 0.9.1'
11
11
  gem 'rake'
12
12
  end
@@ -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 = [], with_comments = false)
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
- if RUBY_PLATFORM == "java"
22
- case method
23
- when "http://www.w3.org/2001/10/xml-exc-c14n#",
24
- "http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
25
- Nokogiri::XML::XML_C14N_EXCLUSIVE_1_0
26
- else
27
- raise UnsupportedException.new("Canonicalizer method #{method} unsupported in JRuby")
28
- end
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
- case method
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
@@ -17,7 +17,7 @@ module Xmldsig
17
17
  if inclusive_namespaces && inclusive_namespaces.has_attribute?("PrefixList")
18
18
  inclusive_namespaces.get_attribute("PrefixList").to_s.split(" ")
19
19
  else
20
- []
20
+ nil
21
21
  end
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module Xmldsig
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
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.0
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-08-12 00:00:00.000000000 Z
11
+ date: 2016-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri