bicvalidator 0.1.5 → 0.1.6
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/README.md +10 -10
- data/lib/bicvalidator/version.rb +1 -1
- data/lib/bicvalidator.rb +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a0e6e29bbcdfd141c5f006d7aa7b280ae174b18
|
|
4
|
+
data.tar.gz: 4646892bed106a30e30e7baf805aeb77ad55932f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37fd35217f67e97ad7721f52595a8fd5661ae1f804e3801981220c48db0a1e6ae7f103f335e3961c715553da3b8425f2827bd4549dd457765bebc94bd645447b
|
|
7
|
+
data.tar.gz: 16420db5a2c64740931124d6034dd0b84ba3ccdffac44dc829f2d30c766a6a91a61e36fa76fa62b7fc21928e46915f738aa6b08176a0248114650b707dd11127
|
data/README.md
CHANGED
|
@@ -37,23 +37,23 @@ In den Bics sind mehr Länder als in den IBANS, denn die französischen und engl
|
|
|
37
37
|
bv.country => "DE"
|
|
38
38
|
bv.location) => "M1"
|
|
39
39
|
bv.branch) => "AHL"
|
|
40
|
-
bv.sepa_scheme? => true (ist gemäß dem SEPA-Ländercodes im SEPA-Schema Raum)
|
|
41
|
-
|
|
40
|
+
bv.sepa_scheme? => true (ist gemäß dem SEPA-Ländercodes im SEPA-Schema Raum, zb CH ist drin, obwohl nicht EU)
|
|
41
|
+
bv.eu? => true
|
|
42
42
|
|
|
43
43
|
### Errorcodes
|
|
44
|
-
|
|
45
|
-
"BV0010" if !has_valid_lenght?
|
|
46
|
-
"BV0011" if !has_valid_format?
|
|
47
|
-
"BV0012" if !valid_country_code?
|
|
48
|
-
"BV0013" if !valid_location_code?
|
|
49
|
-
"BV0014" if !valid_branch_code?
|
|
44
|
+
Wenn man genau wissen will , was der Fehler ist kann man mit bv.errorcode den genauen Wert ermitteln
|
|
45
|
+
* "BV0010" if !has_valid_lenght?
|
|
46
|
+
* "BV0011" if !has_valid_format?
|
|
47
|
+
* "BV0012" if !valid_country_code?
|
|
48
|
+
* "BV0013" if !valid_location_code?
|
|
49
|
+
* "BV0014" if !valid_branch_code?
|
|
50
50
|
|
|
51
51
|
### Tests per Rspec
|
|
52
52
|
rspec
|
|
53
53
|
|
|
54
54
|
### Gem Pushing
|
|
55
|
-
gem build bicvalidator.gemspec
|
|
56
|
-
gem push bicvalidator-X.X.X.gem
|
|
55
|
+
* gem build bicvalidator.gemspec
|
|
56
|
+
* gem push bicvalidator-X.X.X.gem
|
|
57
57
|
|
|
58
58
|
## Development
|
|
59
59
|
|
data/lib/bicvalidator/version.rb
CHANGED
data/lib/bicvalidator.rb
CHANGED
|
@@ -12,8 +12,6 @@ module Bicvalidator
|
|
|
12
12
|
|
|
13
13
|
Bicvalidator.sepa_bic_countries = ["AT", "BE", "BG", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GR", "HR", "HU", "IE", "IT", "LI", "LT", "LU", "LV", "MC", "MT", "NL", "NO", "PL", "PT", "RO", "SE", "SI", "SK", "SM", "GI", "GF", "GP", "GG", "IS", "IM", "JE", "MQ", "YT", "RE", "BL", "MF", "PM"]
|
|
14
14
|
Bicvalidator.countries = ISO3166::Country.translations.keys
|
|
15
|
-
Bicvalidator.eu_countries = ISO3166::Country.all.select {|it| it.in_eu?}
|
|
16
|
-
#Bicvalidator.non_eu_countries = Bicvalidator.countries - Bicvalidator.eu_countries
|
|
17
|
-
|
|
15
|
+
Bicvalidator.eu_countries = ISO3166::Country.all.select {|it| it.in_eu?}.map{|et| et.alpha2}
|
|
18
16
|
|
|
19
17
|
end
|