invoice_printer 2.1.0.rc1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +7 -6
- data/Gemfile +1 -1
- data/Gemfile.lock +5 -5
- data/README.md +6 -0
- data/benchmarks/render.yml +9 -8
- data/invoice_printer.gemspec +1 -0
- data/lib/invoice_printer/version.rb +1 -1
- metadata +5 -10
- data/assets/logo.png +0 -0
- data/examples/background.png +0 -0
- data/examples/logo.png +0 -0
- data/examples/prawn.png +0 -0
- data/examples/stamp.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3af0c9fadd39c8a23600e405aa0dcf2d31945f0fef9aa4bb40a13768ea156c7
|
4
|
+
data.tar.gz: 124c1a57d4c11a99da95301ac1be5715f358bfd2654d350345f9e23afefc6035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9a788d351c01c97b99bb50653bf883b363909b54d5d0d65d7b0421a6ec444b2886e6ef7bbb18bc332d59977c0f60700c60efe1ec0cc67c62b075edf3306297e
|
7
|
+
data.tar.gz: 3051327dd4011d6ca954981fdfcc05edf2af1ad242355cb029d2c40a29de0e1b18d430b77131b572fe2db975a9ff371c91317a4cf345d7510801d7b594e76257
|
data/Dockerfile
CHANGED
@@ -11,24 +11,25 @@
|
|
11
11
|
#
|
12
12
|
# $ sudo docker login
|
13
13
|
# $ sudo docker tag printer docker.io/strzibnyj/invoice_printer_server:latest
|
14
|
+
# $ sudo docker push strzibnyj/invoice_printer_server:$VERSION
|
14
15
|
# $ sudo docker push strzibnyj/invoice_printer_server:latest
|
15
|
-
FROM alpine:3.
|
16
|
+
FROM alpine:3.13
|
16
17
|
MAINTAINER Josef Strzibny <strzibny@strzibny.name>
|
17
18
|
|
18
19
|
ENV GEM_HOME="/usr/local/bundle"
|
19
20
|
ENV PATH $GEM_HOME/bin:$GEM_HOME/gems/bin:$PATH
|
20
21
|
|
21
22
|
# Update system
|
22
|
-
RUN apk update &&
|
23
|
+
RUN apk update && apk upgrade
|
23
24
|
|
24
25
|
# Install Ruby and build dependencies
|
25
26
|
RUN apk add build-base bash ruby ruby-etc ruby-dev
|
26
27
|
|
27
|
-
# Install
|
28
|
-
RUN gem install invoice_printer_fonts --version 2.
|
28
|
+
# Install builtin fonts
|
29
|
+
RUN gem install invoice_printer_fonts --version 2.1.0 --no-document
|
29
30
|
|
30
|
-
# Install gem from RubyGems.org
|
31
|
-
RUN gem install invoice_printer_server --version 2.
|
31
|
+
# Install the gem from RubyGems.org
|
32
|
+
RUN gem install invoice_printer_server --version 2.1.0 --no-document
|
32
33
|
|
33
34
|
# Clean APK cache
|
34
35
|
RUN rm -rf /var/cache/apk/*
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
invoice_printer (2.0.
|
4
|
+
invoice_printer (2.1.0.rc1)
|
5
5
|
json (~> 2.1)
|
6
6
|
prawn (~> 2.2)
|
7
7
|
prawn-table (~> 0.2.2)
|
8
|
-
invoice_printer_server (2.0.
|
9
|
-
invoice_printer (= 2.0.
|
8
|
+
invoice_printer_server (2.1.0.rc1)
|
9
|
+
invoice_printer (= 2.1.0.rc1)
|
10
10
|
json (~> 2.1)
|
11
11
|
puma (>= 3.9.0)
|
12
12
|
roda (~> 3.5)
|
@@ -16,7 +16,7 @@ GEM
|
|
16
16
|
specs:
|
17
17
|
Ascii85 (1.0.3)
|
18
18
|
afm (0.2.2)
|
19
|
-
benchmark_driver (0.
|
19
|
+
benchmark_driver (0.15.17)
|
20
20
|
benchmark_driver-output-gruff (0.3.1)
|
21
21
|
benchmark_driver (>= 0.12.0)
|
22
22
|
gruff
|
@@ -58,7 +58,7 @@ PLATFORMS
|
|
58
58
|
ruby
|
59
59
|
|
60
60
|
DEPENDENCIES
|
61
|
-
benchmark_driver (= 0.
|
61
|
+
benchmark_driver (= 0.15.17)
|
62
62
|
benchmark_driver-output-gruff
|
63
63
|
bundler (>= 1.7)
|
64
64
|
invoice_printer_server!
|
data/README.md
CHANGED
@@ -46,6 +46,12 @@ See more usecases in the `examples/` directory.
|
|
46
46
|
- [Server](./docs/SERVER.md)
|
47
47
|
- [Command line](./docs/COMMAND_LINE.md)
|
48
48
|
|
49
|
+
## Support
|
50
|
+
|
51
|
+
I am developing InvoicePrinter as a free and MIT-licensed library for several years now.
|
52
|
+
|
53
|
+
I would appreciate if you consider [buying my book](https://deploymentfromscratch.com/).
|
54
|
+
|
49
55
|
## Copyright
|
50
56
|
|
51
57
|
Copyright 2015-2021 © [Josef Strzibny](http://strzibny.name/). MIT licensed.
|
data/benchmarks/render.yml
CHANGED
@@ -1,21 +1,22 @@
|
|
1
1
|
# Run the benchmark with benchmark_driver as:
|
2
2
|
#
|
3
|
-
# $ benchmark-driver benchmarks/render.yml --output gruff --runner ips -e '/path/to/bin/ruby;/path/to/bin/ruby-
|
4
|
-
# $ benchmark-driver benchmarks/render.yml --output compare --runner memory -e '/path/to/bin/ruby;/path/to/bin/ruby-
|
5
|
-
|
3
|
+
# $ benchmark-driver benchmarks/render.yml --output gruff --runner ips -e '/path/to/bin/ruby;/path/to/bin/ruby-3.0.0 --jit'
|
4
|
+
# $ benchmark-driver benchmarks/render.yml --output compare --runner memory -e '/path/to/bin/ruby;/path/to/bin/ruby-3.0.0 --jit'
|
5
|
+
# $ benchmark-driver benchmarks/render.yml -e '/home/strzibny/.rubies/ruby-2.7.0/bin/ruby;/home/strzibny/.rubies/ruby-3.0.0/bin/ruby;/home/strzibny/.rubies/ruby-3.0.0/bin/ruby --jit'
|
6
|
+
#
|
7
|
+
# Note: You need to install invoice_printer as a gem for the require to work.
|
8
|
+
loop_count: 3000
|
6
9
|
prelude: |
|
7
|
-
lib = File.expand_path('../lib', __FILE__)
|
8
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
9
10
|
require 'invoice_printer'
|
10
11
|
|
11
12
|
provider_address = <<ADDRESS
|
12
|
-
|
13
|
+
Rolnicka 1
|
13
14
|
747 05 Opava
|
14
|
-
|
15
|
+
Katerinky
|
15
16
|
ADDRESS
|
16
17
|
|
17
18
|
purchaser_address = <<ADDRESS
|
18
|
-
|
19
|
+
Ostravska 1
|
19
20
|
747 70 Opava
|
20
21
|
ADDRESS
|
21
22
|
|
data/invoice_printer.gemspec
CHANGED
@@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
package_files = `git ls-files -z`.split("\x0")
|
34
34
|
.reject{ |file| ONLY_SERVER_FILES.include?(file) }
|
35
35
|
.reject{ |file| ONLY_FONTS_FILES.include?(file) }
|
36
|
+
.reject{ |file| file.match /.*\.png/ }
|
36
37
|
.reject{ |file| file.match /.*\.pdf/ }
|
37
38
|
|
38
39
|
spec.files = package_files
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invoice_printer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0
|
4
|
+
version: 2.1.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-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -95,27 +95,22 @@ files:
|
|
95
95
|
- LICENSE.txt
|
96
96
|
- README.md
|
97
97
|
- Rakefile
|
98
|
-
- assets/logo.png
|
99
98
|
- benchmarks/render.yml
|
100
99
|
- bin/invoice_printer
|
101
100
|
- docs/COMMAND_LINE.md
|
102
101
|
- docs/INSTALLATION.md
|
103
102
|
- docs/LIBRARY.md
|
104
103
|
- docs/SERVER.md
|
105
|
-
- examples/background.png
|
106
104
|
- examples/clients/node.js
|
107
105
|
- examples/complex_invoice.rb
|
108
106
|
- examples/czech_invoice.rb
|
109
107
|
- examples/czech_invoice_long.rb
|
110
108
|
- examples/international_invoice.rb
|
111
|
-
- examples/logo.png
|
112
109
|
- examples/long_invoice.rb
|
113
110
|
- examples/picture.jpg
|
114
|
-
- examples/prawn.png
|
115
111
|
- examples/promo.rb
|
116
112
|
- examples/provider_purchaser_lines.rb
|
117
113
|
- examples/simple_invoice.rb
|
118
|
-
- examples/stamp.png
|
119
114
|
- invoice_printer.gemspec
|
120
115
|
- invoice_printer_fonts.gemspec
|
121
116
|
- invoice_printer_server.gemspec
|
@@ -153,11 +148,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
148
|
version: '2.4'
|
154
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
150
|
requirements:
|
156
|
-
- - "
|
151
|
+
- - ">="
|
157
152
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
153
|
+
version: '0'
|
159
154
|
requirements: []
|
160
|
-
rubygems_version: 3.2.
|
155
|
+
rubygems_version: 3.2.3
|
161
156
|
signing_key:
|
162
157
|
specification_version: 4
|
163
158
|
summary: Super simple PDF invoicing in pure Ruby
|
data/assets/logo.png
DELETED
Binary file
|
data/examples/background.png
DELETED
Binary file
|
data/examples/logo.png
DELETED
Binary file
|
data/examples/prawn.png
DELETED
Binary file
|
data/examples/stamp.png
DELETED
Binary file
|