clinvoice 2.2.1 → 2.2.2

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
  SHA256:
3
- metadata.gz: 1d98b8850af7ae69833611a1d4d36e9fe926fcb46cca1342e406a439baa7eb8e
4
- data.tar.gz: ac0c250ee74f5d4150224c067525a82a9c58bff8aeb8f8ffbd9fed863648437c
3
+ metadata.gz: 0613efe19493bd8ab74fd529496463b68d52cc8feff37fa279d21044dc271f16
4
+ data.tar.gz: 949fbc2f22382af6c0fb52844ebd0a0ebbff29e625d7f86ed395aff94bb834df
5
5
  SHA512:
6
- metadata.gz: ebc3d74d09e9469d489bf1459b6b91773d99550954f1eb10f891b14274a0f0de3d3df805192ece5eaf5ec88dfb1e0423e91b34af357e2d5c705700293e68cf8d
7
- data.tar.gz: f7e204e69992eea428ef0b7be5b23dcd02f2cfa5bd044c36f691e68c14a5f156787ddfacc015294a34e220c926f2faeddbde086b32d0731b32b726e6a32a3b13
6
+ metadata.gz: 6a8b43a3e3a229804442b895715d8712876937e9c50ff18680ce49fb2200b5960565c1dac29224b2374578a035b86b09a45fb4a2fe8090fc84081d1163194475
7
+ data.tar.gz: ceaa6f32db5fc09e4e16477493f07f4bb44fc03416710af7a5801b9c41c6bd517c8d8247c01354d189345a839b4d09928409e7b5942cacdc9c7da4e0090f5952
@@ -40,5 +40,9 @@ module Clinvoice
40
40
  @notes = data['notes']
41
41
  @total = @items.map(&:last).sum
42
42
  end
43
+
44
+ def pdf_file
45
+ "#{file.gsub('.yml', '')}.pdf"
46
+ end
43
47
  end
44
48
  end
@@ -16,7 +16,7 @@ module Clinvoice
16
16
  def self.call(file)
17
17
  data = Clinvoice::Data.new(file)
18
18
 
19
- Prawn::Document.generate("#{data.file}.pdf") do |pdf|
19
+ Prawn::Document.generate(data.pdf_file) do |pdf|
20
20
  Prawn::Font::AFM.hide_m17n_warning = true
21
21
 
22
22
  pdf.font 'Helvetica'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Clinvoice
4
- VERSION = '2.2.1'
4
+ VERSION = '2.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clinvoice
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew S Aguiar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler