br_invoices_pdf 0.2.23 → 0.2.24

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: 531d99007bd674a7bf5592d956b8f35c819deedd
4
- data.tar.gz: 5a42280d2b1aa517f0ad1a10d21dcfa2cac45a24
3
+ metadata.gz: 4db27e960365ab38cc03f0174e028dae88695614
4
+ data.tar.gz: c7010dc175297fa2f1144ee8f494666fc378ecd6
5
5
  SHA512:
6
- metadata.gz: 56923de604c65ecee3b9b911bcb946c3447fe3571c3c3b4b4a750592f146d13fdf88f3e45cbaca8bf1864bcbfc633f27bcf740a0d85d5dc78297b1d953c7df82
7
- data.tar.gz: ea9dcfad4d1c04a9b4e4516eaba30db309416c06b43b35ddd6470d55e84be0294d53cab46ff7a24ba313c45a8b518b6c25720a4cb7be76318f26c69eb0419d91
6
+ metadata.gz: a61e51e4ae2eec0178d0d5926888e6d4c029ac22015b61f9b0dca9748244695bb3e3f23d2494fdd6b7472e781d21c4116a7061bcd0e7dd38550af09b8490b881
7
+ data.tar.gz: 8fef4ffb173e94d7cae3e436e225b3c676935412a1eba1d575ea006e9317acc37af832cb5fc1755d12082100acb908151bffe29df67120f30cb99058993ebb4b
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## CHANGELOG
4
4
 
5
+ ## 0.2.24 [2019-03-07]
6
+ - [Corrigido] Data bugada no XML
7
+
5
8
  ## 0.2.21 [2018-11-15]
6
9
  - [Atualizando] versão da gem ox
7
10
 
@@ -63,7 +63,11 @@ module BrInvoicesPdf
63
63
  private_class_method :check_url
64
64
 
65
65
  def locate_element_to_date(xml, path)
66
- Time.parse(locate_element(xml, path)).utc
66
+ element = locate_element(xml, path)
67
+
68
+ Time.parse(element).utc
69
+ rescue StandardError => _e
70
+ Time.parse("#{element[0..18]}-03:00").utc
67
71
  end
68
72
  private_class_method :locate_element_to_date
69
73
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrInvoicesPdf
4
- VERSION = '0.2.23'
4
+ VERSION = '0.2.24'
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.23
4
+ version: 0.2.24
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: 2019-02-13 00:00:00.000000000 Z
12
+ date: 2019-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: barby