uob-payroll 1.0.7 → 1.0.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: 4fc90f4d9acd6b33213440f8e30116d0c818a3c3
4
- data.tar.gz: 1f365690ff167dae956288f5fdc5f3ebf29dbc8c
3
+ metadata.gz: bf5115588208dc5a7cf7d82a3cdeac8975754d21
4
+ data.tar.gz: eaad5679f122643e360f3e1226c2e5bdd89083d0
5
5
  SHA512:
6
- metadata.gz: 8cd4f124a1fc9b65074ede719ad710c4af173dd938220771acefe55c1dc64838131e79fc8cfffdc299459f1425babb4c91e28c21795fa355a8543b6c7bdbe3b3
7
- data.tar.gz: 18c32be99c3ac46eac985da255586d3effdd76c40fb2e25424cdf2dbddfaa5e0c22f4c8ffe724219f598932ffe0dfd1d2291454f6fc0a5b700a6aed7f176b9f5
6
+ metadata.gz: 05f0f214b5ae24db50597495eab7b88eaf61aed0ebd89e082e55ab6e9ec48f8a8c7a191c3b7d142b7cf521c6c29dc19b95ccb3efa53fbd29b1737d5cd5d07e49
7
+ data.tar.gz: 9ed79b47f2c32c299f9c830a6919e2654e83f4b9ab22c8e3f6d4eff9c6a0eccdd2915cb4512faea76278cc8461355afa990dc013bfa62f25fa24d0083e9e48d8
@@ -28,7 +28,7 @@ module UOB
28
28
  def sum_header
29
29
  calculate_string(header.originating_bic_code) +
30
30
  calculate_padded_string(string: header.originating_account_number, size: 34) +
31
- calculate_padded_string(string: header.originating_account_name, size: 140)
31
+ calculate_padded_string(string: sanitize(header.originating_account_name), size: 140)
32
32
  end
33
33
 
34
34
  def sum_rows
@@ -55,7 +55,7 @@ module UOB
55
55
 
56
56
  # Remove "-" from names.
57
57
  def sanitize(string)
58
- string.gsub('-','')
58
+ string.gsub(/-|'/,'')
59
59
  end
60
60
 
61
61
  # Payment Type is always 'R', so Payment Code = 22
@@ -1,5 +1,5 @@
1
1
  module Uob
2
2
  module Payroll
3
- VERSION = "1.0.7"
3
+ VERSION = "1.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uob-payroll
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Paca
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-27 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler