signed_xml 1.2.0 → 1.3.0

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: 4cba993da121bca75e7dff3b2573da9fb2a49880
4
- data.tar.gz: 18171af9b793b4af5c5dc1fdbc51284c7fb2ddbb
3
+ metadata.gz: 34f747f9d030e996424bdb6329a3842bdeaeff2a
4
+ data.tar.gz: e821bb1877d4c0a551c63615ada1b9642166e569
5
5
  SHA512:
6
- metadata.gz: caf3a86802668b5557d4d50b98004e69c02a7cd0d4d008bf8f59f823b1073d22623e1060b58a308dae936d7d55d0be238c15769a45fd347505981b9f7050a537
7
- data.tar.gz: c6e922e88e9287747b989fc59b8976efa0b5ea0ed04c2dc6d900d6dd646e955ef86009011a3dd32fe76294ee37235c761068c0337771fa3010745b49ebefc27b
6
+ metadata.gz: 49ab5f61eba1d2d9b49dd075636a01bec808650a5d498ed84056a884554231a6a42fe9960b9bbc4f18131fddfaa92651b25cd21f55e3a03f37e25e845926711e
7
+ data.tar.gz: ffdbf5d477abe5bb0221d128670087b08c0d6ac087907d020ee0d40ce379bd6ce679f8e2592094657716281376f1a6317f3124aa71a64c2a2ee7a8f604e8f404
@@ -88,15 +88,11 @@ module SignedXml
88
88
  @signed_info ||= SignedInfo.new(here.at_xpath("//ds:SignedInfo", ds: XMLDSIG_NS))
89
89
  end
90
90
 
91
- def certificate_store
92
- @certificate_store ||= {}
93
- end
94
-
95
91
  def public_key
96
92
  # If the user provided a certificate store, we MUST only use a
97
93
  # key which matches the one in the signature's KeyInfo. Otherwise,
98
94
  # use the key in the signature.
99
- @public_key ||= if certificate_store.any?
95
+ @public_key ||= unless certificate_store.nil?
100
96
  logger.debug "using cert store #{certificate_store}"
101
97
  if certificate_store.has_key? x509_cert_fingerprint
102
98
  certificate_store[x509_cert_fingerprint].public_key
@@ -1,3 +1,3 @@
1
1
  module SignedXml
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -23,4 +23,5 @@ Gem::Specification.new do |gem|
23
23
  gem.add_development_dependency "coveralls"
24
24
  gem.add_development_dependency "rake"
25
25
  gem.add_development_dependency "rspec"
26
+ gem.add_development_dependency "rubocop"
26
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signed_xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Thomas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-10 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  description: XML Signature verification
84
98
  email:
85
99
  - todd.thomas@openlogic.com
@@ -148,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
162
  version: '0'
149
163
  requirements: []
150
164
  rubyforge_project:
151
- rubygems_version: 2.4.8
165
+ rubygems_version: 2.6.8
152
166
  signing_key:
153
167
  specification_version: 4
154
168
  summary: Provides [incomplete] support for verification of XML Signatures <http://www.w3.org/TR/xmldsig-core>.