sepafm 1.1.3 → 1.1.4

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: a8f0c5b671620d892ee9a0a1989b1753e682941e
4
- data.tar.gz: 2ececa839608fb6dad3877bc111a10d7b9a3af32
3
+ metadata.gz: 2e8cd0f6ded38879c6bc80cf8317c1408961a78a
4
+ data.tar.gz: 489811f606bd70d7d09e9f4dcc6b9631eb0bf768
5
5
  SHA512:
6
- metadata.gz: b76ba6e2821cb6f4d5c41a623fafe816bbb00023261ba8928d7f236da9f7b6c08d56556bf8c6926c3f7569091cf94c16b5c3b097bae33adef56691de40a4e1db
7
- data.tar.gz: 940716d4570ac645f4239e067789ed6ec2e95f5a6d6573285bcfaff76a56452e0471521e8bb6a5bf754c998c640c194de2302c787e67e8a57cf06580155bc7f3
6
+ metadata.gz: 8b95273482e6874dccadc4efc346f7da897291302457c6e1e6752f3fbca627317c079a276bcf198f630ba3df433ccb50a5e2da5382e3d6ec9181b7b2749b9fcb
7
+ data.tar.gz: b623ef3633002ee4744d42e9680cca7df051ee541784e3bdba61c01b0ac04b86cd0e220debd95953a41905552086c4c45ba5ba5c21497980e61aa6d35336cd7a
@@ -58,13 +58,15 @@ module Sepa
58
58
 
59
59
  # Checks whether the certificate embedded in the response soap has been signed with OP's
60
60
  # root certificate. The check is skipped in test environment, because a different root
61
- # certificate is used
61
+ # certificate is used. The check is also skipped for certificate requests because they are not
62
+ # signed
62
63
  #
63
64
  # @return [true] if certificate is trusted
64
65
  # @return [false] if certificate fails to verify
65
66
  # @see DanskeResponse#certificate_is_trusted?
66
67
  def certificate_is_trusted?
67
- return true if environment == :test
68
+ return true if environment == :test || BYPASS_COMMANDS.include?(command)
69
+
68
70
  verify_certificate_against_root_certificate(certificate, OP_ROOT_CERTIFICATE)
69
71
  end
70
72
 
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.3"
4
+ VERSION = "1.1.4"
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.3", Sepa::VERSION
7
+ assert_equal "1.1.4", Sepa::VERSION
8
8
  end
9
9
 
10
10
  end
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.3
4
+ version: 1.1.4
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-07 00:00:00.000000000 Z
13
+ date: 2015-12-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel