bicvalidator 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2b2e8ded8429995e10520a5488304c5b1f64d2c
4
- data.tar.gz: a14d65598eff53be950c932c06c9534671e283a9
3
+ metadata.gz: 4a0e6e29bbcdfd141c5f006d7aa7b280ae174b18
4
+ data.tar.gz: 4646892bed106a30e30e7baf805aeb77ad55932f
5
5
  SHA512:
6
- metadata.gz: 94a4c8f15d54e0aca7b5cbbe0fcd6f5b0dc1fa0090ff0c1306d7ae18f3962c8ef990f0e9cdae9086d094ae6ca3133007f46640d29cf10ce4d4c4fb615925092c
7
- data.tar.gz: d00a3c6b60844c0e711a1d1a4ffbbfdf9f94a56bf27825c97a39a96a97b865e3e43897a513b1ffcd2e12eebcbc1ecd7d3ebd78aa29a6bc4d8851c82fdf671a5d
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
- Wen 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?
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
 
@@ -1,3 +1,3 @@
1
1
  module Bicvalidator
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bicvalidator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olaf Kaderka