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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 958741e70dd1bb7ef16944159529e4fe0cd86e65
4
- data.tar.gz: a5269eec134d25b3b75354bf91d5b12046a9b5d3
3
+ metadata.gz: a8f0c5b671620d892ee9a0a1989b1753e682941e
4
+ data.tar.gz: 2ececa839608fb6dad3877bc111a10d7b9a3af32
5
5
  SHA512:
6
- metadata.gz: 91290212bd78c69b62fec3dd31ec2f6c255fc3d7f8f9b44dd7ffddcfe4fa71670204196f3ce308b494456cec5e478de7250469634a0fabdf75592e95672bef73
7
- data.tar.gz: 35585daabfdeca94d5f59462eb36bfefc998f97090dc5be32326110146e8a487ccba7b29a9120dea304edb4076a67f9bd70b564c751d5c2df067733d45d24545
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 get service certificates response isn't signed
71
+ # Some OP's certificate responses aren't signed
67
72
  def validate_hashes
68
- super unless command == :get_service_certificates
73
+ super unless BYPASS_COMMANDS.include?(command)
69
74
  end
70
75
 
71
- # OP's get service certificates response isn't signed
76
+ # Some OP's certificate responses aren't signed
72
77
  def verify_signature
73
- super unless command == :get_service_certificates
78
+ super unless BYPASS_COMMANDS.include?(command)
74
79
  end
75
80
  end
76
81
  end
data/lib/sepa/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Sepa
2
2
 
3
3
  # The current version of the gem
4
- VERSION = "1.1.2"
4
+ VERSION = "1.1.3"
5
5
  end
@@ -4,7 +4,7 @@ class TestSepa < ActiveSupport::TestCase
4
4
 
5
5
  def test_version_must_be_defined
6
6
  refute_nil Sepa::VERSION
7
- assert_equal "1.1.2", Sepa::VERSION
7
+ assert_equal "1.1.3", Sepa::VERSION
8
8
  end
9
9
 
10
10
  end
@@ -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.2
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-02 00:00:00.000000000 Z
13
+ date: 2015-12-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel