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 +4 -4
- data/.tool-versions +1 -0
- data/Gemfile.lock +8 -8
- data/clinvoice.gemspec +1 -1
- data/generate-gem +1 -1
- data/lib/clinvoice/data.rb +4 -0
- data/lib/clinvoice/render_basic_info.rb +14 -0
- data/lib/clinvoice/version.rb +1 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d98b8850af7ae69833611a1d4d36e9fe926fcb46cca1342e406a439baa7eb8e
|
4
|
+
data.tar.gz: ac0c250ee74f5d4150224c067525a82a9c58bff8aeb8f8ffbd9fed863648437c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
12
|
-
prawn (2.
|
13
|
-
pdf-core (~> 0.
|
14
|
-
ttfunk (~> 1.
|
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.
|
18
|
+
ttfunk (1.7.0)
|
19
19
|
|
20
20
|
PLATFORMS
|
21
21
|
ruby
|
22
22
|
|
23
23
|
DEPENDENCIES
|
24
|
-
bundler (~>
|
24
|
+
bundler (~> 2.2.10)
|
25
25
|
clinvoice!
|
26
26
|
rake (~> 10.0)
|
27
27
|
|
28
28
|
BUNDLED WITH
|
29
|
-
|
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', '~>
|
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
data/lib/clinvoice/data.rb
CHANGED
@@ -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
|
data/lib/clinvoice/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
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
|
-
|
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
|