invoice_printer_server 2.2.0.alpha1 → 2.2.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 +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe260fde0288dc5fbe3b26b744a2da21a17fc3696d2614fa35a0b18f222ab99a
|
4
|
+
data.tar.gz: 7d5228fe1c4a300c6b8862bbd9fba085f2d6fb1f260ae1362ec7754a579431cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81bed1ea02c615f86ec12c622ee92f5ac91aa8aa08ce18603102d90a8b814347b375455ffdb2a3a7c2e97c61df729385ef614fac5e79f519d5bb2525b03ad4f4
|
7
|
+
data.tar.gz: 9fc2d191961e92b614035363371e71d8ffa989ae94741f790e806de1bf2fbecf8f8dd55fe955037cfeb0626e3df1bfa52f66bb133f2529196074b35a58d729a0
|
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.2.0
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josef Strzibny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-17 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
|
19
|
+
version: 2.2.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
|
26
|
+
version: 2.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,11 +121,11 @@ 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.2.
|
128
|
+
rubygems_version: 3.2.3
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Super simple PDF invoicing in pure Ruby
|