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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92de431f5777b0b5115169e30bac0233ce3d9047c1bc74b9d42fe02acb2b460d
4
- data.tar.gz: 0146a80725a3dce432002a456b8e9f10e3a65ee5d36b27dac5c6d646dc48fa70
3
+ metadata.gz: dc72697b0c9176fc5204b1434efb9acb303e70f37ba894518a92ef964e22111b
4
+ data.tar.gz: 879918277a1fdee158ae2d45d5ba12c06ed9ce2f3a61143f8ae737cb079f4f8a
5
5
  SHA512:
6
- metadata.gz: b6d08a4d98163bd195d861c83a837042e93bfebe13606c0fce10a703bf702296eb406f75d39349e46e7078289b74d2779f511b3d3a77a49e4d4fb5e585fb01cc
7
- data.tar.gz: c2190c0f729188281e4894fb1d7e2b4b771171215da07329b0fc92fcda8806f5ac8fe3d7d1eb2d2c1f1e941a06b3d3c22a975369d5617589702a86d727166d4b
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.3...master)
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
 
@@ -1,7 +1,7 @@
1
1
  fr:
2
2
  errors:
3
3
  messages:
4
- invalid_vat: "Numéro de TVA %{country_adjective} invalide"
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' => /\ABE0[0-9]{9}\Z/, # Belgium
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Valvat
4
- VERSION = '1.1.3'
4
+ VERSION = '1.1.4'
5
5
  end
@@ -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 BE1817331999])
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.3
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-01-26 00:00:00.000000000 Z
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