deltavista_crif_dva_interface 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
@@ -36,7 +36,13 @@ module DeltavistaCrifDvaInterface
|
|
36
36
|
|
37
37
|
# Converts alpha-3 country code into alpha-2 country code
|
38
38
|
def convert_country(alpha3_code)
|
39
|
-
|
39
|
+
alpha2_code = ''
|
40
|
+
begin
|
41
|
+
alpha2_code = SunDawg::CountryIsoTranslater.translate_standard(alpha3_code, "alpha3", "alpha2")
|
42
|
+
rescue SunDawg::CountryIsoTranslater::NoCountryError
|
43
|
+
ensure
|
44
|
+
alpha2_code
|
45
|
+
end
|
40
46
|
end
|
41
47
|
end
|
42
48
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: deltavista_crif_dva_interface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.17
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Marc Cadalbert
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2012-03-
|
14
|
+
date: 2012-03-29 00:00:00 +02:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|