valvat 0.8.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES.md +11 -1
- data/README.md +1 -1
- data/lib/valvat/checksum/nl.rb +5 -0
- data/lib/valvat/locales/fr.yml +17 -17
- data/lib/valvat/version.rb +1 -1
- data/spec/valvat/checksum/nl_spec.rb +2 -2
- data/spec/valvat/utils_spec.rb +1 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7897eba1d19df7531d3d3e89774c20eb24cc3000b4b2a79c1c120984cbb0fd8b
|
4
|
+
data.tar.gz: f03e192010dc4189222da7bbf4a6327ca418a1d7603b5819ad9707b39bdf4675
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75cdc4f8ef17c43c21c4893cfe6cec832b33e0743d7a14f9b57dec4629a7d37b54c3388b673d442c4fc47b9030665371111fff721f78f906d16a668f0f0d38c6
|
7
|
+
data.tar.gz: bb3c8ef8f9d0680536ee33709e6ecc5ea9c82db0a757d99eb516bda04c1a6bbf8853d177bcca6807c0affa2325a9b51be834b73467266847932f5723158a4b14
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
|
+
|
1
2
|
### dev
|
2
3
|
|
3
|
-
[full changelog](http://github.com/yolk/valvat/compare/v0.
|
4
|
+
[full changelog](http://github.com/yolk/valvat/compare/v0.9.0...master)
|
5
|
+
|
6
|
+
### 0.9.0 / 2020-02-28
|
7
|
+
|
8
|
+
[full changelog](http://github.com/yolk/valvat/compare/v0.8.2...v0.9.0)
|
9
|
+
|
10
|
+
* Validate new dutch 2020 vat identification number (by [yvonnenieuwerth](https://github.com/yvonnenieuwerth))
|
11
|
+
* Set the country adjectives to masculine in FR locales (by [bobmaerten](https://github.com/bobmaerten))
|
12
|
+
* Fix greek country adjectif in french (by [bobmaerten](https://github.com/bobmaerten))
|
13
|
+
*
|
4
14
|
|
5
15
|
### 0.8.2 / 2019-11-15
|
6
16
|
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Add it to your Gemfile:
|
|
22
22
|
|
23
23
|
gem 'valvat'
|
24
24
|
|
25
|
-
To
|
25
|
+
To use less memory (~3.5 mb vs. ~0.5 mb) and load only the local verification functionality – and not the remote lookup with VIES – add it like this instead:
|
26
26
|
|
27
27
|
gem 'valvat', :require => 'valvat/local'
|
28
28
|
|
data/lib/valvat/checksum/nl.rb
CHANGED
data/lib/valvat/locales/fr.yml
CHANGED
@@ -5,29 +5,29 @@ fr:
|
|
5
5
|
valvat:
|
6
6
|
country_adjectives:
|
7
7
|
eu: intracommunautaire
|
8
|
-
at:
|
8
|
+
at: autrichien
|
9
9
|
be: belge
|
10
10
|
bg: bulgare
|
11
11
|
cy: chypriote
|
12
12
|
cz: tchèque
|
13
|
-
de:
|
14
|
-
dk:
|
13
|
+
de: allemand
|
14
|
+
dk: danois
|
15
15
|
ee: estonien
|
16
|
-
es:
|
17
|
-
fi:
|
18
|
-
fr:
|
16
|
+
es: espagnol
|
17
|
+
fi: finlandais
|
18
|
+
fr: français
|
19
19
|
gb: britannique
|
20
|
-
gr:
|
21
|
-
ie:
|
22
|
-
it:
|
23
|
-
lt:
|
24
|
-
lu:
|
25
|
-
lv:
|
20
|
+
gr: grec
|
21
|
+
ie: irlandais
|
22
|
+
it: italien
|
23
|
+
lt: lituanien
|
24
|
+
lu: luxembourgeois
|
25
|
+
lv: letton
|
26
26
|
mt: maltais
|
27
|
-
nl:
|
28
|
-
pl:
|
29
|
-
pt:
|
30
|
-
ro:
|
31
|
-
se:
|
27
|
+
nl: hollandais
|
28
|
+
pl: polonais
|
29
|
+
pt: portugais
|
30
|
+
ro: roumain
|
31
|
+
se: suédois
|
32
32
|
si: slovène
|
33
33
|
sk: slovaque
|
data/lib/valvat/version.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Valvat::Checksum::NL do
|
4
|
-
%w(NL123456782B12 NL802549391B01 NL808661863B01 NL820893559B01).each do |valid_vat|
|
4
|
+
%w(NL123456782B12 NL802549391B01 NL808661863B01 NL820893559B01 NL000099998B57 NL123456789B13).each do |valid_vat|
|
5
5
|
it "returns true on valid vat #{valid_vat}" do
|
6
6
|
expect(Valvat::Checksum.validate(valid_vat)).to eql(true)
|
7
7
|
end
|
8
8
|
|
9
|
-
invalid_vat = "#{valid_vat[0..-5]}#{valid_vat[-2]}#{valid_vat[-3]}#{valid_vat[-4]}#{valid_vat[-1]}"
|
9
|
+
invalid_vat = "#{valid_vat[0..-5]}#{valid_vat[-2]}#{valid_vat[-3]}#{valid_vat[-4]}#{valid_vat[-1]}#{valid_vat[-2]}#{valid_vat[-3]}"
|
10
10
|
|
11
11
|
it "returns false on invalid vat #{invalid_vat}" do
|
12
12
|
expect(Valvat::Checksum.validate(invalid_vat)).to eql(false)
|
data/spec/valvat/utils_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valvat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Munz
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
rAFNAD1QEGN6elQdy1MRuXwjcUhM8P8ofLDEaE225TSZvAI+XoCxW2PSsQj5cGER
|
35
35
|
9vbf6JSKzQPa/HeBoU0s1Q==
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date:
|
37
|
+
date: 2020-02-28 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: savon
|
metadata.gz.sig
CHANGED
Binary file
|