fdis 0.1.9 → 0.1.10

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: da265a50596053c4c14e1aed4af136a5371cba9de53a1dfc4908c442704bc603
4
- data.tar.gz: de8b901323cf697b0837d238218cd16d49eee187fded0ec31e0fbf11462b2f03
3
+ metadata.gz: 520a75ea98b3981ce2ad784b6f16c4aa3e71717518a6cf10d8e4ef566066a9d5
4
+ data.tar.gz: a960ff084bf1772a6551a43feb53df6a532de1ec5366dedd1dfeb8f358e973f8
5
5
  SHA512:
6
- metadata.gz: 5358051748c057cefc87940f0216847809417064a4040efc8781a20873fcef137a38e156727b3c7e692e819dc218cb7e7f86affc6e8812d9a20eb14f74fdf1d7
7
- data.tar.gz: acc4308862cd5f24e2be8d57acd6409bc64d7340e1ee6dfa5e578ff62e2c384a6960aaf07c469e80446fadcd1e054d52801c02052786e798e4036b0c35798fbf
6
+ metadata.gz: 59651fa191b4ff31782182e63957b042318a86fb7b4a3544336bef385c6d92554f49dce21cee6c277c02748ec3de726e3066dd13f66bd3a5d422e965185bd693
7
+ data.tar.gz: aadfb046bd81828b4aca783a9f34687b12ba4eeebcefb58a101a32c15d76f024ecef8b6cedd7f4f5593d46d37049cad2655d1d1406dc313050b07d3dab03a4cf
@@ -213,8 +213,7 @@ module Fdis
213
213
  when Net::HTTPSuccess, Net::HTTPRedirection
214
214
  if response['success'] == true
215
215
  decoded_xml = Nokogiri::XML(Base64.decode64(response['base64XmlFile']))
216
- # timbre = decoded_xml.at_xpath("//cfdi:Complemento").children[1]
217
- timbre = decoded_xml.at_xpath("//tfd:TimbreFiscalDigital")
216
+ timbre = decoded_xml.at_xpath("//cfdi:Complemento").children[0]
218
217
  response = {
219
218
  status: 200,
220
219
  message_error: '',
@@ -787,7 +786,8 @@ module Fdis
787
786
  puts "---- Fdis: Respuesta"
788
787
  puts "-- Codigo: #{json_response.code} --"
789
788
  puts "-- Mensaje: #{json_response.message} --"
790
- puts "-- Body: #{json_response.body} --"
789
+ puts "-- Body: "
790
+ p json_response.body
791
791
 
792
792
  response = JSON.parse(json_response.body)
793
793
 
@@ -795,8 +795,7 @@ module Fdis
795
795
  when Net::HTTPSuccess, Net::HTTPRedirection
796
796
  if response['success'] == true
797
797
  decoded_xml = Nokogiri::XML(Base64.decode64(response['base64XmlFile']))
798
- # timbre = decoded_xml.at_xpath("//cfdi:Complemento").children[1]
799
- timbre = decoded_xml.at_xpath("//tfd:TimbreFiscalDigital")
798
+ timbre = decoded_xml.at_xpath("//cfdi:Complemento").children[0]
800
799
  response = {
801
800
  status: 200,
802
801
  message_error: '',
data/lib/fdis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fdis
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla