banktools-se 3.3.1 → 3.3.2
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/banktools-se/plusgiro.rb +1 -1
- data/lib/banktools-se/version.rb +1 -1
- data/spec/plusgiro_spec.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ccccc22d21f8267923982fc38deeb6a399e005f7447ce10c7cad333786cae07d
|
|
4
|
+
data.tar.gz: 9fb1a7b6cd47306bc55b206d73bd9e64a95f299d5123f957eff1894411820a58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b33615c06ae45f94fc8a73cf1f0b5dffcf2558bb33aaeacf9537c33f52b9f13d6d86a538e77437d866aab720040df8bf5253080915eeabb54ee56b49fe05c2f0
|
|
7
|
+
data.tar.gz: ac5d291cc1008477b7580f372015e7a9bd1c9613f8887a21fced5ba2ac2a419396f698421f9c659f7aaf181013deb2c39cb670daa8fb3a832d32a2f455597cb5
|
data/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ module BankTools
|
|
|
5
5
|
# Could sadly not find anything more authoritative than
|
|
6
6
|
# http://pellesoft.se/communicate/forum/view.aspx?msgid=267449&forumid=63&sum=0
|
|
7
7
|
# https://www.nordea.se/foretag/kundservice/fragor-och-svar-konton.html#faq=Kontouppgifter+432454
|
|
8
|
-
MAX_LENGTH =
|
|
8
|
+
MAX_LENGTH = 8
|
|
9
9
|
MIN_LENGTH = 2
|
|
10
10
|
|
|
11
11
|
attr_reader :number
|
data/lib/banktools-se/version.rb
CHANGED
data/spec/plusgiro_spec.rb
CHANGED
|
@@ -26,7 +26,6 @@ RSpec.describe BankTools::SE::Plusgiro do
|
|
|
26
26
|
[
|
|
27
27
|
"28 65 43-4", # IKEA
|
|
28
28
|
"410 54 68-5", # IKEA
|
|
29
|
-
"421 880 87-25", # Göteborg Dödsbotjänster AB
|
|
30
29
|
"4-2", # Sveriges riksbank
|
|
31
30
|
].each do |number|
|
|
32
31
|
it "should be empty for a valid number like #{number}" do
|
|
@@ -41,8 +40,8 @@ RSpec.describe BankTools::SE::Plusgiro do
|
|
|
41
40
|
expect(BankTools::SE::Plusgiro.new("1---------").errors).to include(BankTools::SE::Errors::TOO_SHORT)
|
|
42
41
|
end
|
|
43
42
|
|
|
44
|
-
it "should include :too_long for numbers longer than
|
|
45
|
-
expect(BankTools::SE::Plusgiro.new("410 54
|
|
43
|
+
it "should include :too_long for numbers longer than 8 digits" do
|
|
44
|
+
expect(BankTools::SE::Plusgiro.new("410 54-51 21").errors).to include(BankTools::SE::Errors::TOO_LONG)
|
|
46
45
|
end
|
|
47
46
|
|
|
48
47
|
it "should include :invalid_characters for numbers with other character than digits, spaces and dashes" do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: banktools-se
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.3.
|
|
4
|
+
version: 3.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Henrik Nyh
|
|
@@ -45,7 +45,7 @@ licenses: []
|
|
|
45
45
|
metadata:
|
|
46
46
|
rubygems_mfa_required: 'true'
|
|
47
47
|
source_code_uri: https://github.com/barsoom/banktools-se
|
|
48
|
-
changelog_uri: https://github.com/barsoom/banktools-se/blob/v3.3.
|
|
48
|
+
changelog_uri: https://github.com/barsoom/banktools-se/blob/v3.3.2/CHANGELOG.md
|
|
49
49
|
rdoc_options: []
|
|
50
50
|
require_paths:
|
|
51
51
|
- lib
|