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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5298ff144440e13f78eb4a19bdb3038e3017e843a9ef0ae40832921fca44993e
4
- data.tar.gz: b9f243a52a76e8ae49d72cba3fabc11e47395dcb27759ce5b387a9d1dd6c7c90
3
+ metadata.gz: fe260fde0288dc5fbe3b26b744a2da21a17fc3696d2614fa35a0b18f222ab99a
4
+ data.tar.gz: 7d5228fe1c4a300c6b8862bbd9fba085f2d6fb1f260ae1362ec7754a579431cc
5
5
  SHA512:
6
- metadata.gz: 539e6477c4f74507ca43fa40f13c26514f2766aba3f55ed3a581f6e6b65ea7b2b832835aed3641edabf368932fe287a1b9d0618e794f4bf3906b2fda4786ec3a
7
- data.tar.gz: 8160bd7739759f362a1fcd7aa813cfa07203ac3c66fa0bcbf22f586cfe35307c24b44fd6120d5e3ffd9b80f8b4faeadeec08186c817b1aa96cba5880e5b72bb2
6
+ metadata.gz: 81bed1ea02c615f86ec12c622ee92f5ac91aa8aa08ce18603102d90a8b814347b375455ffdb2a3a7c2e97c61df729385ef614fac5e79f519d5bb2525b03ad4f4
7
+ data.tar.gz: 9fc2d191961e92b614035363371e71d8ffa989ae94741f790e806de1bf2fbecf8f8dd55fe955037cfeb0626e3df1bfa52f66bb133f2529196074b35a58d729a0
@@ -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.2.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.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-04-16 00:00:00.000000000 Z
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.alpha1
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.alpha1
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: 1.3.1
126
+ version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.2.0.rc.1
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