valvat 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +7 -1
- data/lib/valvat/utils.rb +4 -0
- data/lib/valvat/version.rb +1 -1
- data/spec/valvat/utils_spec.rb +12 -0
- metadata +3 -3
data/CHANGES.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
### dev
|
2
2
|
|
3
|
-
[full changelog](http://github.com/yolk/valvat/compare/v0.3.
|
3
|
+
[full changelog](http://github.com/yolk/valvat/compare/v0.3.3...master)
|
4
|
+
|
5
|
+
### 0.3.3 / 2011-06-02
|
6
|
+
|
7
|
+
[full changelog](http://github.com/yolk/valvat/compare/v0.3,2...v0.3.3)
|
8
|
+
|
9
|
+
* Add Valvat::Utils.iso_country_to_vat_country (by [Deb Bassett](https://github.com/urbanwide))
|
4
10
|
|
5
11
|
### 0.3.2 / 2011-01-14
|
6
12
|
|
data/lib/valvat/utils.rb
CHANGED
data/lib/valvat/version.rb
CHANGED
data/spec/valvat/utils_spec.rb
CHANGED
@@ -63,4 +63,16 @@ describe Valvat::Utils do
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
66
|
+
|
67
|
+
context "#iso_country_to_vat_country" do
|
68
|
+
it "returns vat country on greek iso country code 'GR'" do
|
69
|
+
Valvat::Utils.iso_country_to_vat_country("GR").should eql("EL")
|
70
|
+
end
|
71
|
+
|
72
|
+
Valvat::Utils::EU_COUNTRIES.reject{|c| c == "GR"}.each do |c|
|
73
|
+
it "returns unchanged vat country code '#{c}'" do
|
74
|
+
Valvat::Utils.iso_country_to_vat_country(c).should eql(c)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
66
78
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 3
|
9
|
+
version: 0.3.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Sebastian Munz
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-06-02 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|