spid 0.15.1 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afef76acae102b7c46b16232080225ef750cb4df3f79a3ad217ff33d406351e9
4
- data.tar.gz: f4f0859d95951c7eb8e668bc6babb1e7ea079b102a45cb13c53538cc425875ab
3
+ metadata.gz: 4866af87e0c8823162483e64a14afda3d325d3791c69f5e7678c9fdc2f29c65d
4
+ data.tar.gz: e437a860f4dc46efddb947ce55982c2b0d1b3bc09831d3298f537b574ae99274
5
5
  SHA512:
6
- metadata.gz: e1d9483b26a2493ae83accbfcfdd92f51af5fee8a466d20d7208e5a4b6d3a192c0db0d91fdbe0f7dd3212288775dcdbee54e784d9558d6d901a6664e86a6ca6d
7
- data.tar.gz: 376fce06cfcfed5bc0a2c6ec2d25d80bf5d481b4229443ddf21f71ef0f0c6165c12e87cea34a7484b47861277da107fffa51ea82de2fcdf6279e26612f1db570
6
+ metadata.gz: ef442a357be9ddb4781dad1a90addce249db283e1f9fa38890d24da8b22e176b81bdfe16c59cf4e18f3dfb192888479e1d911db33064a58b34795cb611b65fe7
7
+ data.tar.gz: 586d5a07cc351d555fd42d03857e4f8f803ef58e3c4334cbc9cdbfc84a242079c6216b69e05defea9cf34516230c97c49dff16439eb06c1729bbde8c1b0982c2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.15.2] - 2018-08-31
6
+ ### Fixed
7
+ - Now response doesn't fail if status code is not success
8
+
5
9
  ## [0.15.1] - 2018-08-31
6
10
  ### Fixed
7
11
  - Fix uuid generation for spid logout request
@@ -114,7 +118,8 @@
114
118
  - Coveralls Integration
115
119
  - Rubygems version badge in README
116
120
 
117
- [Unreleased]: https://github.com/italia/spid-ruby/compare/v0.15.1...HEAD
121
+ [Unreleased]: https://github.com/italia/spid-ruby/compare/v0.15.2...HEAD
122
+ [0.15.2]: https://github.com/italia/spid-ruby/compare/v0.15.1...v0.15.2
118
123
  [0.15.1]: https://github.com/italia/spid-ruby/compare/v0.15.0...v0.15.1
119
124
  [0.15.0]: https://github.com/italia/spid-ruby/compare/v0.14.0...v0.15.0
120
125
  [0.14.0]: https://github.com/italia/spid-ruby/compare/v0.13.0...v0.14.0
data/README.md CHANGED
@@ -81,7 +81,7 @@ gem "spid"
81
81
  |**LogoutResponse generation (for third-party-initiated logout):**||
82
82
  |generation of LogoutResponse XML|✓|
83
83
  |HTTP-Redirect binding||
84
- |HTTP-POST binding||
84
+ |HTTP-POST binding|✓|
85
85
  |PartialLogout customization||
86
86
  |**AttributeQuery generation (2.2.2.1):**||
87
87
  |generation of AttributeQuery XML||
@@ -18,6 +18,7 @@ module Spid
18
18
  end
19
19
 
20
20
  def call
21
+ return false unless success?
21
22
  [
22
23
  matches_request_uuid,
23
24
  issuer,
@@ -25,8 +26,7 @@ module Spid
25
26
  destination,
26
27
  conditions,
27
28
  audience,
28
- signature,
29
- success?
29
+ signature
30
30
  ].all?
31
31
  end
32
32
 
@@ -42,6 +42,7 @@ module Spid
42
42
  return true if response.status_code == Spid::SUCCESS_CODE
43
43
 
44
44
  @errors["authentication"] = {
45
+ "status_code" => response.status_code,
45
46
  "status_message" => response.status_message,
46
47
  "status_detail" => response.status_detail
47
48
  }
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.15.1"
4
+ VERSION = "0.15.2"
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.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Librera