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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1523b17e9ef3134f4d110be787f4a63f600fcaff
4
- data.tar.gz: f69357bc2618c53524aab2061fb1dec4044f210c
3
+ metadata.gz: fb58a002fa7488ce7c1baa15239d37f10a92d38e
4
+ data.tar.gz: 83776e36bb603f5abeca6029342cc3f9bacd6ef2
5
5
  SHA512:
6
- metadata.gz: e2cd4dc82b98c2c763edf356607efda096740760b131c89b9a249bee156d9e0dc314c321a087047a99a36850c561d44cb3f3fe3c7b761fa8e9ad265236eba1b2
7
- data.tar.gz: f7c66a56428fd31d7919881b8c55f0711068ef33c0afc1db30cdf2cbb110766fdf5a80c279b62d2143ee88cdaaa1b867c71fb62fb6f1932f27ceebe0b94a96b8
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/default_registry.rb}
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)
@@ -1,5 +1,5 @@
1
1
  module Saml
2
2
  module Kit
3
- VERSION = "0.2.18"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo khan