validate_nz_bank_acc 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/README.md +2 -2
- data/lib/validate_nz_bank_acc.rb +2 -2
- data/lib/validate_nz_bank_acc/version.rb +1 -1
- metadata +5 -4
data/CHANGELOG
ADDED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ValidateNzBankAcc
|
2
2
|
|
3
|
-
An
|
3
|
+
An implementation of the process described on page 15 of
|
4
4
|
http://www.ird.govt.nz/resources/a/c/ac60890040b57d0e9bd4df41f9f3ce1d/rwt-nrwt-spec-2010-v3.pdf
|
5
5
|
|
6
6
|
## Installation
|
@@ -11,7 +11,7 @@ Add this line to your application's Gemfile:
|
|
11
11
|
|
12
12
|
And then execute:
|
13
13
|
|
14
|
-
$ bundle
|
14
|
+
$ bundle install
|
15
15
|
|
16
16
|
Or install it yourself as:
|
17
17
|
|
data/lib/validate_nz_bank_acc.rb
CHANGED
@@ -2,8 +2,8 @@ require "validate_nz_bank_acc/version"
|
|
2
2
|
|
3
3
|
class ValidateNzBankAcc
|
4
4
|
|
5
|
-
BANKS = { 1 => {:ranges => [1..999, 1100
|
6
|
-
2 => {:ranges => [1..999, 1200
|
5
|
+
BANKS = { 1 => {:ranges => [1..999, 1100..1199, 1800..1899]},
|
6
|
+
2 => {:ranges => [1..999, 1200..1299]},
|
7
7
|
3 => {:ranges => [1..999, 1300..1399, 1500..1599, 1700..1799, 1900..1999]},
|
8
8
|
6 => {:ranges => [1..999, 1400..1499]},
|
9
9
|
8 => {:ranges => [6500..6599], :algo => :d},
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validate_nz_bank_acc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &21755100 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *21755100
|
25
25
|
description: Validates a NZ bank account against checksum rules
|
26
26
|
email:
|
27
27
|
- eadz@eadz.co.nz
|
@@ -30,6 +30,7 @@ extensions: []
|
|
30
30
|
extra_rdoc_files: []
|
31
31
|
files:
|
32
32
|
- .gitignore
|
33
|
+
- CHANGELOG
|
33
34
|
- Gemfile
|
34
35
|
- LICENSE
|
35
36
|
- README.md
|