invoice_printer_server 2.0.0.alpha1 → 2.1.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0ff1de59a0faaa03ec5b8713dceb066590cb27981b509b289d2e838f5e1dd68
4
- data.tar.gz: b24e759907d4010526fbafa90bfb1bfee7f2c0aa1f54b5ee754eda55f9201143
3
+ metadata.gz: f6a7a40575949dcac6653b050b47089a06f580fbffd6a15e4710abd933265501
4
+ data.tar.gz: f450f120cc1f9091f50f00387ea6a6f4abc4fdef0c8b75876d2558bb945dee5b
5
5
  SHA512:
6
- metadata.gz: 869995621f683dc022bf6fe26540f93ffe9e20a0d408dcf9bc5c3e37ac061e82f41eb370aa8f558004cd6c5b628d8a7fddb0d36dc9a2e904a264493835c48d39
7
- data.tar.gz: 9de382e4925f18e704cbfcfe862cebc90d6d75b3b60de3d92fb90262607559da91704670b39aba3c652e99d8b3e8a8f6812919cfc081b479b6431bb750775de8
6
+ metadata.gz: b0a3ea641940b161a4940210f91c1a9fe4021aa75349287af5e8bf20eb62c59bcdac3f21c33b4e99a9e0cbd2e2b1f5933e52fcfc0592068257740f07acabc504
7
+ data.tar.gz: 72231160426e5f4daf97cb921e9c3f7a58a8dcaa5d4b9f77317e587e6f5978e77f6d2ebc8d5a61b96bdae8e194a51d7387c812c8adc49220219f7c8bfc1fd308
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015-2019 Josef Strzibny
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -7,7 +7,7 @@ require 'invoice_printer/version'
7
7
  require 'invoice_printer/server'
8
8
 
9
9
  def show_version
10
- puts "InvoicePrinter v#{InvoicePrinter::VERSION}"
10
+ puts "InvoicePrinter Server v#{InvoicePrinter::VERSION}"
11
11
 
12
12
  exit 0
13
13
  end
@@ -62,7 +62,7 @@ puma_options = { :Host => '0.0.0.0', :Port => 9393, :workers => 2 }.merge(option
62
62
 
63
63
  begin
64
64
  puts 'Starting InvoicePrinter Server...'
65
- Rack::Handler::Puma.run(InvoicePrinter::Server.freeze.app, puma_options)
65
+ Rack::Handler::Puma.run(InvoicePrinter::Server.freeze.app, **puma_options)
66
66
  rescue => e
67
67
  STDERR.puts "ERROR: #{e.message}"
68
68
 
@@ -79,7 +79,7 @@ class InvoicePrinter::Server < Roda
79
79
  page_size: page_size
80
80
  )
81
81
 
82
- { result: 'ok', data: Base64.encode64(stream) }.to_json
82
+ { result: 'ok', data: Base64.strict_encode64(stream) }.to_json
83
83
  rescue => e
84
84
  response.status = 400
85
85
  response.write({ result: 'error', error: e.message }.to_json)
@@ -1,3 +1,3 @@
1
1
  module InvoicePrinter
2
- VERSION = '2.0.0.alpha1'
2
+ VERSION = '2.1.0.rc1'
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.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: invoice_printer
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.0.alpha1
19
+ version: 2.1.0.rc1
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.0.0.alpha1
26
+ version: 2.1.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -102,6 +102,7 @@ executables:
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
+ - LICENSE.txt
105
106
  - bin/invoice_printer_server
106
107
  - lib/invoice_printer/server.rb
107
108
  - lib/invoice_printer/version.rb
@@ -117,14 +118,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
118
  requirements:
118
119
  - - ">="
119
120
  - !ruby/object:Gem::Version
120
- version: '0'
121
+ version: '2.4'
121
122
  required_rubygems_version: !ruby/object:Gem::Requirement
122
123
  requirements:
123
124
  - - ">"
124
125
  - !ruby/object:Gem::Version
125
126
  version: 1.3.1
126
127
  requirements: []
127
- rubygems_version: 3.0.3
128
+ rubygems_version: 3.2.0.rc.1
128
129
  signing_key:
129
130
  specification_version: 4
130
131
  summary: Super simple PDF invoicing in pure Ruby