valvat 1.1.3 → 1.1.4
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/CHANGES.md +8 -1
- data/lib/valvat/locales/fr.yml +1 -1
- data/lib/valvat/syntax.rb +1 -1
- data/lib/valvat/version.rb +1 -1
- data/spec/valvat/syntax_spec.rb +1 -1
- data.tar.gz.sig +0 -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: dc72697b0c9176fc5204b1434efb9acb303e70f37ba894518a92ef964e22111b
|
4
|
+
data.tar.gz: 879918277a1fdee158ae2d45d5ba12c06ed9ce2f3a61143f8ae737cb079f4f8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd117658d26b50836714888ddc58b0a1155b380d874887af56b299226120164a7730b44cf76599f281bc51ab87dc4ce535dada233dbf2a99b62f84502b418fe0
|
7
|
+
data.tar.gz: 7c452101dc8994424f4e3af668834f16e7fe1297b71f634f42e0ea4f25fe2678cafb33b154ca9d3ffa9de9b578cb20869fcb251464393f67aec98ac24543273c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGES.md
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
|
2
2
|
### dev
|
3
3
|
|
4
|
-
[full changelog](http://github.com/yolk/valvat/compare/v1.1.
|
4
|
+
[full changelog](http://github.com/yolk/valvat/compare/v1.1.4...master)
|
5
|
+
|
6
|
+
### 1.1.4 / 2022-05-05
|
7
|
+
|
8
|
+
[full changelog](http://github.com/yolk/valvat/compare/v1.1.3...v1.1.4)
|
9
|
+
|
10
|
+
* Support BE 1-series format (by [Cashaca](https://github.com/Cashaca))
|
11
|
+
* Removed duplication on french error messages (by [Sunny Ripert](https://github.com/sunny))
|
5
12
|
|
6
13
|
### 1.1.3 / 2022-01-26
|
7
14
|
|
data/lib/valvat/locales/fr.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
fr:
|
2
2
|
errors:
|
3
3
|
messages:
|
4
|
-
invalid_vat: "
|
4
|
+
invalid_vat: "n’est pas un numéro de TVA %{country_adjective} valide"
|
5
5
|
vies_down: "Impossible de valider votre numéro de TVA : le service de validation VIES est indisponible. Merci de réessayer ultérieurement."
|
6
6
|
valvat:
|
7
7
|
country_adjectives:
|
data/lib/valvat/syntax.rb
CHANGED
@@ -4,7 +4,7 @@ class Valvat
|
|
4
4
|
module Syntax
|
5
5
|
VAT_PATTERNS = {
|
6
6
|
'AT' => /\AATU[0-9]{8}\Z/, # Austria
|
7
|
-
'BE' => /\
|
7
|
+
'BE' => /\ABE[0-1][0-9]{9}\Z/, # Belgium
|
8
8
|
'BG' => /\ABG[0-9]{9,10}\Z/, # Bulgaria
|
9
9
|
'CY' => /\ACY(?!12)[0-59][0-9]{7}[A-Z]\Z/, # Cyprus
|
10
10
|
'CZ' => /\ACZ[0-9]{8,10}\Z/, # Czech Republic
|
data/lib/valvat/version.rb
CHANGED
data/spec/valvat/syntax_spec.rb
CHANGED
@@ -19,7 +19,7 @@ end
|
|
19
19
|
describe Valvat::Syntax do
|
20
20
|
describe '#validate' do
|
21
21
|
it_validates(%w[ATU03458890], %w[ATU034588908 ATU0345908 ATU0345889Y])
|
22
|
-
it_validates(%w[BE0817331995], %w[BE081733199 BE08173319944 BE081733199H
|
22
|
+
it_validates(%w[BE0817331995 BE1817331999], %w[BE081733199 BE08173319944 BE081733199H BE2817331999])
|
23
23
|
it_validates(%w[BG468134789 BG4681347897], %w[BG46813478979 BG4681347897C BG46813478G BG46813478])
|
24
24
|
it_validates(%w[CY36579347A CY36579347C], %w[CY36579347 CY365793478 CY365793478A CY365793G])
|
25
25
|
it_validates(%w[CZ56389267 CZ563892670 CZ5638926790], %w[CZ5638926 CZ56389268901])
|
data.tar.gz.sig
CHANGED
Binary file
|
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: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Munz
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
BUdT7mtr41GgvWnIjaGWAldSuabxx5H+PKS5FzjNDMHThRZWuvYp/nP2RXDh4gIa
|
36
36
|
7hV09P+XxvS96G+petG5KmC/lev8VqKu
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-
|
38
|
+
date: 2022-05-05 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: savon
|
metadata.gz.sig
CHANGED
Binary file
|