saml-kit 0.2.18 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saml/kit/default_registry.rb +10 -1
- data/lib/saml/kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb58a002fa7488ce7c1baa15239d37f10a92d38e
|
4
|
+
data.tar.gz: 83776e36bb603f5abeca6029342cc3f9bacd6ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7117ae3e3516159c9ab85a9c964659b677afea39a90638146519d1f770131bc8287170cccbba3b9189ef1ce7d5a245ccaf33e11aeda40771de3d96fdeb8a965
|
7
|
+
data.tar.gz: 510fc88b81a2f485e82fc6eba9146201eb69482e8166ced1659465fdace63dd9176b5887d21b010c3c812909fffe6e2f28d60a335770b3d07c85b497cf0c346e
|
@@ -27,8 +27,10 @@ module Saml
|
|
27
27
|
# configuration.logger = Rails.logger
|
28
28
|
# end
|
29
29
|
#
|
30
|
-
# {include:file:spec/saml/
|
30
|
+
# {include:file:spec/saml/default_registry_spec.rb}
|
31
31
|
class DefaultRegistry
|
32
|
+
include Enumerable
|
33
|
+
|
32
34
|
def initialize(items = {})
|
33
35
|
@items = items
|
34
36
|
end
|
@@ -58,6 +60,13 @@ module Saml
|
|
58
60
|
@items[entity_id]
|
59
61
|
end
|
60
62
|
|
63
|
+
# Yields each registered [Saml::Kit::Metadata] to the block.
|
64
|
+
def each
|
65
|
+
@items.each do |key, value|
|
66
|
+
yield value
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
61
70
|
class HttpApi # :nodoc:
|
62
71
|
def initialize(url, verify_ssl: true)
|
63
72
|
@uri = URI.parse(url)
|
data/lib/saml/kit/version.rb
CHANGED