valvat 0.6.0 → 0.6.1

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: c91978204cfd4d62e0e63532f7ba5050ffb961ff
4
- data.tar.gz: 3a3c0cc26abeef11d53eeca8b217f9315f15b99d
3
+ metadata.gz: fd3b95aa5d283ec356195df0880ad0e64e446aa3
4
+ data.tar.gz: dcaba4e137938936a83fe03d81e56b4b3a87c1d6
5
5
  SHA512:
6
- metadata.gz: 3da453e8fd22a40fa17395ce4726d4688be3a5c156ecb3d7b267c7b88c416f5764ad613774afdf41021ad7c047580f1bf3c672da8203e70b4fb9ac2ef0b5a8ef
7
- data.tar.gz: 24b21743ebf0a7f824f36c3a4a87184ad1fd981b5c8aca00627939ac87639c763116707106a47313af691aff4b226b8ae33c3ed9f0f240b425ee1012a3895b07
6
+ metadata.gz: 289ecdaf74f63696bc7ebcd7804ae430c9baa1671544a093291fe335ff8db46e1f655984b5c24fea08b1294234160abc13cffc1195af2f0c62997f5add56adb1
7
+ data.tar.gz: ca8d11429b9586fd2c85fde897b9f50cabb1921dadba56dd7b9d7a47d86801b6d54439a400493d3463311a158f9489a3a3189d9d7640b5f0450b4462969766ce
data/CHANGES.md CHANGED
@@ -1,6 +1,12 @@
1
1
  ### dev
2
2
 
3
- [full changelog](http://github.com/yolk/valvat/compare/v0.6.0...master)
3
+ [full changelog](http://github.com/yolk/valvat/compare/v0.6.1...master)
4
+
5
+ ### 0.6.1 / 2013-09-02
6
+
7
+ [full changelog](http://github.com/yolk/valvat/compare/v0.6.0...v0.6.1)
8
+
9
+ * Valvat::Lockup: require savon on load
4
10
 
5
11
  ### 0.6.0 / 2013-08-01
6
12
 
data/lib/valvat/lookup.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'valvat'
2
- require 'net/http'
3
- require 'yaml'
2
+ require 'savon'
4
3
 
5
4
  class Valvat
6
5
  class Lookup
@@ -31,16 +30,7 @@ class Valvat
31
30
  end
32
31
 
33
32
  def client
34
- @client ||= begin
35
- # Require Savon only if really needed!
36
- require 'savon' unless defined?(Savon)
37
-
38
- Savon::Client.new(
39
- wsdl: VIES_WSDL_URL,
40
- # Quiet down Savon and HTTPI
41
- log: false
42
- )
43
- end
33
+ @client ||= Savon::Client.new(wsdl: VIES_WSDL_URL, log: false)
44
34
  end
45
35
  end
46
36
 
@@ -1,3 +1,3 @@
1
1
  class Valvat
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
data/valvat.gemspec CHANGED
@@ -11,15 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.email = ["sebastian@yo.lk"]
12
12
  s.homepage = "https://github.com/yolk/valvat"
13
13
  s.summary = %q{Validates european vat numbers. Standalone or as a ActiveModel validator.}
14
- s.description = <<-END
15
- Validates european vat numbers. Standalone or as a ActiveModel validator.
16
-
17
- * Simple syntax verification
18
- * Lookup via the VIES web service
19
- * Supports details & requester identification
20
- * (Optional) ActiveModel/Rails3 integration
21
- * I18n locales for country specific error messages
22
- END
14
+ s.description = %q{Validates european vat numbers. Standalone or as a ActiveModel validator.}
23
15
 
24
16
 
25
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valvat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Munz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-01 00:00:00.000000000 Z
11
+ date: 2013-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -108,14 +108,7 @@ dependencies:
108
108
  - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.3.0
111
- description: |2
112
- Validates european vat numbers. Standalone or as a ActiveModel validator.
113
-
114
- * Simple syntax verification
115
- * Lookup via the VIES web service
116
- * Supports details & requester identification
117
- * (Optional) ActiveModel/Rails3 integration
118
- * I18n locales for country specific error messages
111
+ description: Validates european vat numbers. Standalone or as a ActiveModel validator.
119
112
  email:
120
113
  - sebastian@yo.lk
121
114
  executables: []