valvat 0.6.7 → 0.6.8
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 +1 -0
- data/.ruby-version +1 -1
- data/.travis.yml +2 -1
- data/CHANGES.md +9 -1
- data/Guardfile +1 -1
- data/README.md +2 -1
- data/certs/yolk.pem +21 -0
- data/gemfiles/activemodel-3-2 +1 -6
- data/lib/valvat/checksum.rb +4 -3
- data/lib/valvat/checksum/at.rb +0 -2
- data/lib/valvat/checksum/be.rb +0 -2
- data/lib/valvat/checksum/de.rb +0 -2
- data/lib/valvat/checksum/dk.rb +0 -2
- data/lib/valvat/checksum/es.rb +0 -2
- data/lib/valvat/checksum/fi.rb +0 -2
- data/lib/valvat/checksum/gr.rb +0 -2
- data/lib/valvat/checksum/ie.rb +0 -2
- data/lib/valvat/checksum/it.rb +0 -2
- data/lib/valvat/checksum/lu.rb +0 -2
- data/lib/valvat/checksum/nl.rb +0 -2
- data/lib/valvat/checksum/pl.rb +0 -2
- data/lib/valvat/checksum/pt.rb +0 -2
- data/lib/valvat/checksum/se.rb +0 -2
- data/lib/valvat/checksum/si.rb +0 -2
- data/lib/valvat/lookup.rb +0 -1
- data/lib/valvat/syntax.rb +0 -2
- data/lib/valvat/version.rb +1 -1
- data/spec/spec_helper.rb +4 -0
- data/valvat.gemspec +11 -12
- metadata +26 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd8d2d5619d96c0f8a269bba25df839e3a4b2434
|
4
|
+
data.tar.gz: 76a5d6620d2a4a9009290d19847b9c49f5b669bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 441fb0184697917540c6e0227df53e8cfef1e2b83c3f3e1fe0c278c380dc8454f669bd2e3b368c25e92931935dfbc45678f221204bec76009dd3f2df8fe3976c
|
7
|
+
data.tar.gz: 51e211a97ad8a9e8fd13e0e5bbde19e655f87eed8c14ca1e84ac943b3ddfce2b30ac6703f3b8e74180bfd32b26ac3643cf29994810424d7b6287c502c6850343
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
P�.s^�?�o���b���P��rCx#�H�ft[A����a�K�z��{�Q�y_�Q��3�CY(`�X��<uu.���l�k�h�i(��|4�C�pc�c�����ܽ�|����A�1e_�B����Z�vZdꝬ���K ���S����˙bc�K������G��7�Ӧ�ு�9��>NV�������#������5�3ͧ��]���V������.?����iP�sH���RI5��w
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.5
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
### dev
|
2
2
|
|
3
|
-
[full changelog](http://github.com/yolk/valvat/compare/v0.6.
|
3
|
+
[full changelog](http://github.com/yolk/valvat/compare/v0.6.8...master)
|
4
|
+
|
5
|
+
### 0.6.8 / 2014-12-18
|
6
|
+
|
7
|
+
[full changelog](http://github.com/yolk/valvat/compare/v0.6.7...v0.6.8)
|
8
|
+
|
9
|
+
* Added cert to allow valvat to be installed with `gem install valvat -P MediumSecurity` (more info: http://guides.rubygems.org/security/)
|
10
|
+
* Removed all circular require-statements - fixed #34 (by [Julik Tarkhanov](https://github.com/julik))
|
11
|
+
* Fixed segfault with activemodel requiring files with .rb-suffix - fixed #34 (by [Julik Tarkhanov](https://github.com/julik))
|
4
12
|
|
5
13
|
### 0.6.7 / 2014-11-03
|
6
14
|
|
data/Guardfile
CHANGED
data/README.md
CHANGED
@@ -14,7 +14,7 @@ Validates european vat numbers. Standalone or as a ActiveModel validator.
|
|
14
14
|
* I18n locales for country specific error messages in English, German, French, Spanish, Italian, Portuguese, Polish, Swedish, Dutch, Danish, Bulgarian, Romanian and Latvian.
|
15
15
|
* *Experimental* checksum verification
|
16
16
|
|
17
|
-
valvat is tested and works with ruby MRI 1.9.3/2.0/2.1, jruby (in 1.9 mode) and
|
17
|
+
valvat is tested and works with ruby MRI 1.9.3/2.0/2.1, jruby (in 1.9 mode) and ActiveModel 3.2/4.1
|
18
18
|
|
19
19
|
## Installation
|
20
20
|
|
@@ -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
|
+
* [Julik Tarkhanov](https://github.com/julik)
|
191
192
|
* [Roman Lehnert](https://github.com/romanlehnert)
|
192
193
|
* [0scarius](https://github.com/0scarius)
|
193
194
|
* [Davidslv](https://github.com/Davidslv)
|
data/certs/yolk.pem
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDZDCCAkygAwIBAgIBATANBgkqhkiG9w0BAQUFADA8MRIwEAYDVQQDDAlzZWJh
|
3
|
+
c3RpYW4xEjAQBgoJkiaJk/IsZAEZFgJ5bzESMBAGCgmSJomT8ixkARkWAmxrMB4X
|
4
|
+
DTE0MTEyMTAwNDM0MVoXDTE1MTEyMTAwNDM0MVowPDESMBAGA1UEAwwJc2ViYXN0
|
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
|
+
EzARgQ9zZWJhc3RpYW5AeW8ubGswDQYJKoZIhvcNAQEFBQADggEBACXgGv9FgxgK
|
15
|
+
TfrqCD3QjViuE+FA9asYpTsvGSy7WLb1CKkLeKmElvZ8wU4Sa4CaQ5YkR1c0Q7yN
|
16
|
+
5lMXaqvexusXn0wLb0tK8T3h8Y7iAlNHOyzQQWR/ItSQ1b++SMTWgfoVUpbMLMJh
|
17
|
+
RZNSJimBylMwjYJROhkoaeeTdNdzNbL9We/+VGbqqzebSm4mQ/sgHiAW93VjGS6J
|
18
|
+
2bdbpSYqYnUvpWMB2za3uSzFKaWiFAIx7UC0jrsWzr6A/ql1y01DeTdAWK/3IMgy
|
19
|
+
wV8oppYhH3tRwfGrXgETqok7yPVYTZFcjCW9s9snwVE/JA23z12g54jVnaAP8SQH
|
20
|
+
L1HABGk4QCo=
|
21
|
+
-----END CERTIFICATE-----
|
data/gemfiles/activemodel-3-2
CHANGED
data/lib/valvat/checksum.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'valvat'
|
2
|
-
|
3
1
|
class Valvat
|
4
2
|
module Checksum
|
5
3
|
ALGORITHMS = {}
|
@@ -78,4 +76,7 @@ class Valvat
|
|
78
76
|
end
|
79
77
|
end
|
80
78
|
|
81
|
-
Dir.
|
79
|
+
Dir[File.join(File.dirname(__FILE__), 'checksum', '*.rb')].each do |path|
|
80
|
+
# On Ruby 2.1.0 ActiveSupport goes mad if you pass it paths with .rb at the end
|
81
|
+
require path.gsub(/\.rb$/, '')
|
82
|
+
end
|
data/lib/valvat/checksum/at.rb
CHANGED
data/lib/valvat/checksum/be.rb
CHANGED
data/lib/valvat/checksum/de.rb
CHANGED
data/lib/valvat/checksum/dk.rb
CHANGED
data/lib/valvat/checksum/es.rb
CHANGED
data/lib/valvat/checksum/fi.rb
CHANGED
data/lib/valvat/checksum/gr.rb
CHANGED
data/lib/valvat/checksum/ie.rb
CHANGED
data/lib/valvat/checksum/it.rb
CHANGED
data/lib/valvat/checksum/lu.rb
CHANGED
data/lib/valvat/checksum/nl.rb
CHANGED
data/lib/valvat/checksum/pl.rb
CHANGED
data/lib/valvat/checksum/pt.rb
CHANGED
data/lib/valvat/checksum/se.rb
CHANGED
data/lib/valvat/checksum/si.rb
CHANGED
data/lib/valvat/lookup.rb
CHANGED
data/lib/valvat/syntax.rb
CHANGED
data/lib/valvat/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -17,6 +17,10 @@ RSpec.configure do |config|
|
|
17
17
|
config.backtrace_exclusion_patterns = [/rspec\/(core|expectations)/]
|
18
18
|
end
|
19
19
|
|
20
|
+
if defined?(I18n)
|
21
|
+
I18n.enforce_available_locales = false
|
22
|
+
end
|
23
|
+
|
20
24
|
if defined?(ActiveModel)
|
21
25
|
class ModelBase
|
22
26
|
include ActiveModel::Serialization
|
data/valvat.gemspec
CHANGED
@@ -3,22 +3,21 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
require "valvat/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name
|
7
|
-
s.version
|
8
|
-
s.platform
|
9
|
-
s.license
|
10
|
-
s.authors
|
11
|
-
s.email
|
12
|
-
s.homepage
|
13
|
-
s.summary
|
14
|
-
s.description
|
15
|
-
|
16
|
-
|
17
|
-
|
6
|
+
s.name = "valvat"
|
7
|
+
s.version = Valvat::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.license = 'MIT'
|
10
|
+
s.authors = ["Sebastian Munz"]
|
11
|
+
s.email = ["sebastian@yo.lk"]
|
12
|
+
s.homepage = "https://github.com/yolk/valvat"
|
13
|
+
s.summary = %q{Validates european vat numbers. Standalone or as a ActiveModel validator.}
|
14
|
+
s.description = %q{Validates european vat numbers. Standalone or as a ActiveModel validator.}
|
18
15
|
s.files = `git ls-files`.split("\n")
|
19
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
18
|
s.require_paths = ["lib"]
|
19
|
+
s.cert_chain = ['certs/yolk.pem']
|
20
|
+
s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
|
22
21
|
|
23
22
|
s.add_dependency 'savon', '>= 2.3.0'
|
24
23
|
|
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valvat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Munz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDZDCCAkygAwIBAgIBATANBgkqhkiG9w0BAQUFADA8MRIwEAYDVQQDDAlzZWJh
|
14
|
+
c3RpYW4xEjAQBgoJkiaJk/IsZAEZFgJ5bzESMBAGCgmSJomT8ixkARkWAmxrMB4X
|
15
|
+
DTE0MTEyMTAwNDM0MVoXDTE1MTEyMTAwNDM0MVowPDESMBAGA1UEAwwJc2ViYXN0
|
16
|
+
aWFuMRIwEAYKCZImiZPyLGQBGRYCeW8xEjAQBgoJkiaJk/IsZAEZFgJsazCCASIw
|
17
|
+
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB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
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: savon
|
@@ -83,6 +105,7 @@ files:
|
|
83
105
|
- MIT-LICENSE
|
84
106
|
- README.md
|
85
107
|
- Rakefile
|
108
|
+
- certs/yolk.pem
|
86
109
|
- gemfiles/activemodel-3-2
|
87
110
|
- gemfiles/activemodel-4
|
88
111
|
- gemfiles/standalone
|
metadata.gz.sig
ADDED
Binary file
|