sepafm 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sepa/banks/op/op_response.rb +9 -4
- data/lib/sepa/version.rb +1 -1
- data/test/sepa/sepa_test.rb +1 -1
- data/test_client/test_client.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8f0c5b671620d892ee9a0a1989b1753e682941e
|
4
|
+
data.tar.gz: 2ececa839608fb6dad3877bc111a10d7b9a3af32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b76ba6e2821cb6f4d5c41a623fafe816bbb00023261ba8928d7f236da9f7b6c08d56556bf8c6926c3f7569091cf94c16b5c3b097bae33adef56691de40a4e1db
|
7
|
+
data.tar.gz: 940716d4570ac645f4239e067789ed6ec2e95f5a6d6573285bcfaff76a56452e0471521e8bb6a5bf754c998c640c194de2302c787e67e8a57cf06580155bc7f3
|
@@ -3,6 +3,11 @@ module Sepa
|
|
3
3
|
class OpResponse < Response
|
4
4
|
include Utilities
|
5
5
|
|
6
|
+
BYPASS_COMMANDS = %i(
|
7
|
+
get_certificate
|
8
|
+
get_service_certificates
|
9
|
+
)
|
10
|
+
|
6
11
|
# Extracts own signing certificate from the response.
|
7
12
|
#
|
8
13
|
# @return [String] own signing certificate as string it it is found
|
@@ -63,14 +68,14 @@ module Sepa
|
|
63
68
|
verify_certificate_against_root_certificate(certificate, OP_ROOT_CERTIFICATE)
|
64
69
|
end
|
65
70
|
|
66
|
-
# OP's
|
71
|
+
# Some OP's certificate responses aren't signed
|
67
72
|
def validate_hashes
|
68
|
-
super unless command
|
73
|
+
super unless BYPASS_COMMANDS.include?(command)
|
69
74
|
end
|
70
75
|
|
71
|
-
# OP's
|
76
|
+
# Some OP's certificate responses aren't signed
|
72
77
|
def verify_signature
|
73
|
-
super unless command
|
78
|
+
super unless BYPASS_COMMANDS.include?(command)
|
74
79
|
end
|
75
80
|
end
|
76
81
|
end
|
data/lib/sepa/version.rb
CHANGED
data/test/sepa/sepa_test.rb
CHANGED
data/test_client/test_client.rb
CHANGED
@@ -18,6 +18,7 @@ module Testing
|
|
18
18
|
danske_create_cert: Sepa::Client.new(DANSKE_CREATE_CERT_PARAMS),
|
19
19
|
danske_get_bank_cert: Sepa::Client.new(DANSKE_GET_BANK_CERT_PARAMS),
|
20
20
|
nordea_get_certificate: Sepa::Client.new(NORDEA_GET_CERTIFICATE_PARAMS),
|
21
|
+
op_get_certificate: Sepa::Client.new(OP_GET_CERTIFICATE_PARAMS),
|
21
22
|
op_get_service_certificates: Sepa::Client.new(OP_GET_SERVICE_CERTIFICATES_PARAMS)
|
22
23
|
}
|
23
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sepafm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joni Kanerva
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-12-
|
13
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|