invoice_printer 2.0.0.alpha1 → 2.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@ class PageNumbersTest < Minitest::Test
5
5
 
6
6
  # If there is only one page, we skip numbering
7
7
  def test_do_not_number_1_page
8
- item = InvoicePrinter::Document::Item.new(default_document_item_params)
8
+ item = InvoicePrinter::Document::Item.new(**default_document_item_params)
9
9
  params = default_document_params.merge(
10
10
  items: [item]
11
11
  )
12
- invoice = InvoicePrinter::Document.new(params)
12
+ invoice = InvoicePrinter::Document.new(**params)
13
13
  rendered_pdf = InvoicePrinter.render(document: invoice)
14
14
  pdf_analysis = PDF::Inspector::Text.analyze(rendered_pdf)
15
15
 
@@ -17,12 +17,12 @@ class PageNumbersTest < Minitest::Test
17
17
  end
18
18
 
19
19
  def test_number_2_and_more_pages
20
- item = InvoicePrinter::Document::Item.new(default_document_item_params)
20
+ item = InvoicePrinter::Document::Item.new(**default_document_item_params)
21
21
  items = [item] * 50
22
22
  params = default_document_params.merge(
23
23
  items: items
24
24
  )
25
- invoice = InvoicePrinter::Document.new(params)
25
+ invoice = InvoicePrinter::Document.new(**params)
26
26
  rendered_pdf = InvoicePrinter.render(document: invoice)
27
27
  pdf_analysis = PDF::Inspector::Text.analyze(rendered_pdf)
28
28
 
@@ -8,7 +8,7 @@ class PaymentBoxTest < Minitest::Test
8
8
  bank_account_number: nil,
9
9
  account_iban: 'IBAN'
10
10
  )
11
- invoice = InvoicePrinter::Document.new(params)
11
+ invoice = InvoicePrinter::Document.new(**params)
12
12
  rendered_pdf = InvoicePrinter.render(document: invoice)
13
13
  pdf_analysis = PDF::Inspector::Text.analyze(rendered_pdf)
14
14
 
@@ -24,7 +24,7 @@ class PaymentBoxTest < Minitest::Test
24
24
  account_iban: nil,
25
25
  account_swift: nil
26
26
  )
27
- invoice = InvoicePrinter::Document.new(params)
27
+ invoice = InvoicePrinter::Document.new(**params)
28
28
  rendered_pdf = InvoicePrinter.render(document: invoice)
29
29
  pdf_analysis = PDF::Inspector::Text.analyze(rendered_pdf)
30
30
 
@@ -41,7 +41,7 @@ class PaymentBoxTest < Minitest::Test
41
41
  account_iban: 'SAMPLE_IBAN',
42
42
  account_swift: nil
43
43
  )
44
- invoice = InvoicePrinter::Document.new(params)
44
+ invoice = InvoicePrinter::Document.new(**params)
45
45
  rendered_pdf = InvoicePrinter.render(document: invoice)
46
46
  pdf_analysis = PDF::Inspector::Text.analyze(rendered_pdf)
47
47
 
@@ -59,7 +59,7 @@ class PaymentBoxTest < Minitest::Test
59
59
  account_iban: nil,
60
60
  account_swift: 'SAMPLE_SWIFT'
61
61
  )
62
- invoice = InvoicePrinter::Document.new(params)
62
+ invoice = InvoicePrinter::Document.new(**params)
63
63
  rendered_pdf = InvoicePrinter.render(document: invoice)
64
64
  pdf_analysis = PDF::Inspector::Text.analyze(rendered_pdf)
65
65
 
@@ -77,7 +77,7 @@ class PaymentBoxTest < Minitest::Test
77
77
  account_iban: 'SAMPLE_IBAN',
78
78
  account_swift: 'SAMPLE_SWIFT'
79
79
  )
80
- invoice = InvoicePrinter::Document.new(params)
80
+ invoice = InvoicePrinter::Document.new(**params)
81
81
  rendered_pdf = InvoicePrinter.render(document: invoice)
82
82
  pdf_analysis = PDF::Inspector::Text.analyze(rendered_pdf)
83
83
 
data/test/test_helper.rb CHANGED
@@ -33,7 +33,7 @@ module InvoicePrinterHelpers
33
33
  account_swift: 'SWIFT5456',
34
34
  items: [
35
35
  InvoicePrinter::Document::Item.new(
36
- default_document_item_params
36
+ **default_document_item_params
37
37
  )
38
38
  ]
39
39
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invoice_printer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.alpha1
4
+ version: 2.1.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Strzibny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-04 00:00:00.000000000 Z
11
+ date: 2021-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.1.0
33
+ version: '2.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.1.0
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
- name: prawn-layout
42
+ name: prawn-table
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.8.4
47
+ version: 0.2.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.8.4
54
+ version: 0.2.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -89,6 +89,7 @@ extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
91
  - ".gitignore"
92
+ - Dockerfile
92
93
  - Gemfile
93
94
  - Gemfile.lock
94
95
  - LICENSE.txt
@@ -116,6 +117,7 @@ files:
116
117
  - examples/simple_invoice.rb
117
118
  - examples/stamp.png
118
119
  - invoice_printer.gemspec
120
+ - invoice_printer_fonts.gemspec
119
121
  - invoice_printer_server.gemspec
120
122
  - lib/invoice_printer.rb
121
123
  - lib/invoice_printer/document.rb
@@ -148,14 +150,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
150
  requirements:
149
151
  - - ">="
150
152
  - !ruby/object:Gem::Version
151
- version: '0'
153
+ version: '2.4'
152
154
  required_rubygems_version: !ruby/object:Gem::Requirement
153
155
  requirements:
154
156
  - - ">"
155
157
  - !ruby/object:Gem::Version
156
158
  version: 1.3.1
157
159
  requirements: []
158
- rubygems_version: 3.0.3
160
+ rubygems_version: 3.2.0.rc.1
159
161
  signing_key:
160
162
  specification_version: 4
161
163
  summary: Super simple PDF invoicing in pure Ruby