ibandit 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/CHANGELOG.md +4 -0
- data/lib/ibandit/local_details_cleaner.rb +3 -2
- data/lib/ibandit/version.rb +1 -1
- data/spec/ibandit/local_details_cleaner_spec.rb +5 -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: 101e32709372c4aa77b414ffd6a51e72b76d01c0
|
4
|
+
data.tar.gz: 18864657f16536a50ef7037a1e0c3d583c94693f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7d31438134017276eea2e49cd41861cc9f52da897e3954a0315bb8f405867e864935c4b9538eff7dd44bff0fc0db41f4d4750aab916ea0ce49bf9acad63fa6b
|
7
|
+
data.tar.gz: 3069f177708f23613f0d3d7e35837ae77b6366aed8aaae399e3a9f7fd24b281634d9515c0a55068deb1ebbe0659b5a9fdfe786725838a166be7c7a22056d0cad
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -191,9 +191,10 @@ module Ibandit
|
|
191
191
|
if local_details[:bank_code] && local_details[:branch_code]
|
192
192
|
bank_code = local_details[:bank_code]
|
193
193
|
branch_code = local_details[:branch_code]
|
194
|
-
account_number = local_details[:account_number]
|
194
|
+
account_number = local_details[:account_number].gsub(/[-\s]/, '')
|
195
195
|
else
|
196
|
-
cleaned_account_number =
|
196
|
+
cleaned_account_number =
|
197
|
+
local_details[:account_number].gsub(/[-\s]/, '')
|
197
198
|
|
198
199
|
bank_code = cleaned_account_number.slice(0, 4)
|
199
200
|
branch_code = cleaned_account_number.slice(4, 4)
|
data/lib/ibandit/version.rb
CHANGED
@@ -305,6 +305,11 @@ describe Ibandit::LocalDetailsCleaner do
|
|
305
305
|
its([:account_number]) { is_expected.to eq('180000012345') }
|
306
306
|
end
|
307
307
|
|
308
|
+
context 'with spaces in the account number' do
|
309
|
+
let(:account_number) { '18 0000012345' }
|
310
|
+
its([:account_number]) { is_expected.to eq('180000012345') }
|
311
|
+
end
|
312
|
+
|
308
313
|
context 'without an account number' do
|
309
314
|
let(:account_number) { nil }
|
310
315
|
it { is_expected.to eq(local_details_with_swift) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibandit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grey Baker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|