valvat 0.6.10 → 0.6.11

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: 655f782556b1ee6b9cfccc5486763530dc5b1ae5
4
- data.tar.gz: 4d1e00b30b52e767c89143146abec10318baf0cf
3
+ metadata.gz: ea57455edd0e89dd9205647d6c640528d900c068
4
+ data.tar.gz: a2f2633b44ad25e899ef8992fc3a4682a61b0d3b
5
5
  SHA512:
6
- metadata.gz: 0486abd6a05cc43c11a5be78ac2a2e693208ec15383943191235b997cdcecd11f3e29be1b461a19b62af8ecfae057b0488f523306b21cf70c6aa720a077efdff
7
- data.tar.gz: 3912cc34591df557fd2f92cebef7c9f3cdf9502d500e517db1aa83889644f2f4170f2efbb3582fbbf26ecb353c9aab62a8d36db5c4f2adb735b5449f7428c711
6
+ metadata.gz: 99fbddf4276e0f01d5dedc79943e1f2d558e0eb2a97d75513342df7addb6082839a4c6e0ee9ede4b9bf70a93da57612f689e69eba109a4fb77ed0cead328002e
7
+ data.tar.gz: 1b89e31ad6915365cbf83ff0a2852df470419485a2919d323508f8a87b4740c3a665d132af574a90eb4b1cbb1c6e57287dd326e6b3e7d7a8d7474cddcb9ffc41
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/.editorconfig ADDED
@@ -0,0 +1,15 @@
1
+ # This file is for unifying the coding style for different editors and IDEs.
2
+ # http://editorconfig.org
3
+
4
+ # No .editorconfig files above the root directory
5
+ root = true
6
+
7
+ [*]
8
+ indent_style = space
9
+ indent_size = 2
10
+ end_of_line = lf
11
+ charset = utf-8
12
+ trim_trailing_whitespace = true
13
+
14
+ [*.md]
15
+ trim_trailing_whitespace = false
data/.travis.yml CHANGED
@@ -1,11 +1,31 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
4
- - 2.1.5
5
- - 2.0.0
6
- - 1.9.3
3
+ - 2.4.0
4
+ - 2.3
5
+ - 2.2
6
+ - 2.1
7
7
  - jruby-19mode
8
8
  gemfile:
9
+ - gemfiles/activemodel-5
9
10
  - gemfiles/activemodel-4
10
11
  - gemfiles/activemodel-3-2
11
- - gemfiles/standalone
12
+ - gemfiles/standalone
13
+ matrix:
14
+ exclude:
15
+ - rvm: 2.1
16
+ gemfile: gemfiles/activemodel-5
17
+ - rvm: jruby-19mode
18
+ gemfile: gemfiles/activemodel-5
19
+ include:
20
+ - rvm: 2.0
21
+ gemfile: gemfiles/before-ruby21/activemodel-4
22
+ - rvm: 2.0
23
+ gemfile: gemfiles/before-ruby21/activemodel-3-2
24
+ - rvm: 2.0
25
+ gemfile: gemfiles/before-ruby21/standalone
26
+ - rvm: 1.9.3
27
+ gemfile: gemfiles/before-ruby21/activemodel-4
28
+ - rvm: 1.9.3
29
+ gemfile: gemfiles/before-ruby21/activemodel-3-2
30
+ - rvm: 1.9.3
31
+ gemfile: gemfiles/before-ruby21/standalone
data/CHANGES.md CHANGED
@@ -1,6 +1,14 @@
1
1
  ### dev
2
2
 
