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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c19142bfc4c087c344481f1c7c8c391c3e764c995b9a06ee5280aeb8ff1923d
4
- data.tar.gz: 23e3e33ff2bfde8d2131d854808ab0bf29df79744add0f4ff8b497da382357e2
3
+ metadata.gz: eb1e6d2b03bf99616ab4ffee0893331b375d81b4930c2411410b46e4396660db
4
+ data.tar.gz: a678c99b8ca226f1c6ae1025bc70b5e503d58af023cf289eb56662c984ebc7ba
5
5
  SHA512:
6
- metadata.gz: 736dacb93101b5796c1977a3b6ddd3ea63dde27a4097fecfedade9ddb36f8ee5858fb0432779ba9d697fbf356025505a97d5ab635663a4fe81049f2e439a29a3
7
- data.tar.gz: 3f0399164f1e38d5fa6031ce0a34da3b1e5808a5a2c742b06e663655570beaf07e584853dc26f19e2ae301935da4761c3f84f83441edd9263cb0060c2d83a3f2
6
+ metadata.gz: cd8ca999f22a532b3de8559979ea0020cf388abf21dad58919e64bd96f32ab1b3ae5c366dba43e5eca3ac4e7b975007f411827abe31d71c9748de55d4db25d0d
7
+ data.tar.gz: 42fa06240e565893ce4f7b74ef61a38bcda5b4a576b8f02058df29d5708f63eb83f9d73f5ae8e33bc12d7540aaf87353b8394ea86341b9f5b2bfa89cc6fef465
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- padron (0.1.6)
4
+ padron (0.1.3)
5
5
  httpi (= 2.3)
6
6
  nokogiri (~> 1.10.4)
7
7
  savon (~> 2.12)
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[0] == :error_constancia && persona.try(:[],:apellido).nil?
69
- if !persona[1].nil? && persona[0] == :error_constancia
70
- {:name => set_name(persona[1]),
71
- :cuit => persona[1][:id_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[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)}
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
@@ -7,7 +7,7 @@ module Padron
7
7
  end
8
8
 
9
9
  def return_cuits
10
- return [id] if id.length == 11
10
+ return id if id.length == 11
11
11
  return calculate_cuits
12
12
  end
13
13
 
@@ -1,3 +1,3 @@
1
1
  module Padron
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
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.7
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: 2020-04-30 00:00:00.000000000 Z
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.0.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