Afip 0.5.1 → 0.5.2

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: 0a2659eb79d71fc6db533cdb1762df0298d979fc
4
- data.tar.gz: b5de46283c36ae9319355e9df1ab3dd46c481aa3
3
+ metadata.gz: d29a70815effaf8cb565d1dfb3d30d5c2288b9c5
4
+ data.tar.gz: '091bc1a8da4ace83486b605322bc824778a655d5'
5
5
  SHA512:
6
- metadata.gz: 84159283c31132f5c2f8647aad9179c2cf88487cfb53933bb7dd85dbfc6f8cc1e65ba982a7910ab80c5919fe7b740f89a6c3d4fb87bd0e58ab1897549edd1277
7
- data.tar.gz: f36b065476321d6674250f2d6c72557f92100a654d8cc36de9e24338e27a74791e09b2b8b4e62b85a496458b4b08418a4df85ddd448b4202b9fbbe51ee18edcc
6
+ metadata.gz: f6e9cbbc19cb01197465c67d913706f5fb1f6c58b28f0cf66912db9c1eee199e82d12ea467237f6e4a1d14ffc932d79de7443e823774a0c79c61afd810fcaeaf
7
+ data.tar.gz: 504d099c51abfcc092310846e96166a833b48986babd42ee782a74e12c661911ec78b44cc1ebd5d98cd8a382cabd5771f67ff83e30b0f03365fe2e73d5598159
data/lib/Afip/ctg.rb CHANGED
@@ -211,7 +211,7 @@ module Afip
211
211
  body["request"]["codigoProvincia"] = city
212
212
  response = client.call(:consultar_localidades_por_provincia, message: body)
213
213
  if response.body[:consultar_localidades_por_provincia_response][:response][:array_localidades][:localidad].class.name != "Array"
214
- [response.body[:consultar_localidades_por_provincia_response][:response][:array_localidades][:localidad]]
214
+ response.body[:consultar_localidades_por_provincia_response][:response][:array_localidades][:localidad].map{|c,d| [c,d]}
215
215
  else
216
216
  response.body[:consultar_localidades_por_provincia_response][:response][:array_localidades][:localidad].map{|c| [c[:codigo],c[:descripcion]]}
217
217
  end
data/lib/Afip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Afip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez