aba 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b184fa383958c27a1a91ae83d9cee93318ac763928fbef9e9adbed2888ef122f
4
- data.tar.gz: 663ac724030286eb6ee155b2e756c1a01f675549ee857eee9688b450a364ba9b
3
+ metadata.gz: 2156c80e41e17a9df07891a515adff66f0b41412dd83897067a5faa1a598e956
4
+ data.tar.gz: 853deb00316a156169fd1dbc81b5cea3b666122ff538fc61646fedb5bf44d15a
5
5
  SHA512:
6
- metadata.gz: b64dadcc178a89b82eabcb89dcc3df12cdec4ecf4debea24714b45e25a8b8b9a7d711a2f12bd37746b902effd0aa347218f34545deb6b467b109faf5acaf0df1
7
- data.tar.gz: 6d1b962350bd687c305668ab23d161878c9876f6560f2429c22cf204811d46b8c7f9c9b619bb6456c6c5a972c9d1f9b3e48ed7310cd270a83e9c9cdcea4503c7
6
+ metadata.gz: ccb0516b85f0b70af8374f8ef4a3f3effe157dcd19296283a2c274359926e567a9bf7120aad3cf784b4ae027f8bf9e4835edc3c02805d10ebca50d6feec4639e
7
+ data.tar.gz: fbce1803cff67a9bbff99f6c91720b05e20fc62837e39f6d170438b3f6e3d47972b2f24dcf969788487b65078b0822570f488541091847ae8238d8e9eb7542fd
@@ -1,3 +1,9 @@
1
+ ## V1.0.1, 11 January 2021
2
+
3
+ ### BUG FIX
4
+
5
+ Account numbers/alphas validation should be case insensitive
6
+
1
7
  ## v1.0.0, 12 July 2020
2
8
 
3
9
  ### BREAKING CHANGES
@@ -53,7 +53,7 @@ class Aba
53
53
  self.error_collection << "#{attribute} must be an unsigned number" unless value.to_s =~ /\A\d+\Z/
54
54
  end
55
55
  when :account_number
56
- if value.to_s =~ /\A[0\ ]+\Z/ || value.to_s !~ /\A[a-z\d\ ]{1,9}\Z/
56
+ if value.to_s =~ /\A[0\ ]+\Z/ || value.to_s !~ /\A[a-z\d\ ]{1,9}\Z/i
57
57
  self.error_collection << "#{attribute} must be a valid account number"
58
58
  end
59
59
  when :becs
@@ -1,3 +1,3 @@
1
1
  class Aba
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -138,8 +138,7 @@ describe Aba::Validations do
138
138
  expect(subject.errors).to eq ["attr1 must be a valid account number"]
139
139
 
140
140
  subject.attr1 = "00 0A0"
141
- expect(subject.valid?).to eq false
142
- expect(subject.errors).to eq ["attr1 must be a valid account number"]
141
+ expect(subject.valid?).to eq true
143
142
 
144
143
  subject.attr1 = "00 111"
145
144
  expect(subject.valid?).to eq true
@@ -152,6 +151,9 @@ describe Aba::Validations do
152
151
 
153
152
  subject.attr1 = "aa aaa"
154
153
  expect(subject.valid?).to eq true
154
+
155
+ subject.attr1 = "1A2B3C"
156
+ expect(subject.valid?).to eq true
155
157
  end
156
158
 
157
159
  it "should validate becs" do
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Bazhutkin
8
8
  - Trevor Wistaff
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-07-13 00:00:00.000000000 Z
12
+ date: 2021-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -87,7 +87,7 @@ homepage: https://github.com/andrba/aba
87
87
  licenses:
88
88
  - MIT
89
89
  metadata: {}
90
- post_install_message:
90
+ post_install_message:
91
91
  rdoc_options: []
92
92
  require_paths:
93
93
  - lib
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubygems_version: 3.0.3
106
- signing_key:
106
+ signing_key:
107
107
  specification_version: 4
108
108
  summary: ABA File Generator
109
109
  test_files: