sepafm 1.1.7 → 1.1.8

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: af34aff52da80e8a3c24f44f5728ab8c356189fb
4
- data.tar.gz: 5b3a43610e7c900412e65fc83874d66bf6d132f2
3
+ metadata.gz: 4495553a8331dc839714be9d80f714bcdad98a00
4
+ data.tar.gz: 60935bd6d5859e8e812943c40c64854671b365c4
5
5
  SHA512:
6
- metadata.gz: 912764345d7c6bb8758ff1fc31f378e01fe0737e99d221e97a6007dd7798291a2aaa538a688c245da875ca5f335bc73539232018cec6276344056161088d97cd
7
- data.tar.gz: 3d9681d0485431280410fa30c6bdb3900c7390249e8c8378510da383dabecaab3bbe7cf3b15aefce9305ee9424a0ca35fe1e66b0a3f1f6d0fde3b00df985da5e
6
+ metadata.gz: f8cad4589cb2968fa5ff25dbf14542584973549dd5d3836e404dea824bdfecaed3deceeaddd62d8f191734040910f6d810617d40fce84762931c7e24d73ceec7
7
+ data.tar.gz: 726a6d88274b0f076f86ba1798c46649e304f6da1f5a23f6f8669eab07c5e96fef2a52b0257b47cc3755e4bf3e1771fa929b7ec69b38548dd5aedbbc68b2a45e
@@ -0,0 +1,21 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIDhzCCAm+gAwIBAgIEAIBFFDANBgkqhkiG9w0BAQUFADBrMQswCQYDVQQGEwJT
3
+ RTEeMBwGA1UEChMVTm9yZGVhIEJhbmsgQUIgKHB1YmwpMSYwJAYDVQQDEx1Ob3Jk
4
+ ZWEgQ29ycG9yYXRlIFNlcnZlciBDQSAwMTEUMBIGA1UEBRMLNTE2NDA2LTAxMjAw
5
+ HhcNMDcxMTI3MTIzMzUwWhcNMjIxMTI3MTIzMzUwWjBrMQswCQYDVQQGEwJTRTEe
6
+ MBwGA1UEChMVTm9yZGVhIEJhbmsgQUIgKHB1YmwpMSYwJAYDVQQDEx1Ob3JkZWEg
7
+ Q29ycG9yYXRlIFNlcnZlciBDQSAwMTEUMBIGA1UEBRMLNTE2NDA2LTAxMjAwggEi
8
+ MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCyS/jgSLcMi5AqSyFjjQ3QZ6WC
9
+ gdJt6RtP76AeksESP6f99vS+tcAxn7e35Ke7ZGGFnKfosBPYSLRoHF4dKKPncdQW
10
+ 64X7aew75jHwY6SgCV0JgVwnhaA56kKArgcgbTsGJCc31q5l899V2XkJ/VU5tAXo
11
+ s6XZFKfZ3m9qbRpNl6rf+V+nj3kc9YgnHResxmLnH5Q4KJru2ySvZAq2JlKZ4FBm
12
+ YAgJ3hHkGxqcMClze4FmvRx/Ud09A4TOPuytQ7mVPRIFvVA2g5E6ATO5EefsPJOs
13
+ CYNC9E2HGh5j1lowvRmJbiaX0YTP4UnOkfFNiF9f6Qo6kHiwmYEfgd2jLuG1AgMB
14
+ AAGjMzAxMA8GA1UdEwEB/wQFMAMBAf8wEQYDVR0OBAoECETHk9nZe1bBMAsGA1Ud
15
+ DwQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAmXPMuRq7BrKZAjEgzbQBoKP5obbJ
16
+ /Q2GNqOk2ucqyPZYQAa8GPW0axTld+qxOVuLorTp0uUGCbiWp5Kb962p6GZ1MS4k
17
+ vIoI+1klWlUDXaSw6IueT1pmsS28jOi579OzdZeS93KpcwlaWuqY6w3yvRQEzvoX
18
+ A8IqoC8Gvqzc/fRRDlSBZpDeVXYon/8ahAC1OMGczJpbXURBeiEi8H0msJ2LB0Wq
19
+ imkFnk8vwtIjVXQsz+snKbAkd2ED1eUqu7t2rmfeGF00NEwrRLsSTQY+25FlpAh1
20
+ ynd6/bllN+kwYUSWwMFpqncwEpLTp9t7ARw+TBjpNUxt0U6WnSqwOE1pMQ==
21
+ -----END CERTIFICATE-----
data/lib/sepa/version.rb CHANGED
@@ -2,7 +2,7 @@ module Sepa
2
2
  # The current version of the gem
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 7
5
+ TINY = 8
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, TINY, PRE].compact.join('.')
data/lib/sepafm.rb CHANGED
@@ -56,17 +56,17 @@ SOAP_TEMPLATE_PATH = "#{ROOT_PATH}/lib/sepa/xml_templates/soap"
56
56
  # Path to where the certificates are located
57
57
  CERTIFICATE_PATH = "#{ROOT_PATH}/lib/sepa/certificates/"
58
58
 
59
- nordea_root_certificate_string = File.read("#{CERTIFICATE_PATH}nordea_root_certificate.cer")
59
+ nordea_root_certificate_string = File.read("#{CERTIFICATE_PATH}nordea_root_certificate.pem")
60
60
 
