esteid 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/esteid/validation.rb +4 -5
- data/lib/esteid/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 686182671f15fb73418764447325188aa78417b3a35ec04a9cec412014f64e46
|
4
|
+
data.tar.gz: a2b8014a2e992ba2302acaa3cbeb5a0ad3e0d94fadd478034ab99d244c539693
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6248c4f86c54648952824a7c120263dece6ea7c508082b50e80cd1005c088599b48f1923d0a04915df9169509ea872df53ea4bbe9ab918b1a726ca8ae456f2f
|
7
|
+
data.tar.gz: ab3ac4504bd381741f39f9a34b734a6b2af8e7524c225bef5fd0710157a1613fc1ab7d1998a6c881e951cdb40206892606c3db004aaa206a60434b4cd7ff9d48
|
data/lib/esteid/validation.rb
CHANGED
@@ -4,7 +4,7 @@ module EstEID
|
|
4
4
|
class Validation
|
5
5
|
attr_reader :eid_public_key
|
6
6
|
|
7
|
-
|
7
|
+
ERROR_STATUSES = {
|
8
8
|
'REVOKED' => 'cert_revoked',
|
9
9
|
'UNKNOWN' => 'cert_unknown',
|
10
10
|
'EXPIRED' => 'cert_expired',
|
@@ -53,8 +53,7 @@ module EstEID
|
|
53
53
|
namespace: "http://www.sk.ee/DigiDocService/DigiDocService_2_3.wsdl",
|
54
54
|
raise_errors: false,
|
55
55
|
open_timeout: 10,
|
56
|
-
ssl_version: :TLSv1
|
57
|
-
ssl_verify_mode: :none
|
56
|
+
ssl_version: :TLSv1
|
58
57
|
)
|
59
58
|
end
|
60
59
|
|
@@ -75,8 +74,8 @@ module EstEID
|
|
75
74
|
def error_status(status)
|
76
75
|
return if valid?
|
77
76
|
|
78
|
-
if
|
79
|
-
|
77
|
+
if ERROR_STATUSES.include?(status)
|
78
|
+
ERROR_STATUSES[status]
|
80
79
|
else
|
81
80
|
status
|
82
81
|
end
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Pakk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.
|
111
|
+
rubygems_version: 2.7.3
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: A Ruby gem that assists in building authentication using Estonian ID card
|