Afip 0.2.9 → 0.3.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
  SHA1:
3
- metadata.gz: 5202d890983b390ddbf51f6b967792c9430d11bf
4
- data.tar.gz: 86545873ff7948832ecef8e49e2f0a64c5db0546
3
+ metadata.gz: f9fd778212cac143ee5116b6a8009b4abb2c123c
4
+ data.tar.gz: 140b793ea872190b34606f582d61675628a8cdb3
5
5
  SHA512:
6
- metadata.gz: 8e993c343b6201acb0bd9509f90df6e92edbb887861b7315b497cae56be4846820436ab950f832275b3688b5d858ff53bf2b0b79c1c43fac648dba2ca846b025
7
- data.tar.gz: 328293de93706d3285b4f798fbc9d145e38fa75e2c830ae5795fcf2321aae89d43d9d94e3008ecd1010578971cfca02dfd1bfe9910941c82330d89411cba752f
6
+ metadata.gz: 2a4164e0f17946168f0bd1d2387d3b365f0a36fa8a1053a839c16be4d0c499aa6115b93926303f2c0ea99ae2b0fd3eeb7937b7ea49eb7637efb62b35c230d144
7
+ data.tar.gz: 1bb6d2e823c08547f9d13f5d65099b4c2988a5ac65e660f373b7ee1a5849bee91bf38a7dcaf13d6c120e63cd524d24979d971cd72d5a06b2f26e69e9b7765796
data/lib/Afip/padron.rb CHANGED
@@ -40,13 +40,15 @@ module Afip
40
40
  rescue Savon::SOAPFault => error
41
41
  if !error.blank?
42
42
  pp @fault_code = error.to_hash[:fault][:faultstring]
43
+ else
44
+ @fault_code = nil
43
45
  end
44
46
  return response
45
47
  end
46
48
 
47
49
  def get_data
48
50
  @data = get_persona
49
- if not fault_code
51
+ if not fault_code.nil?
50
52
  set_data
51
53
  else
52
54
  return nil
data/lib/Afip/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Afip
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.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.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo A. Díaz Martínez