61
61
  # Nordea's root certificate as an OpenSSL::X509::Certificate
62
62
  NORDEA_ROOT_CERTIFICATE = OpenSSL::X509::Certificate.new nordea_root_certificate_string
63
63
 
64
- danske_root_certificate_string = File.read("#{CERTIFICATE_PATH}danske_root_certificate.cer")
64
+ danske_root_certificate_string = File.read("#{CERTIFICATE_PATH}danske_root_certificate.pem")
65
65
 
66
66
  # Danske Bank's root certificate as an OpenSSL::X509::Certificate
67
67
  DANSKE_ROOT_CERTIFICATE = OpenSSL::X509::Certificate.new danske_root_certificate_string
68
68
 
69
- op_root_certificate_string = File.read("#{CERTIFICATE_PATH}op_root_certificate.cer")
69
+ op_root_certificate_string = File.read("#{CERTIFICATE_PATH}op_root_certificate.pem")
70
70
 
71
71
  # OP's root certificate as an OpenSSL::X509::Certificate
72
72
  OP_ROOT_CERTIFICATE = OpenSSL::X509::Certificate.new op_root_certificate_string
@@ -27,17 +27,13 @@ class NordeaApplicationRequestTest < ActiveSupport::TestCase
27
27
  end
28
28
 
29
29
  def test_schemas_are_unmodified
30
- sha1 = OpenSSL::Digest::SHA1.new
31
-
32
- ar_schema = File.read("#{SCHEMA_PATH}/application_request.xsd")
33
- xmldsig_schema = File.read("#{SCHEMA_PATH}/xmldsig-core-schema.xsd")
34
- ar_schema_digest = sha1.digest(ar_schema)
35
-
36
- sha1.reset
30
+ ar_schema = File.read("#{SCHEMA_PATH}/application_request.xsd", mode: 'rb')
31
+ xmldsig_schema = File.read("#{SCHEMA_PATH}/xmldsig-core-schema.xsd", mode: 'rb')
32
+ ar_schema_digest = Digest::MD5.hexdigest(ar_schema)
33
+ xmldsig_schema_digest = Digest::MD5.hexdigest(xmldsig_schema)
37
34
 
38
- xmldsig_schema_digest = sha1.digest(xmldsig_schema)
39
- assert_equal encode(ar_schema_digest).strip, "1O24A7+/6S7CFYVlhH1jEZh1ARs="
40
- assert_equal encode(xmldsig_schema_digest).strip, "bmG0+2KykgkLeWsXsl6CFbyo4Yc="
35
+ assert_equal "8ac85e57fc3af6bf44d629b9ab73c5ff", ar_schema_digest
36
+ assert_equal "541dd8dc113f715c166f6f1a5b54c2f1", xmldsig_schema_digest
41
37
  end
42
38
 
43
39
  def test_ar_should_initialize_with_proper_params
@@ -10,10 +10,10 @@ class NordeaCertApplicationRequestTest < ActiveSupport::TestCase
10
10
  end
11
11
 
12
12
  def test_schemas_are_unmodified
13
- sha1 = OpenSSL::Digest::SHA1.new
14
- cert_schema = File.read("#{SCHEMA_PATH}/cert_application_request.xsd")
15
- cert_digest = sha1.digest(cert_schema)
16
- assert_equal encode(cert_digest).strip, "sFwy9Tj+cERTdcmaGhm8WpmJBH4="
13
+ cert_schema = File.read("#{SCHEMA_PATH}/cert_application_request.xsd", mode: 'rb')
14
+ cert_digest = Digest::MD5.hexdigest(cert_schema)
15
+
16
+ assert_equal "840eb9631ee4f7018f8765bf039717b6", cert_digest
17
17
  end
18
18
 
19
19
  def test_should_initialize_with_only_get_certificate_params
@@ -3,6 +3,6 @@ require 'test_helper'
3
3
  class TestSepa < ActiveSupport::TestCase
4
4
  test 'version is defined correctly' do
5
5
  refute_nil Sepa::VERSION
6
- assert_equal '1.1.7', Sepa::VERSION
6
+ assert_equal '1.1.8', Sepa::VERSION
7
7
  end
8
8
  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.7
4
+ version: 1.1.8
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: 2016-07-25 00:00:00.000000000 Z
13
+ date: 2016-09-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
@@ -160,9 +160,9 @@ files:
160
160
  - lib/sepa/banks/nordea/soap_nordea.rb
161
161
  - lib/sepa/banks/op/op_response.rb
162
162
  - lib/sepa/banks/op/soap_op.rb
163
- - lib/sepa/certificates/danske_root_certificate.cer
164
- - lib/sepa/certificates/nordea_root_certificate.cer
165
- - lib/sepa/certificates/op_root_certificate.cer
163
+ - lib/sepa/certificates/danske_root_certificate.pem
164
+ - lib/sepa/certificates/nordea_root_certificate.pem
165
+ - lib/sepa/certificates/op_root_certificate.pem
166
166
  - lib/sepa/client.rb
167
167
  - lib/sepa/error_messages.rb
168
168
  - lib/sepa/response.rb