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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e07ba94fe6b03e36a03bb4fe2e24a428f065577f
4
- data.tar.gz: 809d3cd5b2e57bf3f168fd9aaa6e038bf6389c52
3
+ metadata.gz: bd8d2d5619d96c0f8a269bba25df839e3a4b2434
4
+ data.tar.gz: 76a5d6620d2a4a9009290d19847b9c49f5b669bc
5
5
  SHA512:
6
- metadata.gz: c60fca5a99002ecf485971c31fe83129e4d667e29ef75d623b7092e0fbf0205abd633ddfef3c88e83d2992ba426de80f56535e388691ded6141f9bd23cbf84e2
7
- data.tar.gz: 7749e21ccd1c16e4d79e93202bfd8f555e8730ffd438deddb2d8bab1eee2d9df5996d28c7c76621d671ec05b9fbf0ffd0486e893249a3af99fb6dad4255c79b8
6
+ metadata.gz: 441fb0184697917540c6e0227df53e8cfef1e2b83c3f3e1fe0c278c380dc8454f669bd2e3b368c25e92931935dfbc45678f221204bec76009dd3f2df8fe3976c
7
+ data.tar.gz: 51e211a97ad8a9e8fd13e0e5bbde19e655f87eed8c14ca1e84ac943b3ddfce2b30ac6703f3b8e74180bfd32b26ac3643cf29994810424d7b6287c502c6850343
Binary file
@@ -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
@@ -1 +1 @@
1
- 2.1.2
1
+ 2.1.5
@@ -1,9 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.1
3
+ - 2.1.5
4
4
  - 2.0.0
5
5
  - 1.9.3
6
6
  - jruby-19mode
7
+ - 2.2.0-preview2
7
8
  gemfile:
8
9
  - gemfiles/activemodel-4
9
10
  - gemfiles/activemodel-3-2
data/CHANGES.md CHANGED
@@ -1,6 +1,14 @@
1
1
  ### dev
2
2
 
3
- [full changelog](http://github.com/yolk/valvat/compare/v0.6.7...master)
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
@@ -1,4 +1,4 @@
1
- guard :rspec, cmd: "bundle exec rspec" do
1
+ guard :rspec, cmd: "bundle exec rspec --color" do
2
2
  watch(/^spec\/(.*)_spec.rb/)
3
3
  watch(/^lib\/(.*)\.rb/) { |m| "spec/#{m[1]}_spec.rb" }
4
4
  watch(/^spec\/spec_helper.rb/) { "spec" }
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 rubinius 2.2 and ActiveModel 3.2/4.1
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)
@@ -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-----
@@ -5,9 +5,4 @@ gem "activemodel", "3.2.20"
5
5
 
6
6
  gem 'rspec', '~> 3.0'
7
7
  gem 'fakeweb', '>= 1.3.0'
8
- gem 'rake'
9
-
10
- platform :rbx do
11
- gem 'racc'
12
- gem 'rubysl'
13
- end
8
+ gem 'rake'
@@ -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.glob(File.dirname(__FILE__) + "/checksum/*.rb", &method(:require))
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
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class AT < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class BE < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class DE < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class DK < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class ES < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class FI < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class GR < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class IE < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class IT < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class LU < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class NL < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class PL < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class PT < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class SE < Base
@@ -1,5 +1,3 @@
1
- require 'valvat/checksum'
2
-
3
1
  class Valvat
4
2
  module Checksum
5
3
  class SI < Base
@@ -1,4 +1,3 @@
1
- require 'valvat'
2
1
  require 'savon'
3
2
 
4
3
  class Valvat
@@ -1,5 +1,3 @@
1
- require 'valvat'
2
-
3
1
  class Valvat
4
2
  module Syntax
5
3
 
@@ -1,3 +1,3 @@
1
1
  class Valvat
2
- VERSION = "0.6.7"
2
+ VERSION = "0.6.8"
3
3
  end
@@ -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
@@ -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 = "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.}
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.7
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
- date: 2014-11-03 00:00:00.000000000 Z
10
+ cert_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Jh
28
+ RZNSJimBylMwjYJROhkoaeeTdNdzNbL9We/+VGbqqzebSm4mQ/sgHiAW93VjGS6J
29
+ 2bdbpSYqYnUvpWMB2za3uSzFKaWiFAIx7UC0jrsWzr6A/ql1y01DeTdAWK/3IMgy
30
+ wV8oppYhH3tRwfGrXgETqok7yPVYTZFcjCW9s9snwVE/JA23z12g54jVnaAP8SQH
31
+ L1HABGk4QCo=
32
+ -----END CERTIFICATE-----
33
+ date: 2014-12-18 00:00:00.000000000 Z
12
34
  dependencies:
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
Binary file