3
- [full changelog](http://github.com/yolk/valvat/compare/v0.6.10...master)
3
+ [full changelog](http://github.com/yolk/valvat/compare/v0.6.11...master)
4
+
5
+ ### 0.6.11 / 2017-04-07
6
+
7
+ [full changelog](http://github.com/yolk/valvat/compare/v0.6.10...v0.6.11)
8
+
9
+ * Removed fakeweb tests and dependency
10
+ * Add French checksum validation (by [0ctobat](https://github.com/0ctobat))
11
+ * Test against current ruby (2.4) and activemodel (5.0) versions
4
12
 
5
13
  ### 0.6.10 / 2015-05-29
6
14
 
data/README.md CHANGED
@@ -9,12 +9,12 @@ Validates european vat numbers. Standalone or as a ActiveModel validator.
9
9
 
10
10
  * Simple syntax verification
11
11
  * Lookup via the VIES web service
12
- * (Optional) ActiveModel/Rails3 integration
12
+ * ActiveModel/Rails integration
13
13
  * Works standalone without ActiveModel
14
- * I18n locales for country specific error messages in English, German, French, Spanish, Italian, Portuguese, Polish, Swedish, Dutch, Danish, Bulgarian, Romanian, Latvian, Catalan, and Finish.
14
+ * I18n locales for country specific error messages in English, German, French, Spanish, Italian, Portuguese, Polish, Swedish, Dutch, Danish, Czech, Bulgarian, Romanian, Latvian, Catalan, and Finnish.
15
15
  * *Experimental* checksum verification
16
16
 
17
- valvat is tested and works with ruby MRI 1.9.3/2.0/2.1/2.2, jruby (in 1.9 mode) and ActiveModel 3.2/4.2
17
+ valvat is tested and works with ruby MRI 1.9.3/2.0/2.1/2.2/2.3/2.4, jruby (in 1.9 mode) and ActiveModel 3/4/5
18
18
 
19
19
  ## Installation
20
20
 
@@ -48,12 +48,12 @@ Or to lookup a vat number string directly via VIES web service:
48
48
 
49
49
  ## Experimental checksum verification
50
50
 
51
- valvat allows to check vat numbers from AT, BE, BG, DE, DK, ES, FI, GR, IE, IT, LU, NL, PL, PT, SE and SI against a checksum calculation. All other countries will fall back to a simple syntax check:
51
+ valvat allows to check vat numbers from AT, BE, BG, DE, DK, ES, FR, FI, GR, IE, IT, LU, NL, PL, PT, SE and SI against a checksum calculation. All other countries will fall back to a simple syntax check:
52
52
 
53
53
  Valvat.new("DE345789003").valid_checksum?
54
54
  => true or false
55
55
 
56
- These results are more valuabel than a simple syntax check, but keep in mind: they can not replace a lookup via VIES.
56
+ These results are more valuable than a simple syntax check, but keep in mind: they can not replace a lookup via VIES.
57
57
 
58
58
  *IMPORTANT* This feature was tested against all vat numbers I could get my hand on, but it is still marked as *experimental* because these calculations are not documented and may return wrong results.
59
59
 
@@ -188,6 +188,7 @@ There seems to be a problem when using the VIES service over IPv6. Sadly this is
188
188
 
189
189
  ## Contributions by
190
190
 
191
+ * [0ctobat](https://github.com/0ctobat)
191
192
  * [kaapa](https://github.com/kaapa)
192
193
  * [descala](https://github.com/descala)
193
194
  * [Carlos Hernández Medina](https://github.com/polimorfico)
@@ -210,6 +211,6 @@ There seems to be a problem when using the VIES service over IPv6. Sadly this is
210
211
 
211
212
  ## BlaBla
212
213
 
213
- Copyright (c) 2011-2015 Yolk Sebastian Munz & Julia Soergel GbR
214
+ Copyright (c) 2011-2017 Yolk Sebastian Munz & Julia Soergel GbR
214
215
 
215
- Beyond that, the implementation is licensed under the MIT License.
216
+ Beyond that, the implementation is licensed under the MIT License.
data/certs/yolk.pem CHANGED
@@ -1,21 +1,21 @@
1
1
  -----BEGIN CERTIFICATE-----
2
2
  MIIDZDCCAkygAwIBAgIBATANBgkqhkiG9w0BAQUFADA8MRIwEAYDVQQDDAlzZWJh
3
3
  c3RpYW4xEjAQBgoJkiaJk/IsZAEZFgJ5bzESMBAGCgmSJomT8ixkARkWAmxrMB4X
4
- DTE0MTEyMTAwNDM0MVoXDTE1MTEyMTAwNDM0MVowPDESMBAGA1UEAwwJc2ViYXN0
4
+ DTE3MDQwNzE1MjU0MVoXDTE4MDQwNzE1MjU0MVowPDESMBAGA1UEAwwJc2ViYXN0
5
5
  aWFuMRIwEAYKCZImiZPyLGQBGRYCeW8xEjAQBgoJkiaJk/IsZAEZFgJsazCCASIw
6
- DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANasw5c9kHKtv+/YMA7Y7qSTyVWA
7
- ZWg13jd0qB3wc8LbcaHVpIQEC9w/w10wpxSYBlJMet2CAdFAPyKCG0KwOdaA4PMS
8
- CtGdGsQeHomSWh5Iv1aLih83YS2pMBVyYkSCYu/uwXIIFyPFKIsDcBL6f4VgLZ/6
9
- krcOGo2pjZcDIAfkYP/9jsO/oDndBRxllJwwnWEJfCttst5l55D2QhTQmrqYyiiZ
10
- YR8s7gMl7MaYff4kfMAMpX3NwJjH0NT1oe3a9Un/CQEsA9GE4We4GzWkCab44mH8
11
- QlCoa34l7McCusp2cI5wss5YJIi/j62NI1KS9Z8lmXPAhNluvLJLPWTmpDMCAwEA
12
- AaNxMG8wCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFFMflmaf++se
13
- 3zLQx7xKfU1LiOCWMBoGA1UdEQQTMBGBD3NlYmFzdGlhbkB5by5sazAaBgNVHRIE
14
- EzARgQ9zZWJh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skBbHjmIyPrEHBXfAf6YqQhqtUm
16
+ V7k4cEbcXKQyPUmoX5u+v1VFbVBUWTQTnC9rnHn7KEu7NnXjU+nV0EVBMJMbvnNR
17
+ 4pktQakuj4t5rFHb21Ar/X1ANIzlGk6IwrKifmCSyIZgB+jtVOynvWSB7TraROQK
18
+ BZBBbMjjsp7oFqwcDFMLZ0vngKVXTZW4Fb02/KxGtPthGWNDiXVrHCNPWR1QI8+A
19
+ uE5yNhiszXkFmLQWPm57rwu8PbwT7av5kmYVhn8qkRz2aZnuAlLV3rcq2Khe5F0/
20
+ jZmT2fJ8H8g=
21
21
  -----END CERTIFICATE-----
@@ -1,8 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem "savon", ">=2.3.0"
4
- gem "activemodel", "3.2.21"
4
+ gem "activemodel", "~> 3.2"
5
5
 
6
6
  gem 'rspec', '~> 3.0'
7
- gem 'fakeweb', '>= 1.3.0'
7
+ gem 'rack', '< 2'
8
8
  gem 'rake'
@@ -1,8 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem "savon", ">=2.3.0"
4
- gem "activemodel", "4.2.1"
4
+ gem "activemodel", "~> 4.2"
5
5
 
6
6
  gem 'rspec', '~> 3.0'
7
- gem 'fakeweb', '>= 1.3.0'
7
+ gem 'rack', '< 2'
8
8
  gem 'rake'
@@ -0,0 +1,8 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "savon", ">=2.3.0"
4
+ gem "activemodel", "~> 5.0.2"
5
+
6
+ gem 'rspec', '~> 3.0'
7
+ gem 'rack'
8
+ gem 'rake'
@@ -0,0 +1,9 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "nokogiri", "< 1.7"
4
+ gem "savon", ">=2.3.0"
5
+ gem "activemodel", "~> 3.2"
6
+
7
+ gem 'rspec', '~> 3.0'
8
+ gem 'rack', '< 2'
9
+ gem 'rake'
@@ -0,0 +1,9 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "nokogiri", "< 1.7"
4
+ gem "savon", ">=2.3.0"
5
+ gem "activemodel", "~> 4.2"
6
+
7
+ gem 'rspec', '~> 3.0'
8
+ gem 'rack', '< 2'
9
+ gem 'rake'
@@ -0,0 +1,8 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "nokogiri", "< 1.7"
4
+ gem "savon", ">=2.3.0"
5
+
6
+ gem 'rspec', '~> 3.0'
7
+ gem 'rack', '< 2'
8
+ gem 'rake'
data/gemfiles/standalone CHANGED
@@ -3,5 +3,5 @@ source "http://rubygems.org"
3
3
  gem "savon", ">=2.3.0"
4
4
 
5
5
  gem 'rspec', '~> 3.0'
6
- gem 'fakeweb', '>= 1.3.0'
6
+ gem 'rack', '< 2'
7
7
  gem 'rake'
@@ -0,0 +1,14 @@
1
+ class Valvat
2
+ module Checksum
3
+ class FR < Base
4
+ def check_digit
5
+ siren = str_wo_country[2..-1].to_i
6
+ (12 + (3 * siren) % 97) % 97
7
+ end
8
+
9
+ def given_check_digit
10
+ str_wo_country[0..1].to_i
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,7 +1,7 @@
1
1
  es:
2
2
  errors:
3
3
  messages:
4
- invalid_vat: el número de IVA intracomunitario %{country_adjective} no es válido
4
+ invalid_vat: el número de IVA intracomunitario %{country_adjective} no es válido
5
5
  valvat:
6
6
  country_adjectives:
7
7
  eu: europeo
@@ -1,33 +1,33 @@
1
- fr:
2
- errors:
3
- messages:
4
- invalid_vat: "ce n`est pas un nombre d`identification de TVA %{country_adjective} valide"
5
- valvat:
6
- country_adjectives:
7
- eu: européen
8
- at: autrichienne
9
- be: belge
10
- bg: bulgare
11
- cy: chypriote
12
- cz: tchèque
13
- de: allemande
14
- dk: danoise
15
- ee: estonien
16
- es: espagnole
17
- fi: finlandaise
18
- fr: français
19
- gb: britannique
20
- gr: grec
21
- ie: irlandais
22
- it: italien
23
- lt: lituanienne
24
- lu: luxembourgeoise
25
- lv: letton
26
- mt: maltais
27
- nl: français
28
- pl: polonais
29
- pt: portugais
30
- ro: roumaine
31
- se: suédois
32
- si: suédois
33
- sk: slovaque
1
+ fr:
2
+ errors:
3
+ messages:
4
+ invalid_vat: "Numéro de TVA %{country_adjective} invalide"
5
+ valvat:
6
+ country_adjectives:
7
+ eu: intracommunautaire
8
+ at: autrichienne
9
+ be: belge
10
+ bg: bulgare
11
+ cy: chypriote
12
+ cz: tchèque
13
+ de: allemande
14
+ dk: danoise
15
+ ee: estonien
16
+ es: espagnole
17
+ fi: finlandaise
18
+ fr: française
19
+ gb: britannique
20
+ gr: grèque
21
+ ie: irlandaise
22
+ it: italienne
23
+ lt: lituanienne
24
+ lu: luxembourgeoise
25
+ lv: lettone
26
+ mt: maltais
27
+ nl: hollandaise
28
+ pl: polonaise
29
+ pt: portugaise
30
+ ro: roumaine
31
+ se: suédoise
32
+ si: slovène
33
+ sk: slovaque
@@ -1,3 +1,3 @@
1
1
  class Valvat
2
- VERSION = "0.6.10"
2
+ VERSION = "0.6.11"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -4,12 +4,9 @@ begin
4
4
  rescue LoadError => err
5
5
  puts "Running specs without active_model extension"
6
6
  end
7
- require 'fakeweb'
8
7
 
9
8
  require File.dirname(__FILE__) + '/../lib/valvat.rb'
10
9
 
11
- $fakeweb = true
12
-
13
10
  RSpec.configure do |config|
14
11
  config.mock_with :rspec
15
12
  config.filter_run :focus => true
@@ -37,13 +34,3 @@ if defined?(ActiveModel)
37
34
  end
38
35
  end
39
36
  end
40
-
41
- def without_any_web_requests!
42
- before(:all) do
43
- FakeWeb.clean_registry
44
- FakeWeb.allow_net_connect = false
45
- end
46
- after(:all) do
47
- FakeWeb.allow_net_connect = true
48
- end
49
- end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe Valvat::Checksum::FR do
4
+ %w(FR60528551658 FR43820567501).each do |valid_vat|
5
+ it "returns true on valid vat #{valid_vat}" do
6
+ expect(Valvat::Checksum.validate(valid_vat)).to eql(true)
7
+ end
8
+
9
+ invalid_vat = "#{valid_vat[0..-3]}#{valid_vat[-1]}#{valid_vat[-2]}"
10
+
11
+ it "returns false on invalid vat #{invalid_vat}" do
12
+ expect(Valvat::Checksum.validate(invalid_vat)).to eql(false)
13
+ end
14
+ end
15
+ end
@@ -9,7 +9,7 @@ end
9
9
  describe Valvat::Checksum do
10
10
  describe "#validate" do
11
11
  it "returns true on vat number with unknown checksum algorithm" do
12
- expect(Valvat::Checksum.validate("FR99123543267")).to eql(true)
12
+ expect(Valvat::Checksum.validate("HR12345678901")).to eql(true)
13
13
  end
14
14
 
15
15
  it "returns false on corrupt number (e.g checks syntax)" do
@@ -38,8 +38,6 @@ describe Valvat::Lookup do
38
38
  end
39
39
 
40
40
  context "invalid country code / input" do
41
- without_any_web_requests!
42
-
43
41
  it "returns false" do
44
42
  expect(Valvat::Lookup.validate("AE259597697")).to eql(false)
45
43
  expect(Valvat::Lookup.validate("")).to eql(false)
@@ -131,7 +129,7 @@ describe Valvat::Lookup do
131
129
  # before do
132
130
  # json = "{\"error_message\": \"Member State service unavailable.\", \"error_code\": 1, \"error\": true}"
133
131
  # FakeWeb.register_uri(:get, "http://isvat.appspot.com/DE/259597697/", :body => json)
134
- # end if $fakeweb
132
+ # end
135
133
 
136
134
  # it "returns nil" do
137
135
  # Valvat::Lookup.validate("DE259597697").should eql(nil)
data/spec/valvat_spec.rb CHANGED
@@ -30,7 +30,7 @@ describe Valvat do
30
30
 
31
31
 
32
32
  describe "#blank?" do
33
-
33
+
34
34
  it "returns true when when initialized with nil" do
35
35
  expect(Valvat.new(nil)).to be_blank
36
36
  end
@@ -173,8 +173,6 @@ describe Valvat do
173
173
  end
174
174
 
175
175
  describe "#exist?" do
176
- without_any_web_requests!
177
-
178
176
  it "returns false" do
179
177
  expect(us_vat).not_to be_exist
180
178
  expect(ch_vat).not_to be_exist
@@ -234,8 +232,6 @@ describe Valvat do
234
232
  end
235
233
 
236
234
  describe "#exist?" do
237
- without_any_web_requests!
238
-
239
235
  it "returns false" do
240
236
  expect(only_iso_vat).not_to be_exist
241
237
  expect(num_vat).not_to be_exist
data/valvat.gemspec CHANGED
@@ -24,5 +24,4 @@ Gem::Specification.new do |s|
24
24
 
25
25
  s.add_development_dependency 'rspec', '~> 3.0'
26
26
  s.add_development_dependency 'activemodel', '>= 3.0'
27
- s.add_development_dependency 'fakeweb', '>= 1.3.0'
28
27
  end
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.6.10
4
+ version: 0.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Munz
@@ -12,25 +12,25 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDZDCCAkygAwIBAgIBATANBgkqhkiG9w0BAQUFADA8MRIwEAYDVQQDDAlzZWJh
14
14
  c3RpYW4xEjAQBgoJkiaJk/IsZAEZFgJ5bzESMBAGCgmSJomT8ixkARkWAmxrMB4X
15
- DTE0MTEyMTAwNDM0MVoXDTE1MTEyMTAwNDM0MVowPDESMBAGA1UEAwwJc2ViYXN0
15
+ DTE3MDQwNzE1MjU0MVoXDTE4MDQwNzE1MjU0MVowPDESMBAGA1UEAwwJc2ViYXN0
16
16
  aWFuMRIwEAYKCZImiZPyLGQBGRYCeW8xEjAQBgoJkiaJk/IsZAEZFgJsazCCASIw
17
- DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANasw5c9kHKtv+/YMA7Y7qSTyVWA
18
- ZWg13jd0qB3wc8LbcaHVpIQEC9w/w10wpxSYBlJMet2CAdFAPyKCG0KwOdaA4PMS
19
- CtGdGsQeHomSWh5Iv1aLih83YS2pMBVyYkSCYu/uwXIIFyPFKIsDcBL6f4VgLZ/6
20
- krcOGo2pjZcDIAfkYP/9jsO/oDndBRxllJwwnWEJfCttst5l55D2QhTQmrqYyiiZ
21
- YR8s7gMl7MaYff4kfMAMpX3NwJjH0NT1oe3a9Un/CQEsA9GE4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AIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJZhKY2tg3YH
24
+ 6ijnuqXJUyhLJ3cxMBoGA1UdEQQTMBGBD3NlYmFzdGlhbkB5by5sazAaBgNVHRIE
25
+ EzARgQ9zZWJhc3RpYW5AeW8ubGswDQYJKoZIhvcNAQEFBQADggEBAEiRlI+2VUC0
26
+ N6mWD1FDKYb+ok2xaTnrn+tFK2JwnKQj88F5gskBbHjmIyPrEHBXfAf6YqQhqtUm
27
+ V7k4cEbcXKQyPUmoX5u+v1VFbVBUWTQTnC9rnHn7KEu7NnXjU+nV0EVBMJMbvnNR
28
+ 4pktQakuj4t5rFHb21Ar/X1ANIzlGk6IwrKifmCSyIZgB+jtVOynvWSB7TraROQK
29
+ BZBBbMjjsp7oFqwcDFMLZ0vngKVXTZW4Fb02/KxGtPthGWNDiXVrHCNPWR1QI8+A
30
+ uE5yNhiszXkFmLQWPm57rwu8PbwT7av5kmYVhn8qkRz2aZnuAlLV3rcq2Khe5F0/
31
+ jZmT2fJ8H8g=
32
32
  -----END CERTIFICATE-----
33
- date: 2015-05-29 00:00:00.000000000 Z
33
+ date: 2017-04-07 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: savon
@@ -74,20 +74,6 @@ dependencies:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '3.0'
77
- - !ruby/object:Gem::Dependency
78
- name: fakeweb
79
- requirement: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 1.3.0
84
- type: :development
85
- prerelease: false
86
- version_requirements: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: 1.3.0
91
77
  description: Validates european vat numbers. Standalone or as a ActiveModel validator.
92
78
  email:
93
79
  - sebastian@yo.lk
@@ -95,6 +81,7 @@ executables: []
95
81
  extensions: []
96
82
  extra_rdoc_files: []
97
83
  files:
84
+ - ".editorconfig"
98
85
  - ".gitignore"
99
86
  - ".travis.yml"
100
87
  - CHANGES.md
@@ -106,6 +93,10 @@ files:
106
93
  - certs/yolk.pem
107
94
  - gemfiles/activemodel-3-2
108
95
  - gemfiles/activemodel-4
96
+ - gemfiles/activemodel-5
97
+ - gemfiles/before-ruby21/activemodel-3-2
98
+ - gemfiles/before-ruby21/activemodel-4
99
+ - gemfiles/before-ruby21/standalone
109
100
  - gemfiles/standalone
110
101
  - lib/active_model/validations/valvat_validator.rb
111
102
  - lib/valvat.rb
@@ -117,6 +108,7 @@ files:
117
108
  - lib/valvat/checksum/dk.rb
118
109
  - lib/valvat/checksum/es.rb
119
110
  - lib/valvat/checksum/fi.rb
111
+ - lib/valvat/checksum/fr.rb
120
112
  - lib/valvat/checksum/gr.rb
121
113
  - lib/valvat/checksum/ie.rb
122
114
  - lib/valvat/checksum/it.rb
@@ -157,6 +149,7 @@ files:
157
149
  - spec/valvat/checksum/dk_spec.rb
158
150
  - spec/valvat/checksum/es_spec.rb
159
151
  - spec/valvat/checksum/fi_spec.rb
152
+ - spec/valvat/checksum/fr_spec.rb
160
153
  - spec/valvat/checksum/gr_spec.rb
161
154
  - spec/valvat/checksum/ie_spec.rb
162
155
  - spec/valvat/checksum/it_spec.rb
@@ -192,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
185
  version: '0'
193
186
  requirements: []
194
187
  rubyforge_project:
195
- rubygems_version: 2.4.5
188
+ rubygems_version: 2.6.8
196
189
  signing_key:
197
190
  specification_version: 4
198
191
  summary: Validates european vat numbers. Standalone or as a ActiveModel validator.
@@ -206,6 +199,7 @@ test_files:
206
199
  - spec/valvat/checksum/dk_spec.rb
207
200
  - spec/valvat/checksum/es_spec.rb
208
201
  - spec/valvat/checksum/fi_spec.rb
202
+ - spec/valvat/checksum/fr_spec.rb
209
203
  - spec/valvat/checksum/gr_spec.rb
210
204
  - spec/valvat/checksum/ie_spec.rb
211
205
  - spec/valvat/checksum/it_spec.rb
metadata.gz.sig CHANGED
Binary file