valvat 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES.md CHANGED
@@ -1,8 +1,15 @@
1
1
  ### dev
2
2
 
3
- [full changelog](http://github.com/yolk/valvat/compare/v0.4.3...master)
3
+ [full changelog](http://github.com/yolk/valvat/compare/v0.4.4...master)
4
4
 
5
- ### 0.4.2 / 2012-11-16
5
+ ### 0.4.4 / 2013-01-07
6
+
7
+ [full changelog](http://github.com/yolk/valvat/compare/v0.4.3...v0.4.4)
8
+
9
+ * Fixed dependency on savon version 1.2 (2.0 uses new api)
10
+ * Convert to string before normalize (by [borodiychuk](https://github.com/borodiychuk))
11
+
12
+ ### 0.4.3 / 2012-12-11
6
13
 
7
14
  [full changelog](http://github.com/yolk/valvat/compare/v0.4.2...v0.4.3)
8
15
 
data/README.md CHANGED
@@ -166,6 +166,6 @@ This basically just removes trailing spaces and ensures all chars are uppercase.
166
166
 
167
167
  ## BlaBla
168
168
 
169
- Copyright (c) 2011-2012 Yolk Sebastian Munz & Julia Soergel GbR
169
+ Copyright (c) 2011-2013 Yolk Sebastian Munz & Julia Soergel GbR
170
170
 
171
171
  Beyond that, the implementation is licensed under the MIT License.
data/lib/valvat/utils.rb CHANGED
@@ -13,7 +13,7 @@ class Valvat
13
13
  end
14
14
 
15
15
  def self.normalize(vat)
16
- vat.upcase.gsub(NORMALIZE_PATTERN, "")
16
+ vat.to_s.upcase.gsub(NORMALIZE_PATTERN, "")
17
17
  end
18
18
 
19
19
  def self.vat_country_to_iso_country(vat_country)
@@ -1,3 +1,3 @@
1
1
  class Valvat
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
data/valvat.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
28
28
  s.require_paths = ["lib"]
29
29
 
30
- s.add_dependency 'savon', '>=1.2.0'
30
+ s.add_dependency 'savon', '=1.2.0'
31
31
 
32
32
  s.add_development_dependency 'rspec', '>= 2.4.0'
33
33
  s.add_development_dependency 'guard-rspec', '>=0.1.9'
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.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,14 +9,14 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-11 00:00:00.000000000 Z
12
+ date: 2013-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - '='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 1.2.0
22
22
  type: :runtime
@@ -24,7 +24,7 @@ dependencies:
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - '='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 1.2.0
30
30
  - !ruby/object:Gem::Dependency