banktools-se 3.0.0 → 3.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 +5 -5
- data/CHANGELOG.md +4 -0
- data/README.markdown +1 -1
- data/banktools-se.gemspec +0 -2
- data/lib/banktools-se/version.rb +1 -1
- metadata +4 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 50ee9c6000dbe6c9ca07162a24081e77b2ff7dff1f289353aea9c535b358bc7c
|
4
|
+
data.tar.gz: 4959d76eade8411d9f4f37f746e8a21beb9748fbb444239826a94f2c1c2dda18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55841103bbffaf6a43b43d3164ef9287e61c32a40081c65ec66627c853caf09c325126327256bbca6013c01878f731f0dc123547f8eda30c58c99f6c25146d17
|
7
|
+
data.tar.gz: 5ce55c6d94671c6dea2b0eece4014e441cc903dc3941cd57fdb3758ec2e68f443120dc3473265209b58f4cec50adccd00241086e006bb454ffced93dfb5d440d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.0.1
|
4
|
+
|
5
|
+
- Fix deprecation error: "NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01."
|
6
|
+
|
3
7
|
## 3.0.0
|
4
8
|
|
5
9
|
- Change `BankTools::SE::OCR.find_all_in_string` default `max_length` from 19 to 18 to avoid out of range errors with Active Record.
|
data/README.markdown
CHANGED
@@ -45,7 +45,7 @@ Inspired by [iulianu/iban-tools](https://github.com/iulianu/iban-tools). Please
|
|
45
45
|
|
46
46
|
# This feature is intended to try to find all OCR numbers in a noisy bank statement string.
|
47
47
|
# By design it may find too many numbers (e.g. valid substrings of other numbers), so you should check results against actual outstanding invoices.
|
48
|
-
# By default, it excludes OCRs shorter than 4 digits and longer than
|
48
|
+
# By default, it excludes OCRs shorter than 4 digits and longer than 18 digits, but this limit can be specified per below.
|
49
49
|
BankTools::SE::OCR.find_all_in_string("OCR1230 and ref4564 and 7890") # => [ "1230", "4564", … ]
|
50
50
|
BankTools::SE::OCR.find_all_in_string("1230 and 123067", length_digit: true, pad: "0") # => [ "123067" ]
|
51
51
|
BankTools::SE::OCR.find_all_in_string("00 and 18 and 1230", min_length: 2, max_length: 3) # => [ "00", "018", "18" ]
|
data/banktools-se.gemspec
CHANGED
@@ -10,8 +10,6 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.homepage = ""
|
11
11
|
s.summary = %q{Validate and normalize Swedish bank account numbers, plusgiro and bankgiro.}
|
12
12
|
|
13
|
-
s.rubyforge_project = "banktools-se"
|
14
|
-
|
15
13
|
s.files = `git ls-files`.split("\n")
|
16
14
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
data/lib/banktools-se/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: banktools-se
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrik Nyh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -113,15 +113,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
|
117
|
-
rubygems_version: 2.6.11
|
116
|
+
rubygems_version: 3.0.3
|
118
117
|
signing_key:
|
119
118
|
specification_version: 4
|
120
119
|
summary: Validate and normalize Swedish bank account numbers, plusgiro and bankgiro.
|
121
|
-
test_files:
|
122
|
-
- spec/account_spec.rb
|
123
|
-
- spec/bankgiro_spec.rb
|
124
|
-
- spec/ocr_spec.rb
|
125
|
-
- spec/plusgiro_spec.rb
|
126
|
-
- spec/spec_helper.rb
|
127
|
-
- spec/utils_spec.rb
|
120
|
+
test_files: []
|