invoice_printer_server 2.2.0.alpha1 → 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: 5298ff144440e13f78eb4a19bdb3038e3017e843a9ef0ae40832921fca44993e
4
- data.tar.gz: b9f243a52a76e8ae49d72cba3fabc11e47395dcb27759ce5b387a9d1dd6c7c90
3
+ metadata.gz: 59a1f19d1e16c3b5f2241d338c24f8309779cb78eb09956394d91e3d676c09a9
4
+ data.tar.gz: 65d37ccf47221784774acf16f42914ea9c940573686fcc691c1ce098218efaf7
5
5
  SHA512:
6
- metadata.gz: 539e6477c4f74507ca43fa40f13c26514f2766aba3f55ed3a581f6e6b65ea7b2b832835aed3641edabf368932fe287a1b9d0618e794f4bf3906b2fda4786ec3a
7
- data.tar.gz: 8160bd7739759f362a1fcd7aa813cfa07203ac3c66fa0bcbf22f586cfe35307c24b44fd6120d5e3ffd9b80f8b4faeadeec08186c817b1aa96cba5880e5b72bb2
6
+ metadata.gz: ff415f5c85748d22cd35904e455684610b289763427f4b13ab9030f3ab362512992bb99cb75f3729cb7c182829e9f6ebc5c4a2f057768d5a881a10c2ebbdb1d9
7
+ data.tar.gz: ff914179a288900e14cc7338049ced969eed0b7e86d20eb03e359043c5aa2320f8dbbc6358d9de23bfbf907762108f04f483352d236428fe97900cf73bd2b9bd
@@ -61,7 +61,7 @@ parser.parse!
61
61
  puma_options = { :Host => '0.0.0.0', :Port => 9393, :workers => 2 }.merge(options)
62
62
 
63
63
  begin
64
- puts 'Starting InvoicePrinter Server...'
64
+ puts "Starting InvoicePrinter Server v#{InvoicePrinter::VERSION}..."
65
65
  Rack::Handler::Puma.run(InvoicePrinter::Server.freeze.app, **puma_options)
66
66
  rescue => e
67
67
  STDERR.puts "ERROR: #{e.message}"
@@ -19,13 +19,19 @@ class InvoicePrinter::Server < Roda
19
19
  document = params[:document]
20
20
  labels = params[:labels]
21
21
  font = params[:font]
22
+ bold_font = params[:bold_font]
22
23
  stamp = params[:stamp]
23
24
  logo = params[:logo]
24
25
  background = params[:background]
25
26
  page_size = params[:page_size]
26
27
  else
27
28
  response.status = 400
28
- response.write({ result: 'error', error: 'No JSON. Did you set Content-Type to application/json?' }.to_json)
29
+ response.write(
30
+ {
31
+ result: 'error',
32
+ error: 'No JSON. Did you set Content-Type to application/json?'
33
+ }.to_json
34
+ )
29
35
  r.halt
30
36
  end
31
37
 
@@ -51,6 +57,7 @@ class InvoicePrinter::Server < Roda
51
57
  document: document,
52
58
  labels: labels,
53
59
  font: font,
60
+ bold_font: bold_font,
54
61
  stamp: stamp,
55
62
  logo: logo,
56
63
  background: background,
@@ -73,6 +80,7 @@ class InvoicePrinter::Server < Roda
73
80
  document: document,
74
81
  labels: labels,
75
82
  font: font,
83
+ bold_font: bold_font,
76
84
  stamp: stamp,
77
85
  logo: logo,
78
86
  background: background,
@@ -1,3 +1,3 @@
1
1
  module InvoicePrinter
2
- VERSION = '2.2.0.alpha1'
2
+ VERSION = '2.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invoice_printer_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0.alpha1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Strzibny
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2023-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: invoice_printer
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.0.alpha1
19
+ version: 2.3.0
20
20
  type: :runtime
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.0.alpha1
26
+ version: 2.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -110,7 +110,7 @@ homepage: https://github.com/strzibny/invoice_printer
110
110
  licenses:
111
111
  - MIT
112
112
  metadata: {}
113
- post_install_message:
113
+ post_install_message:
114
114
  rdoc_options: []
115
115
  require_paths:
116
116
  - lib
@@ -121,12 +121,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  version: '2.4'
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ">"
124
+ - - ">="
125
125
  - !ruby/object:Gem::Version
126
- version: 1.3.1
126
+ version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.2.0.rc.1
129
- signing_key:
128
+ rubygems_version: 3.3.3
129
+ signing_key:
130
130
  specification_version: 4
131
131
  summary: Super simple PDF invoicing in pure Ruby
132
132
  test_files: []