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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 926ffa0b9c6ce419a715122202dbc5e5b6489323c0daafe1da259cb86efb0acc
4
- data.tar.gz: d0a6882d42b488d4df932f8b5981a188beb515af31ec3a0d5eb49a6b64a28882
3
+ metadata.gz: c3af0c9fadd39c8a23600e405aa0dcf2d31945f0fef9aa4bb40a13768ea156c7
4
+ data.tar.gz: 124c1a57d4c11a99da95301ac1be5715f358bfd2654d350345f9e23afefc6035
5
5
  SHA512:
6
- metadata.gz: 383e3dc9b714a1faf3a585ed9313db8d0e77031d4556643894395757de723a787b216f5af2eba8ea7aa5c183c0d5ea55bc69534bf9bc40def043767f10c9aeb3
7
- data.tar.gz: b53666c983492ffc59668c305b4b1e1e914f78488a44ec8c048c83de847a4a3559a0092534795d985a61c0192698ab99a2f0b3ecdf8d74a91dde1ff3a7f524af
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.10
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 && apk upgrade
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 support for builtin fonts
28
- RUN gem install invoice_printer_fonts --version 2.0.0 --no-document
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.0.0 --no-document
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
@@ -10,7 +10,7 @@ group :test do
10
10
  end
11
11
 
12
12
  group :benchmark do
13
- gem 'benchmark_driver', '0.14.11'
13
+ gem 'benchmark_driver', '0.15.17'
14
14
  # For generating benchmark reports with --output gruff
15
15
  gem 'benchmark_driver-output-gruff'
16
16
  end
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- invoice_printer (2.0.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.0)
9
- invoice_printer (= 2.0.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.14.11)
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.14.11)
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 &copy; [Josef Strzibny](http://strzibny.name/). MIT licensed.
@@ -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-2.6.0 --jit'
4
- # $ benchmark-driver benchmarks/render.yml --output compare --runner memory -e '/path/to/bin/ruby;/path/to/bin/ruby-2.6.0 --jit--jit'
5
- loop_count: 10000
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
- Rolnická 1
13
+ Rolnicka 1
13
14
  747 05 Opava
14
- Kateřinky
15
+ Katerinky
15
16
  ADDRESS
16
17
 
17
18
  purchaser_address = <<ADDRESS
18
- Ostravská 1
19
+ Ostravska 1
19
20
  747 70 Opava
20
21
  ADDRESS
21
22
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module InvoicePrinter
2
- VERSION = '2.1.0.rc1'
2
+ VERSION = '2.1.0'
3
3
  end
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.rc1
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-03-28 00:00:00.000000000 Z
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: 1.3.1
153
+ version: '0'
159
154
  requirements: []
160
- rubygems_version: 3.2.0.rc.1
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
Binary file
data/examples/logo.png DELETED
Binary file
data/examples/prawn.png DELETED
Binary file
data/examples/stamp.png DELETED
Binary file