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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 600245bcaff1e259996286998821855e9e4193222d8d335b10adc46a26b16648
4
- data.tar.gz: 8daa94ebc4db1d562b0b7b8546732ca4cd987a583245ad56dd0af738beb5349a
3
+ metadata.gz: ccccc22d21f8267923982fc38deeb6a399e005f7447ce10c7cad333786cae07d
4
+ data.tar.gz: 9fb1a7b6cd47306bc55b206d73bd9e64a95f299d5123f957eff1894411820a58
5
5
  SHA512:
6
- metadata.gz: 4794736dd16c9390a3f2536e59cdb3a988a0039dbcc4b641361db9955f0c787647f2a178e3e0e3289962ab0be42fcbcb0509dd284a6c2bd58cf357075c61dbaf
7
- data.tar.gz: 6d5cb0c57e1fdce708b5b77761be6db8a1e6390baf730a347c8241dbf5d22378d282b8de8baf66c07463462dc8a7fc531e8c632858f3fe2f34715895c6c5f5c1
6
+ metadata.gz: b33615c06ae45f94fc8a73cf1f0b5dffcf2558bb33aaeacf9537c33f52b9f13d6d86a538e77437d866aab720040df8bf5253080915eeabb54ee56b49fe05c2f0
7
+ data.tar.gz: ac5d291cc1008477b7580f372015e7a9bd1c9613f8887a21fced5ba2ac2a419396f698421f9c659f7aaf181013deb2c39cb670daa8fb3a832d32a2f455597cb5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.3.2
4
+
5
+ - Revert erroneous changes introduced in 3.3.1
6
+
7
+ ## 3.3.1
8
+
9
+ - Do not use.
10
+
3
11
  ## 3.3.0
4
12
 
5
13
  - Add Lunar Bank clearing number range. [#14](https://github.com/barsoom/banktools-se/pull/14). Thanks, @andyglim!
@@ -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 = 10
8
+ MAX_LENGTH = 8
9
9
  MIN_LENGTH = 2
10
10
 
11
11
  attr_reader :number
@@ -1,5 +1,5 @@
1
1
  module BankTools
2
2
  module SE
3
- VERSION = "3.3.1"
3
+ VERSION = "3.3.2"
4
4
  end
5
5
  end
@@ -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 10 digits" do
45
- expect(BankTools::SE::Plusgiro.new("410 54 68-51 21").errors).to include(BankTools::SE::Errors::TOO_LONG)
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.1
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.1/CHANGELOG.md
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