saml2 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 102b176691a071893741f0bf750836e0bc72e8f0
4
- data.tar.gz: afac3ee0941535c504f75c7b24137f55a1021f27
3
+ metadata.gz: 7e11e41671f8945daa93d26052ecabdc6c0fa56b
4
+ data.tar.gz: 86cb1a16f12d1e5a3ae072e951add30fd5e8a04e
5
5
  SHA512:
6
- metadata.gz: 2a982caa3e5e5ac9ad4a392f8b6a680f85e330b0a3ed898a2b9dccf2896f4a282a1aba14e5743466aaac7f4b368ff8b40e75ccb03ef2e89b35c658c9a90b1a16
7
- data.tar.gz: 251540ba69cc06316961865d9333b5d4da0a8ebcb3c9622039483c87ce222f9e221280087bcfedc36669c77f6539a27716f228fb0218083c6a590c0b7ed51b75
6
+ metadata.gz: b2ea777ca2d13bf72fd0ab56d84459eb18bc020eb415a42f1bd05749f65ea99c153874e53885fedafaba149159d637ed2e22621be51705489b1d3e54b84bce71
7
+ data.tar.gz: 49bf22c98a47ae45139e2327c9eb7d3cf7d097a6b24fa07272f5c661c1937e6bdcf8ba3200dd1bddc8213d14a0bba2694a1bf0fa322a82b3cfd6365830070d33
@@ -51,7 +51,8 @@ module SAML2
51
51
  unless instance_variable_defined?(:@signature)
52
52
  @signature = @root.at_xpath('dsig:Signature', Namespaces::ALL)
53
53
  signed_node = @signature.at_xpath('dsig:SignedInfo/dsig:Reference', Namespaces::ALL)['URI']
54
- @root.set_id_attribute('ID')
54
+ # validating the schema will automatically add ID attributes, so check that first
55
+ @root.set_id_attribute('ID') unless @root.document.get_id(@root['ID'])
55
56
  @signature = nil unless signed_node == "##{@root['ID']}"
56
57
  end
57
58
  @signature
@@ -1,3 +1,3 @@
1
1
  module SAML2
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-28 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 2.5.1
199
+ rubygems_version: 2.6.4
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: SAML 2.0 Library