br_invoices_pdf 0.2.17 → 0.2.18

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
  SHA1:
3
- metadata.gz: 1d45379de04929664e29c5758ae0d6e29c9dd1b9
4
- data.tar.gz: 94ce8c18b8e1f1e8d987305844e603ebd4e2b46b
3
+ metadata.gz: 298be27e07b387193e6a49fbd0b1e69badf4bfc0
4
+ data.tar.gz: db89d1cff2cf9d31bdf909a7e2587558f4169411
5
5
  SHA512:
6
- metadata.gz: b01f9e71bf7e7ce2405fbe7bdbff9ca0a5925aa76f00ee7893b36442e7bc3c9c6c6513e9554bd84e342de09aa5555fc182eea71d46639873299dd15562eca76a
7
- data.tar.gz: a7aa5a0d5cd109c3f17a61b376dfaa29c4ffd292196037cbb1f3f84fad1dfb93c66b4bb7187bc153dbf114d35a6aeab60e645a2419599755bcfb91429ef1d729
6
+ metadata.gz: 4dcd5f1177c71300991df3015951c148618fd650749002b2c766de21097a00e00616d03ec43dd145cfd6af3a446dcc8ae60c4a5f66b6043cf33170160ba1c41c
7
+ data.tar.gz: 9b7d79d7cbb32652ba965a15149e7ead92b7cb9244005fcba150574050011bc9e53e26eab12310edb732f467f7afda8fef69fb51ac4c7768b7e437428caa2006
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## CHANGELOG
4
4
 
5
+ ## 0.2.18 [2018-08-30]
6
+ - [Corrigido] tipo de emissão não encontrado no xml
7
+
5
8
  ## 0.2.17 [2018-08-24]
6
9
  - [Corrigido] casos de caracteres especiais em documentos fiscais
7
10
 
@@ -41,7 +41,7 @@ module BrInvoicesPdf
41
41
  emission_path = emission_root_path(xml)
42
42
 
43
43
  hash = {
44
- type: EMISSION_TYPES[locate_element(xml, "#{emission_path}/tpEmis").to_sym],
44
+ type: EMISSION_TYPES[(locate_element(xml, "#{emission_path}/tpEmis") || '1').to_sym],
45
45
  number: locate_element(xml, "#{emission_path}/nNF"),
46
46
  serie: locate_element(xml, "#{emission_path}/serie"),
47
47
  emission_timestamp: locate_element_to_date(xml, "#{emission_path}/dhEmi"),
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrInvoicesPdf
4
- VERSION = '0.2.17'
4
+ VERSION = '0.2.18'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_invoices_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Ribeiro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-08-24 00:00:00.000000000 Z
12
+ date: 2018-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: barby