padron 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/padron/call.rb +11 -11
- data/lib/padron/id_persona.rb +1 -1
- data/lib/padron/version.rb +1 -1
- data/padron-0.1.5.gem +0 -0
- data/padron.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb1e6d2b03bf99616ab4ffee0893331b375d81b4930c2411410b46e4396660db
|
4
|
+
data.tar.gz: a678c99b8ca226f1c6ae1025bc70b5e503d58af023cf289eb56662c984ebc7ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd8ca999f22a532b3de8559979ea0020cf388abf21dad58919e64bd96f32ab1b3ae5c366dba43e5eca3ac4e7b975007f411827abe31d71c9748de55d4db25d0d
|
7
|
+
data.tar.gz: 42fa06240e565893ce4f7b74ef61a38bcda5b4a576b8f02058df29d5708f63eb83f9d73f5ae8e33bc12d7540aaf87353b8394ea86341b9f5b2bfa89cc6fef465
|
data/Gemfile.lock
CHANGED
data/lib/padron/call.rb
CHANGED
@@ -65,18 +65,18 @@ module Padron
|
|
65
65
|
def set_data
|
66
66
|
personas = data.body[:get_persona_list_response][:persona_list_return][:persona]
|
67
67
|
personas.map do |persona|
|
68
|
-
unless persona[
|
69
|
-
if !persona[
|
70
|
-
{:name => set_name(persona[
|
71
|
-
:cuit => persona[
|
68
|
+
unless persona[:error_constancia] && persona[:error_constancia].try(:[],:apellido).nil?
|
69
|
+
if !persona[:error_constancia].nil?
|
70
|
+
{:name => set_name(persona[:error_constancia]),
|
71
|
+
:cuit => persona[:error_constancia][:id_persona]}
|
72
72
|
else
|
73
|
-
{:name => set_name(persona[
|
74
|
-
:cuit => persona[
|
75
|
-
:cp => persona[
|
76
|
-
:address => persona[
|
77
|
-
:city_id => persona[
|
78
|
-
:city => Padron::PROVINCIAS[persona[
|
79
|
-
:locality => persona[
|
73
|
+
{:name => set_name(persona[:datos_generales]),
|
74
|
+
:cuit => persona[:datos_generales][:id_persona],
|
75
|
+
:cp => persona[:datos_generales].try(:[], :domicilio_fiscal).try(:[], :cod_postal),
|
76
|
+
:address => persona[:datos_generales].try(:[], :domicilio_fiscal).try(:[], :direccion),
|
77
|
+
:city_id => persona[:datos_generales].try(:[], :domicilio_fiscal).try(:[], :id_provincia),
|
78
|
+
:city => Padron::PROVINCIAS[persona[:datos_generales].try(:[],:domicilio_fiscal).try(:[], :id_provincia)],
|
79
|
+
:locality => persona[:datos_generales].try(:[], :domicilio_fiscal).try(:[], :localidad)}
|
80
80
|
end
|
81
81
|
end
|
82
82
|
end
|
data/lib/padron/id_persona.rb
CHANGED
data/lib/padron/version.rb
CHANGED
data/padron-0.1.5.gem
ADDED
Binary file
|
data/padron.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
30
|
spec.add_dependency "savon", "~> 2.12"
|
31
|
-
spec.add_dependency "httpi", "2.3"
|
31
|
+
spec.add_dependency "httpi", "~> 2.3"
|
32
32
|
spec.add_dependency "nokogiri", "~> 1.10.4"
|
33
33
|
spec.add_development_dependency "bundler", "~> 2.1"
|
34
34
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Facundo Diaz Martinez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: httpi
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/padron/id_persona.rb
|
132
132
|
- lib/padron/version.rb
|
133
133
|
- lib/padron/wsaa.rb
|
134
|
+
- padron-0.1.5.gem
|
134
135
|
- padron.gemspec
|
135
136
|
homepage: http://www.litecodesas.com
|
136
137
|
licenses:
|
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
153
|
- !ruby/object:Gem::Version
|
153
154
|
version: '0'
|
154
155
|
requirements: []
|
155
|
-
rubygems_version: 3.
|
156
|
+
rubygems_version: 3.1.2
|
156
157
|
signing_key:
|
157
158
|
specification_version: 4
|
158
159
|
summary: You could get public info from the desired CUIT
|