esteid 1.0.5 → 1.0.6
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 +4 -4
- data/lib/esteid/validation.rb +12 -2
- data/lib/esteid/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f21f5fe1d1718cd0b1548cef6c5da48f370d25bc5a08837044f33839070a27c8
|
|
4
|
+
data.tar.gz: b21dc1dcf137b31947e26449448187df5c99b4eba1e4c47a683fdd3c24c1f761
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6853867b6b7362305d8da7b7e4fe2eaf87e4fcfcc107a8dc691c431d10987453b869dfcb0e509c93b98696a589320776544b53605df28b16d16b502e7d2a68c1
|
|
7
|
+
data.tar.gz: d0d9532319598e0e84f78d81fe0da0b9278a4850f359d3547e69b1c9398d8a40409f2b8023f7c9d322c6122679972e97679c6998d1a36d69bf1995678b68dea4
|
data/lib/esteid/validation.rb
CHANGED
|
@@ -38,7 +38,7 @@ module EstEID
|
|
|
38
38
|
|
|
39
39
|
def status
|
|
40
40
|
return soap_error_code if soap_fault?
|
|
41
|
-
|
|
41
|
+
certificate_status
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
private
|
|
@@ -68,7 +68,17 @@ module EstEID
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
def soap_error_code
|
|
71
|
-
response.body
|
|
71
|
+
fault = response.body[:fault]
|
|
72
|
+
return unless fault && fault[:faultstring]
|
|
73
|
+
|
|
74
|
+
fault[:faultstring]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def certificate_status
|
|
78
|
+
cert_response = response.body[:check_certificate_response]
|
|
79
|
+
return unless cert_response && cert_response[:status]
|
|
80
|
+
|
|
81
|
+
cert_response[:status]
|
|
72
82
|
end
|
|
73
83
|
|
|
74
84
|
def error_status(status)
|
data/lib/esteid/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: esteid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Artem Pakk
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-02-
|
|
11
|
+
date: 2018-02-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: savon
|