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.
@@ -40,6 +40,7 @@ module DeltavistaCrifDvaInterface
40
40
  end
41
41
 
42
42
  def to_hash(xml_body)
43
+ puts xml_body
43
44
  xml_doc = Nokogiri.XML(xml_body, nil, @config[:encoding])
44
45
  if valid_response? xml_doc
45
46
  # private tag
@@ -1,3 +1,3 @@
1
1
  module DeltavistaCrifDvaInterface
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
@@ -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
- SunDawg::CountryIsoTranslater.translate_standard(alpha3_code, "alpha3", "alpha2")
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.16
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-28 00:00:00 +02:00
14
+ date: 2012-03-29 00:00:00 +02:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency