clinvoice 2.1.1 → 2.2.1

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: a7b30b68da884dd446548d727a619dff2267e2b0489766d55f71112248031bf6
4
- data.tar.gz: 5240d5bc15516f3384cc6fff5718fcdea563eb1fa82e9c5b60c754eaf8d1e269
3
+ metadata.gz: 1d98b8850af7ae69833611a1d4d36e9fe926fcb46cca1342e406a439baa7eb8e
4
+ data.tar.gz: ac0c250ee74f5d4150224c067525a82a9c58bff8aeb8f8ffbd9fed863648437c
5
5
  SHA512:
6
- metadata.gz: 21098285d4623b2a9bd6f692073c9454751c00f941bb0047dbf710701612e4214617a3bed839b90108fb9fa9619c96a1d730ea8592a6d21aca31164c678c9ece
7
- data.tar.gz: 1f8b1bb9dd0f69008198ca0b2365b0564da3fa2ec27f8c1e882a8c582ff87a4f4ba61ffbc3aadc6d0df54b3e833e8cff55508027edf0adc58eee7b3ffadb7d89
6
+ metadata.gz: ebc3d74d09e9469d489bf1459b6b91773d99550954f1eb10f891b14274a0f0de3d3df805192ece5eaf5ec88dfb1e0423e91b34af357e2d5c705700293e68cf8d
7
+ data.tar.gz: f7e204e69992eea428ef0b7be5b23dcd02f2cfa5bd044c36f691e68c14a5f156787ddfacc015294a34e220c926f2faeddbde086b32d0731b32b726e6a32a3b13
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.5.5
data/Gemfile.lock CHANGED
@@ -1,29 +1,29 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clinvoice (1.0.0)
4
+ clinvoice (2.1.1)
5
5
  prawn (~> 2.2)
6
6
  prawn-table (~> 0.2.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- pdf-core (0.7.0)
12
- prawn (2.2.2)
13
- pdf-core (~> 0.7.0)
14
- ttfunk (~> 1.5)
11
+ pdf-core (0.9.0)
12
+ prawn (2.4.0)
13
+ pdf-core (~> 0.9.0)
14
+ ttfunk (~> 1.7)
15
15
  prawn-table (0.2.2)
16
16
  prawn (>= 1.3.0, < 3.0.0)
17
17
  rake (10.5.0)
18
- ttfunk (1.5.1)
18
+ ttfunk (1.7.0)
19
19
 
20
20
  PLATFORMS
21
21
  ruby
22
22
 
23
23
  DEPENDENCIES
24
- bundler (~> 1.16)
24
+ bundler (~> 2.2.10)
25
25
  clinvoice!
26
26
  rake (~> 10.0)
27
27
 
28
28
  BUNDLED WITH
29
- 1.16.4
29
+ 2.2.25
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', '~> 1.16'
28
+ spec.add_development_dependency 'bundler', '~> 2.2.10'
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'
data/generate-gem CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  rm *.gem
3
3
  gem build clinvoice.gemspec
4
-
4
+ gem push *.gem
@@ -5,6 +5,8 @@ require 'yaml'
5
5
  module Clinvoice
6
6
  class Data
7
7
  attr_reader :invoice_id,
8
+ :issue_date,
9
+ :due_date,
8
10
  :currency,
9
11
  :contractor,
10
12
  :client,
@@ -23,6 +25,8 @@ module Clinvoice
23
25
  @currency = data['currency']
24
26
  @issue_date = data['issue_date']
25
27
  @contractor = data['contractor']
28
+ @issue_date = data['issue_date']
29
+ @due_date = data['due_date']
26
30
  @client = data['client']
27
31
  @items = data['items'].map do |item|
28
32
  [
@@ -12,6 +12,20 @@ module Clinvoice
12
12
  Clinvoice::Helper.new_line(pdf, data.currency)
13
13
 
14
14
  pdf.move_down 10
15
+
16
+ if data.issue_date
17
+ Clinvoice::Helper.new_bold_line(pdf, "Issue Date")
18
+ Clinvoice::Helper.new_line(pdf, data.issue_date)
19
+
20
+ pdf.move_down 10
21
+ end
22
+
23
+ if data.issue_date
24
+ Clinvoice::Helper.new_bold_line(pdf, "Due Date")
25
+ Clinvoice::Helper.new_line(pdf, data.due_date)
26
+
27
+ pdf.move_down 10
28
+ end
15
29
  end
16
30
  end
17
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Clinvoice
4
- VERSION = '2.1.1'
4
+ VERSION = '2.2.1'
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.1.1
4
+ version: 2.2.1
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-06-03 00:00:00.000000000 Z
11
+ date: 2021-08-11 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: '1.16'
19
+ version: 2.2.10
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: '1.16'
26
+ version: 2.2.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -77,6 +77,7 @@ extra_rdoc_files: []
77
77
  files:
78
78
  - ".gitignore"
79
79
  - ".rspec"
80
+ - ".tool-versions"
80
81
  - ".travis.yml"
81
82
  - CODE_OF_CONDUCT.md
82
83
  - Gemfile
@@ -119,7 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
120
  - !ruby/object:Gem::Version
120
121
  version: '0'
121
122
  requirements: []
122
- rubygems_version: 3.1.4
123
+ rubyforge_project:
124
+ rubygems_version: 2.7.6.2
123
125
  signing_key:
124
126
  specification_version: 4
125
127
  summary: Generates invoices using command line