ibandit 0.6.2 → 0.6.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: d371335a59f94320ee6d0d47b0387e3e240b48d9
4
- data.tar.gz: a340177bde1374d3b6cea5fec8450560978d87d1
3
+ metadata.gz: 6e6050324d2f310c77a0a54383362e1dd827ed94
4
+ data.tar.gz: b59ac5d70f28fdda7e1b38d1308e976b4e229435
5
5
  SHA512:
6
- metadata.gz: 65c97889796f5c1e7b14b60da0e7d8a16fc750e5d9d8879d5722d5a86ef7cdb9666481ed07e66b32f04ed75c8de8dcdfa1e30a3b87a9b844ae9edc7bac184b19
7
- data.tar.gz: 7e0cfce671a59389f8d254dcd5c35d4c1f75af538ba070bf050eee0153cc891eecffe21a51a120400980f00fff23c57579db7b50a6382debd2b711a100626cfb
6
+ metadata.gz: 5fd009bce7b5802bd35d188948736f64668fe1aa28e1bc553fd221b9a8cf49d26ea9a69fb9be0cc2bf1dcfc0fb1de5fd692280527c69c8e381feefb32647f2ee
7
+ data.tar.gz: e74d733a37d3178b0600bfe64697bd77c29c0eab197aeb0886b100cdd6afe1325bbeb407cecce383cdae4acbdd205238956b19e4ffa7e6aac0d3d21d83c714b9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.3 - July 25, 2015
2
+
3
+ - Strip out additional '-' characters from Danish account numbers
4
+
1
5
  ## 0.6.2 - July 21, 2015
2
6
 
3
7
  - Add Denmark to LocalDetailsCleaner and IBANAssembler
@@ -123,7 +123,7 @@ module Ibandit
123
123
 
124
124
  {
125
125
  bank_code: bank_code.rjust(4, '0'),
126
- account_number: account_number.rjust(10, '0')
126
+ account_number: account_number.gsub('-', '').rjust(10, '0')
127
127
  }
128
128
  end
129
129
 
@@ -1,3 +1,3 @@
1
1
  module Ibandit
2
- VERSION = '0.6.2'.freeze
2
+ VERSION = '0.6.3'.freeze
3
3
  end
@@ -175,7 +175,7 @@ describe Ibandit::LocalDetailsCleaner do
175
175
  context 'with bank and branch codes in the account number' do
176
176
  let(:bank_code) { nil }
177
177
  let(:branch_code) { nil }
178
- let(:account_number) { '345-3179681' }
178
+ let(:account_number) { '345-317-9681' }
179
179
 
180
180
  its([:bank_code]) { is_expected.to eq('0345') }
181
181
  its([:account_number]) { is_expected.to eq('0003179681') }
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.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grey Baker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-21 00:00:00.000000000 Z
11
+ date: 2015-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec