cfdi_processor 1.0.3 → 1.0.4

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: 899a00e43777ff07c4ff554249a2ceb4070dc375986828ba6f2fd133c41c5230
4
- data.tar.gz: 54c9bfbdc0fa09c62dc4fda6f1de6b5e0e11e587976a8a9ce7d46af1016058a0
3
+ metadata.gz: 1ea23c7ff2324021e05208c739d9935eb1d05f17f71841c65d601d7e3c8479c2
4
+ data.tar.gz: 84a9c5994c270f6dc08b5ae6a0ea0d32fda4ea21efcfe31c5b930f8aa632bc3c
5
5
  SHA512:
6
- metadata.gz: 5bf8985366fad2bd104d70dd5f97ed3f322722ed5f871b9cf0206f0d20b3d03ce53e94b136c432345675e4d7d0625b5c74b811f7c61a14ddc0235edebf98199e
7
- data.tar.gz: 38273c556fee3d09310569b791dd0574b6a1eb8f1c2b70781dc1295007d1460c3494d1c0b71f9f889088bbf88ccfdc966ffd4ef4c74ac940b5d3fa8e6d57d7ad
6
+ metadata.gz: e585808ad171d1f08854a7209258091895f3c762ab2add4acd0ee84208e66bcc40af7a68befd8ea507afad0e9158493df7c02614d458ee15c899e3bf80634e98
7
+ data.tar.gz: 207c9f157832222a4ce0982d08963c903743a157be15b7c7d4450f386da24bf59d29c3c005c565118d8cadc6a3a06b1accee323305124260c734d60470e9143c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cfdi_processor (1.0.3)
4
+ cfdi_processor (1.0.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -37,18 +37,20 @@ module CfdiProcessor
37
37
  end
38
38
 
39
39
  def concepts_data_from_xml
40
- nokogiri_xml.at('Conceptos').element_children.map do |e|
41
- @concepts = e.to_h
40
+ @concepts = nokogiri_xml.at('Conceptos').element_children.map do |e|
41
+ concepts = e.to_h
42
42
  concepts["Traslados"] = (e.at('Impuestos').css("Traslado").map{|e| e.to_h})
43
43
  concepts["Retenciones"] = (e.at('Impuestos').css("Retencion").map{|e| e.to_h})
44
- end
44
+ concepts
45
+ end
45
46
  end
46
47
 
47
48
  def taxes_data_from_xml
48
- nokogiri_xml.css('Comprobante Impuestos').last.element_children.map do |e|
49
- @taxes = nokogiri_xml.css('Comprobante Impuestos').last.to_h
49
+ @taxes = nokogiri_xml.css('Comprobante Impuestos').last.element_children.map do |e|
50
+ taxes = nokogiri_xml.css('Comprobante Impuestos').last.to_h
50
51
  taxes["Traslados"] = (e.css("Traslado").map{|e| e.to_h})
51
52
  taxes["Retenciones"] = (e.css("Retencion").map{|e| e.to_h})
53
+ taxes
52
54
  end
53
55
  end
54
56
  end
@@ -1,3 +1,3 @@
1
1
  module CfdiProcessor
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfdi_processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Armando Alejandre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-15 00:00:00.000000000 Z
11
+ date: 2020-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri