spid 0.17.0 → 0.17.1

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
  SHA256:
3
- metadata.gz: 8c918415822f2873b617da91c797c8987825252578e359c620a334ad9ba439d3
4
- data.tar.gz: 2e699735bcefc0e37ed9efced5ed53ad845a29405b4c1616ec4985bcd497a346
3
+ metadata.gz: ad2bb363e9655931185336c070f3d25a709b2d86aaf0bdd9cd4dae4202c1295c
4
+ data.tar.gz: 1b24bd54b4e02243a49990be1770866d273fdd3a4053b477620a036b7dfb735a
5
5
  SHA512:
6
- metadata.gz: 2e80c2322252a27a0362c738a3eace0fdba76735026fe0a7dd344bbf25b4543d2a014724301915d87a97fb517399d3bf0695e792141d90b95d1e5df3d82ca40c
7
- data.tar.gz: 9fd3aecb75d5a2dad2e6464532c774fd40f2737eecc471f693aabdabf688ca9c5644a6fa3f8c29ea8576076570616d0a402a389f5922f403f8e0c67087330709
6
+ metadata.gz: 8c47af1c2bdc93e5b94c304e399678249ebe54a0185e0b3f095f3a33f87ef9b9054ed7417ab9d67792915cd8c12cc2b76058db5cd2233dca993be5a340811361
7
+ data.tar.gz: 145ed20ece203b9fecb261d6de1edd709abba8c93ee89ee5a71ca80ac3211b7c2d683a2b913615a7a4ef794bd9f609a97939b20174267bde39301203de8675fa
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.17.1] - 2018-09-10
6
+ ### Changed
7
+ - Identity Provider fetched by entity_id
8
+
5
9
  ## [0.17.0] - 2018-09-10
6
10
  ### Added
7
11
  - Ensure private key lenght and certificate validation
@@ -134,7 +138,8 @@
134
138
  - Coveralls Integration
135
139
  - Rubygems version badge in README
136
140
 
137
- [Unreleased]: https://github.com/italia/spid-ruby/compare/v0.17.0...HEAD
141
+ [Unreleased]: https://github.com/italia/spid-ruby/compare/v0.17.1...HEAD
142
+ [0.17.1]: https://github.com/italia/spid-ruby/compare/v0.17.0...v0.17.1
138
143
  [0.17.0]: https://github.com/italia/spid-ruby/compare/v0.16.1...v0.17.0
139
144
  [0.16.1]: https://github.com/italia/spid-ruby/compare/v0.16.0...v0.16.1
140
145
  [0.16.0]: https://github.com/italia/spid-ruby/compare/v0.15.2...v0.16.0
@@ -19,12 +19,6 @@ module Spid
19
19
  end
20
20
  end
21
21
 
22
- def self.find_by_name(idp_name)
23
- instance.identity_providers.find do |idp|
24
- idp.name == idp_name
25
- end
26
- end
27
-
28
22
  def self.find_by_entity(entity_id)
29
23
  instance.identity_providers.find do |idp|
30
24
  idp.entity_id == entity_id
@@ -59,7 +59,7 @@ module Spid
59
59
 
60
60
  def identity_provider
61
61
  @identity_provider ||=
62
- IdentityProviderManager.find_by_name(idp_name)
62
+ IdentityProviderManager.find_by_entity(idp_name)
63
63
  end
64
64
 
65
65
  def service_provider
@@ -67,7 +67,7 @@ module Spid
67
67
 
68
68
  def identity_provider
69
69
  @identity_provider ||=
70
- IdentityProviderManager.find_by_name(idp_name)
70
+ IdentityProviderManager.find_by_entity(idp_name)
71
71
  end
72
72
 
73
73
  def service_provider
data/lib/spid/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spid
4
- VERSION = "0.17.0"
4
+ VERSION = "0.17.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Librera