br_invoices_pdf 0.2.19 → 0.2.20

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: 9789280a8f99b22f164b17335efc48fa5072a39b
4
- data.tar.gz: 11546516680254d6b9502f55f7e813bd2a97077d
3
+ metadata.gz: 8d816c99d1ac42be8fb9e2ae8bbf8d49b18454b6
4
+ data.tar.gz: aeafbb3c5b3697caa20ab3dabded262ec8f9963d
5
5
  SHA512:
6
- metadata.gz: bb34a40c5de90ac81f2fb6bb622832cee19f1c5a006e33f3e43af16d2f7e4bdce8c7835ed55d6439e826fb99fbbf7beec940e3d96351cceb1dd2af19e76b9a19
7
- data.tar.gz: 0f6065d4951a1b3573cdc7ef9ba0062d743b542af4e153698115c817f01351de5fc33bafa236e02571bbb78fe5f28b72e184a034f7b367e8d44f88778e3057cb
6
+ metadata.gz: 28f919e57e1b22cb11105244c9dfd7249452a2003bfba3f1933edc2dd8b52bc3d862d514b4dac4094b6ee313abc7db3c8843199f5e89f8b2b6195cc03c21806e
7
+ data.tar.gz: aee4da1db712dfc35856146308fa9cabe992fc21f794db2a78fc6d5628e3872f80c3b2f3ae08e91e7b990dfd88019d1ead01beb31e0e4a29204b397c36fa8043
@@ -9,9 +9,9 @@ module BrInvoicesPdf
9
9
  module_function
10
10
 
11
11
  def execute(xml)
12
- xml_version = xml.locate(root_path(xml).to_s)[0].attributes[:versao]
12
+ xml_version = xml.locate(root_path(xml).to_s)
13
13
 
14
- return payments_new_version(xml) if xml_version[0] == '4'
14
+ return payments_new_version(xml) if xml_version.any? && xml_version[0].attributes[:versao][0] == '4'
15
15
 
16
16
  payments_old_version(xml)
17
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrInvoicesPdf
4
- VERSION = '0.2.19'
4
+ VERSION = '0.2.20'
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.19
4
+ version: 0.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Ribeiro