padron 0.1.6 → 0.1.7

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: 39032c8e50bf14881b44a7392299024986251bad01234ea068c594cdc2f21633
4
- data.tar.gz: 0704c2886a4769dba6833f70a5728049a2bd39bba9f354a63a0744f6bde94b8c
3
+ metadata.gz: 4c19142bfc4c087c344481f1c7c8c391c3e764c995b9a06ee5280aeb8ff1923d
4
+ data.tar.gz: 23e3e33ff2bfde8d2131d854808ab0bf29df79744add0f4ff8b497da382357e2
5
5
  SHA512:
6
- metadata.gz: 209e219faf9f91c5a4b2d2ecf8cdd3f7effdc0c3266d107e84e67d4a73fd5c8a8ba7c14cba2379c640132d8ca9fc7453da7d35f70774f466f06da141b1e85ff3
7
- data.tar.gz: '05536124996b51b5d90ad1a232d9bc2ca6467834556fd5324050cc1e25e20d76d4b6e696ab4d66c68c2c259d0df9ccca538bcfe433998456d08bb286eb02e0fc'
6
+ metadata.gz: 736dacb93101b5796c1977a3b6ddd3ea63dde27a4097fecfedade9ddb36f8ee5858fb0432779ba9d697fbf356025505a97d5ab635663a4fe81049f2e439a29a3
7
+ data.tar.gz: 3f0399164f1e38d5fa6031ce0a34da3b1e5808a5a2c742b06e663655570beaf07e584853dc26f19e2ae301935da4761c3f84f83441edd9263cb0060c2d83a3f2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- padron (0.1.5)
4
+ padron (0.1.6)
5
5
  httpi (= 2.3)
6
6
  nokogiri (~> 1.10.4)
7
7
  savon (~> 2.12)
@@ -67,16 +67,16 @@ module Padron
67
67
  personas.map do |persona|
68
68
  unless persona[0] == :error_constancia && persona.try(:[],:apellido).nil?
69
69
  if !persona[1].nil? && persona[0] == :error_constancia
70
- {:name => set_name(persona[:error_constancia]),
71
- :cuit => persona[:error_constancia][:id_persona]}
70
+ {:name => set_name(persona[1]),
71
+ :cuit => persona[1][:id_persona]}
72
72
  else
73
- {:name => set_name(persona),
74
- :cuit => persona[:id_persona],
75
- :cp => persona.try(:[], :domicilio_fiscal).try(:[], :cod_postal),
76
- :address => persona.try(:[], :domicilio_fiscal).try(:[], :direccion),
77
- :city_id => persona.try(:[], :domicilio_fiscal).try(:[], :id_provincia),
78
- :city => Padron::PROVINCIAS[persona.try(:[],:domicilio_fiscal).try(:[], :id_provincia)],
79
- :locality => persona.try(:[], :domicilio_fiscal).try(:[], :localidad)}
73
+ {:name => set_name(persona[1]),
74
+ :cuit => persona[1][:id_persona],
75
+ :cp => persona[1].try(:[], :domicilio_fiscal).try(:[], :cod_postal),
76
+ :address => persona[1].try(:[], :domicilio_fiscal).try(:[], :direccion),
77
+ :city_id => persona[1].try(:[], :domicilio_fiscal).try(:[], :id_provincia),
78
+ :city => Padron::PROVINCIAS[persona[1].try(:[],:domicilio_fiscal).try(:[], :id_provincia)],
79
+ :locality => persona[1].try(:[], :domicilio_fiscal).try(:[], :localidad)}
80
80
  end
81
81
  end
82
82
  end
@@ -1,3 +1,3 @@
1
1
  module Padron
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facundo Diaz Martinez