signed_xml 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ module SignedXml
27
27
 
28
28
  if arg.respond_to? :public_key
29
29
  set_public_key_for_signatures(arg)
30
- elsif arg.respond_to? :[]
30
+ elsif arg.respond_to? :has_key?
31
31
  set_certificate_store_for_signatures(arg)
32
32
  elsif !arg.nil?
33
33
  raise ArgumentError, "#{arg.inspect}:#{arg.class} must have a public key or be a hash of public keys"
@@ -64,8 +64,6 @@ module SignedXml
64
64
  end
65
65
 
66
66
  def set_certificate_store_for_signatures(cert_store)
67
- raise "#{cert_store.inspect} doesn't implement []" unless cert_store.respond_to? :[]
68
-
69
67
  signatures.each { |sig| sig.certificate_store = cert_store }
70
68
  end
71
69
  end
@@ -1,3 +1,3 @@
1
1
  module SignedXml
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signed_xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-16 00:00:00.000000000 Z
12
+ date: 2013-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -134,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  segments:
136
136
  - 0
137
- hash: 299573032670506091
137
+ hash: 4066671061943710970
138
138
  required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  segments:
145
145
  - 0
146
- hash: 299573032670506091
146
+ hash: 4066671061943710970
147
147
  requirements: []
148
148
  rubyforge_project:
149
149
  rubygems_version: 1.8.25