vat_id 0.0.1 → 0.0.2

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: f01d10f1ee878b961e929aa6f3adc76b325f1b83
4
- data.tar.gz: 3b1dfc9aaeccc7d491bfef857610ba5eb453b3ea
3
+ metadata.gz: 3f97f7f80cea0f6377afc0c537d30aa2e4856a22
4
+ data.tar.gz: 1c85e0a27f0e8986852ee5c4d2ec715159b057e5
5
5
  SHA512:
6
- metadata.gz: ad8bd614c188d7b354f9a212fceb8913fdf3fa786a95683b38dc257064c9a57ce0d80580f156359b4cad75bf6bf7d69cc9f616c8ce48c4a6611cc9edf5393dd8
7
- data.tar.gz: 6f8b1fa9d327b3834e3acfb705bba1218f1c46f82b7e8b2c239c2d0a569f3256e5642c686507f3afd525345f4b3ab4264ed100ac1318266c03889f8f7067f686
6
+ metadata.gz: 3e46b2a3baafbd598c2541a89b61e62d7ad4be6656a1acd8fb1cfb58b453d18fe92d54568b99ffd30a75eeb565ac851820a55c8dc20a093b5e88d19d96697046
7
+ data.tar.gz: bfe2b98f5f623e4b6bcd5d6ee250e23469beff299b76c0d135fdaeab08803cf718d01ba5d981611ef623d39130ff79289e58566ec7d91bc71c79038d82ced04a
data/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  VAT ID validation. Ships with an ActiveModel validator.
4
4
 
5
- [![Gem Version](https://badge.fury.io/rb/IBAN.png)](http://badge.fury.io/rb/vat_id)
6
- [![Build Status](https://travis-ci.org/max-power/iban.png?branch=master)](https://travis-ci.org/max-power/vat_id)
5
+ [![Gem Version](https://badge.fury.io/rb/vat_id.png)](http://badge.fury.io/rb/vat_id)
6
+ [![Build Status](https://travis-ci.org/max-power/vat_id.png?branch=master)](https://travis-ci.org/max-power/vat_id)
7
7
 
8
8
  ## Installation
9
9
 
@@ -30,6 +30,8 @@ es: '[A-Z0-9]\d{7}[A-Z0-9]' # Spain
30
30
  se: '\d{10}01' # Sweden
31
31
  gb: '(\d{9}|\d{12}|GD[0-4]\d{2}|HA[5-9]\d{2})' # UK
32
32
 
33
+ eu: '.*' # EU
34
+
33
35
  # Non-EU Countries
34
36
  al: '[J|K]\d{8}[A-Z]' # Albania
35
37
  au: '\d{9}' # Australia
@@ -1,3 +1,3 @@
1
1
  class VatId
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -85,7 +85,8 @@ describe VatId do
85
85
  'SE123456789001',
86
86
  'SI12345678',
87
87
  'SK1234567810',
88
- 'MXAAGB860519G31'
88
+ 'MXAAGB860519G31',
89
+ 'EU123ANCDEF2134'
89
90
  ].each do |code|
90
91
  describe code[0..1] do
91
92
  it "number #{code} should be valid" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vat_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin