Afip 0.4.8 → 0.4.9

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: ee21fe21f5acbaa21a1eea88cdc17974755adf9e
4
- data.tar.gz: b6029341cddf73bd08b647fa9e7d1a8b78143448
3
+ metadata.gz: 653e392a7b32c1fe1daddb3a43f43c955f38f81e
4
+ data.tar.gz: cb64d3b659124623598a769e0143c6d3bbefb0ec
5
5
  SHA512:
6
- metadata.gz: 34155683fe23fc58e29b185919143c479bc6e6c73b992730d07546f04186fca386a1359eed3c539f1965ae8d52baed1cc59da6e58be4f5ad72b1216234ed80a2
7
- data.tar.gz: 4df8719b9435a2075cb5ed71e466b59e34d0b5d015c06fd1b71afb1aa5a3158d20b3c260b71d056257f5ee082cc9982910712c94c509e6c52825a11c46bcf3ea
6
+ metadata.gz: 24128b3e9b40487203da79fbb9bbb8b247c8ab3661fb90197090c7ea1d6baa78665ee8602462a0e04daeff0e39a4f3602c03a8be3b57058f3fcafd9964116173
7
+ data.tar.gz: 37d284bbfd55d2a01a7a8f1827add822c6a1785b786673fd295c5d2511b1e6bdb8ae0616545434005837e2d567ee4d3442c96c536ecdfdfa641b450b941d7001
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (0.4.7)
4
+ Afip (0.4.8)
5
5
  httpi
6
6
  savon
7
7
 
data/lib/Afip/ctg.rb CHANGED
@@ -210,7 +210,11 @@ module Afip
210
210
  def consultar_localidades(city)
211
211
  body["request"]["codigoProvincia"] = city
212
212
  response = client.call(:consultar_localidades_por_provincia, message: body)
213
- response.body[:consultar_localidades_por_provincia_response][:response][:array_localidades][:localidad].map{|c| [c[:codigo],c[:descripcion]]}
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]
215
+ else
216
+ response.body[:consultar_localidades_por_provincia_response][:response][:array_localidades][:localidad].map{|c| [c[:codigo],c[:descripcion]]}
217
+ end
214
218
  end
215
219
 
216
220
  private
data/lib/Afip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.4.8"
2
+ VERSION = "0.4.9"
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.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez