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 +4 -4
- data/bin/invoice_printer_server +1 -1
- data/lib/invoice_printer/server.rb +9 -1
- data/lib/invoice_printer/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59a1f19d1e16c3b5f2241d338c24f8309779cb78eb09956394d91e3d676c09a9
|
4
|
+
data.tar.gz: 65d37ccf47221784774acf16f42914ea9c940573686fcc691c1ce098218efaf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff415f5c85748d22cd35904e455684610b289763427f4b13ab9030f3ab362512992bb99cb75f3729cb7c182829e9f6ebc5c4a2f057768d5a881a10c2ebbdb1d9
|
7
|
+
data.tar.gz: ff914179a288900e14cc7338049ced969eed0b7e86d20eb03e359043c5aa2320f8dbbc6358d9de23bfbf907762108f04f483352d236428fe97900cf73bd2b9bd
|
data/bin/invoice_printer_server
CHANGED
@@ -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
|
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(
|
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,
|
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.
|
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:
|
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.
|
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.
|
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:
|
126
|
+
version: '0'
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.
|
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: []
|