Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
strzibny committed Oct 13, 2024
1 parent 9afc3a8 commit 1a24933
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions invoice_printer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Gem::Specification.new do |spec|
package_files = `git ls-files -z`.split("\x0")
.reject{ |file| ONLY_SERVER_FILES.include?(file) }
.reject{ |file| ONLY_FONTS_FILES.include?(file) }
.reject{ |file| file.match /.*\.png/ }
.reject{ |file| file.match /.*\.pdf/ }
.reject{ |file| file.match(/.*\.png/) }
.reject{ |file| file.match(/.*\.pdf/) }

spec.files = package_files
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
Expand Down
2 changes: 1 addition & 1 deletion lib/invoice_printer/pdf_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def build_description
end
end

def description_height
def description_height
@description_height ||= begin
num_of_lines = @document.description.lines.count
(num_of_lines * 13)
Expand Down

0 comments on commit 1a24933

Please sign in to comment.