clinvoice 2.2.1 → 2.3.0

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: 5d3fa79e8325739695366e91bc1e8cc4197771dc6bc7f46fe08216499f773e30
4
+ data.tar.gz: eb93495c6eea902a30455910a081b4a314da80c9343bf6f6ba5e67fbe4674cd0
5
5
  SHA512:
6
- metadata.gz: ebc3d74d09e9469d489bf1459b6b91773d99550954f1eb10f891b14274a0f0de3d3df805192ece5eaf5ec88dfb1e0423e91b34af357e2d5c705700293e68cf8d
7
- data.tar.gz: f7e204e69992eea428ef0b7be5b23dcd02f2cfa5bd044c36f691e68c14a5f156787ddfacc015294a34e220c926f2faeddbde086b32d0731b32b726e6a32a3b13
6
+ metadata.gz: c012ccc054481d4912985dcee20507aac4d8996ff1317c71ff51ac20710c6f1b69b06fd24ce8ff57c4ceb9f7ab3fbf524826abf91bc4d3e89b68145f28fbb4be
7
+ data.tar.gz: bca8754d29c24a6237be190184e7ed7f8139a0b8bbf6589de3bb5851404b26b908caeec8b1f2e44a7c5619b919e1ef3389d1d31ca43491ba04170365f86019ec
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 2.5.5
1
+ ruby 2.7.6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clinvoice (2.1.1)
4
+ clinvoice (2.2.2)
5
5
  prawn (~> 2.2)
6
6
  prawn-table (~> 0.2.2)
7
7
 
@@ -21,7 +21,7 @@ PLATFORMS
21
21
  ruby
22
22
 
23
23
  DEPENDENCIES
24
- bundler (~> 2.2.10)
24
+ bundler (~> 2.1.4)
25
25
  clinvoice!
26
26
  rake (~> 10.0)
27
27
 
data/clinvoice.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.add_development_dependency 'bundler', '~> 2.2.10'
28
+ spec.add_development_dependency 'bundler', '~> 2.1.4'
29
29
  spec.add_development_dependency 'rake', '~> 10.0'
30
30
  spec.add_dependency 'prawn', '~> 2.2'
31
31
  spec.add_dependency 'prawn-table', '~> 0.2.2'
@@ -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.3.0'
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.3.0
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: 2022-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.10
19
+ version: 2.1.4
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.10
26
+ version: 2.1.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -120,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubyforge_project:
124
- rubygems_version: 2.7.6.2
123
+ rubygems_version: 3.1.6
125
124
  signing_key:
126
125
  specification_version: 4
127
126
  summary: Generates invoices using command line