Skip to content

Commit

Permalink
Rubocop e changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
otavioschwanck committed Jul 16, 2018
1 parent 039c0c3 commit 4a9beca
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## CHANGELOG

## 0.2.16 [2018-07-16]
- [Adicionado] Mensagem do procon

## 0.2.15 [2018-07-10]
- [Corrigido] Tributos na NFCE

Expand Down
1 change: 0 additions & 1 deletion arquivo.xml

This file was deleted.

11 changes: 6 additions & 5 deletions lib/br_invoices_pdf/nfce/renderer/procon_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ module ProconInfo
module_function

def execute(pdf, data)
procon_message = data[:additional_variables][:procon_message]
procon_message = data[:additional_variables][:procon_message]

unless ['', nil].include? procon_message
box(pdf, [0, pdf.cursor], page_content_width(pdf)) do
procon_message(pdf, procon_message)
end
puts "procon: #{procon_message}"

return if ['', nil].include? procon_message
box(pdf, [0, pdf.cursor], page_content_width(pdf)) do
procon_message(pdf, procon_message)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/br_invoices_pdf/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module BrInvoicesPdf
VERSION = '0.2.15'
VERSION = '0.2.16'
end

0 comments on commit 4a9beca

Please sign in to comment.