Afip 0.7.9 → 0.8.0

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
  SHA256:
3
- metadata.gz: 81eb023a8e1c307b7e38a521cf88ed6914698acca42c0ff099898029a71e7719
4
- data.tar.gz: e80a88056e8898addffd49d67a33ba3abfd18d836cdff117f3f9752757cbf6a5
3
+ metadata.gz: 2555abe763e43e75cb4613c4ab4206c45d460f3256942be500916d274158270b
4
+ data.tar.gz: 695dd7dbc3a299cf4b3af49d3f508fdb1faf09975218d2a4eceabc1fc635514e
5
5
  SHA512:
6
- metadata.gz: 7b87088a9a70768dc86397ee222c9895c7da177bfd161230ffcdf8e4ac5d1f46a105a00dab127c81c4e8d6db91179fde3c82d052c60318bf7a4dfccaf178311e
7
- data.tar.gz: 6962c139f0c46efc98cbab81b30a105c283dece4ae0433aef7f02bea8f832b2f0c8dd78feab541674a0ad539872a91a41a7a0d4682cfabe63fd39b13a146cab3
6
+ metadata.gz: ba6602d0ee369e534aae396684e01cbfe4cbb2241c8eafb6e1d4f7c9e8c59638c84ac304eac9aade57a3f700bbd9cc2e3805c7a27f2f846f03724dec44d4af0d
7
+ data.tar.gz: 9fbff79f68204297bc04953e6ef0862ed6582194c3c0525de1b145ab37eadd1f9cfe47380c8f3b509f534a2cac79c5a92617a419f097d60ac0f386c2879db9ff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Afip (0.7.8)
4
+ Afip (0.7.9)
5
5
  httpi
6
6
  savon
7
7
 
data/lib/Afip/bill.rb CHANGED
@@ -25,13 +25,13 @@ module Afip
25
25
  body = { "Auth" => Afip.auth_hash }
26
26
  response = client.call(:fe_param_get_ptos_venta, message: body)
27
27
  if response.body[:fe_param_get_ptos_venta_response][:fe_param_get_ptos_venta_result][:errors].nil?
28
- []
29
- else
30
28
  if response.body[:fe_param_get_ptos_venta_response][:fe_param_get_ptos_venta_result][:result_get][:pto_venta].is_a?(Hash)
31
29
  response.body[:fe_param_get_ptos_venta_response][:fe_param_get_ptos_venta_result][:result_get][:pto_venta][:nro]
32
30
  else
33
31
  response.body[:fe_param_get_ptos_venta_response][:fe_param_get_ptos_venta_result][:result_get][:pto_venta].map{|r| r[:nro]}
34
32
  end
33
+ else
34
+ []
35
35
  end
36
36
  end
37
37
 
data/lib/Afip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.7.9"
2
+ VERSION = "0.8.0"
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.7.9
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez