webtranslateit-payday 1.7.4 → 2.1.0
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 +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +47 -3
- data/lib/payday/appendix.rb +47 -0
- data/lib/payday/config.rb +4 -4
- data/lib/payday/invoice_presenter.rb +162 -0
- data/lib/payday/invoiceable.rb +6 -5
- data/lib/payday/markup.rb +61 -0
- data/lib/payday/pdf_renderer.rb +78 -314
- data/lib/payday/qr_code.rb +99 -0
- data/lib/payday/templates/invoice.typ +171 -0
- data/lib/payday.rb +5 -5
- data/payday.gemspec +9 -6
- metadata +19 -83
- data/.gitattributes +0 -1
- data/.github/dependabot.yml +0 -28
- data/.github/release-drafter.yml +0 -36
- data/.github/workflows/ci.yml +0 -47
- data/.github/workflows/release-drafter.yml +0 -24
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -16
- data/.rubocop_todo.yml +0 -0
- data/Gemfile +0 -14
- data/Gemfile.lock +0 -210
- data/Guardfile +0 -12
- data/Rakefile +0 -14
- data/spec/assets/example_invoice_with_qr.pdf +0 -0
- data/spec/assets/svg.pdf +0 -2568
- data/spec/assets/testing.pdf +1 -14241
- data/spec/assets/testing_es.pdf +0 -0
- data/spec/assets/testing_predefined_amount.pdf +0 -0
- data/spec/assets/tiger.svg +0 -52
- data/spec/invoice_spec.rb +0 -403
- data/spec/line_item_spec.rb +0 -34
- data/spec/pdf_renderer_spec.rb +0 -15
- data/spec/spec_helper.rb +0 -11
- data/spec/support/asset_matchers.rb +0 -28
- /data/{spec → lib/payday}/assets/default_logo.png +0 -0
data/Gemfile.lock
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
webtranslateit-payday (1.7.4)
|
|
5
|
-
activesupport (>= 7, < 9)
|
|
6
|
-
i18n (~> 1.12, < 2)
|
|
7
|
-
money (>= 6.16, < 8.0)
|
|
8
|
-
prawn (~> 2.4, < 3)
|
|
9
|
-
prawn-svg (~> 0.32, < 1)
|
|
10
|
-
prawn-table (~> 0.2, < 1)
|
|
11
|
-
rqrcode (>= 2, < 4)
|
|
12
|
-
zeitwerk (~> 2.6, < 3)
|
|
13
|
-
|
|
14
|
-
GEM
|
|
15
|
-
remote: https://rubygems.org/
|
|
16
|
-
specs:
|
|
17
|
-
activesupport (8.1.3.1)
|
|
18
|
-
base64
|
|
19
|
-
bigdecimal
|
|
20
|
-
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
21
|
-
connection_pool (>= 2.2.5)
|
|
22
|
-
drb
|
|
23
|
-
i18n (>= 1.6, < 2)
|
|
24
|
-
json
|
|
25
|
-
logger (>= 1.4.2)
|
|
26
|
-
minitest (>= 5.1)
|
|
27
|
-
securerandom (>= 0.3)
|
|
28
|
-
tzinfo (~> 2.0, >= 2.0.5)
|
|
29
|
-
uri (>= 0.13.1)
|
|
30
|
-
addressable (2.9.0)
|
|
31
|
-
public_suffix (>= 2.0.2, < 8.0)
|
|
32
|
-
ast (2.4.3)
|
|
33
|
-
base64 (0.3.0)
|
|
34
|
-
bigdecimal (3.3.1)
|
|
35
|
-
chunky_png (1.4.0)
|
|
36
|
-
coderay (1.1.3)
|
|
37
|
-
concurrent-ruby (1.3.8)
|
|
38
|
-
connection_pool (3.0.2)
|
|
39
|
-
css_parser (1.22.0)
|
|
40
|
-
addressable
|
|
41
|
-
diff-lcs (1.6.2)
|
|
42
|
-
drb (2.2.3)
|
|
43
|
-
ffi (1.17.4)
|
|
44
|
-
ffi (1.17.4-aarch64-linux-gnu)
|
|
45
|
-
ffi (1.17.4-aarch64-linux-musl)
|
|
46
|
-
ffi (1.17.4-aarch64-mingw-ucrt)
|
|
47
|
-
ffi (1.17.4-arm-linux-gnu)
|
|
48
|
-
ffi (1.17.4-arm-linux-musl)
|
|
49
|
-
ffi (1.17.4-arm64-darwin)
|
|
50
|
-
ffi (1.17.4-x86-linux-gnu)
|
|
51
|
-
ffi (1.17.4-x86-linux-musl)
|
|
52
|
-
ffi (1.17.4-x86_64-darwin)
|
|
53
|
-
ffi (1.17.4-x86_64-linux-gnu)
|
|
54
|
-
ffi (1.17.4-x86_64-linux-musl)
|
|
55
|
-
formatador (1.2.3)
|
|
56
|
-
reline
|
|
57
|
-
guard (2.20.2)
|
|
58
|
-
formatador (>= 0.2.4)
|
|
59
|
-
listen (>= 2.7, < 4.0)
|
|
60
|
-
logger (~> 1.6)
|
|
61
|
-
lumberjack (>= 1.0.12, < 2.0)
|
|
62
|
-
nenv (~> 0.1)
|
|
63
|
-
notiffany (~> 0.0)
|
|
64
|
-
pry (>= 0.13.0)
|
|
65
|
-
shellany (~> 0.0)
|
|
66
|
-
thor (>= 0.18.1)
|
|
67
|
-
guard-compat (1.2.1)
|
|
68
|
-
guard-rspec (4.7.3)
|
|
69
|
-
guard (~> 2.1)
|
|
70
|
-
guard-compat (~> 1.1)
|
|
71
|
-
rspec (>= 2.99.0, < 4.0)
|
|
72
|
-
guard-rubocop (1.5.0)
|
|
73
|
-
guard (~> 2.0)
|
|
74
|
-
rubocop (< 2.0)
|
|
75
|
-
i18n (1.15.2)
|
|
76
|
-
concurrent-ruby (~> 1.0)
|
|
77
|
-
io-console (0.8.2)
|
|
78
|
-
json (2.21.2)
|
|
79
|
-
language_server-protocol (3.17.0.6)
|
|
80
|
-
lint_roller (1.1.0)
|
|
81
|
-
listen (3.10.0)
|
|
82
|
-
logger
|
|
83
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
84
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
|
85
|
-
logger (1.7.0)
|
|
86
|
-
lumberjack (1.4.2)
|
|
87
|
-
matrix (0.4.3)
|
|
88
|
-
method_source (1.1.0)
|
|
89
|
-
minitest (6.0.6)
|
|
90
|
-
drb (~> 2.0)
|
|
91
|
-
prism (~> 1.5)
|
|
92
|
-
money (7.1.1)
|
|
93
|
-
bigdecimal
|
|
94
|
-
i18n (~> 1.9)
|
|
95
|
-
nenv (0.3.0)
|
|
96
|
-
notiffany (0.1.3)
|
|
97
|
-
nenv (~> 0.1)
|
|
98
|
-
shellany (~> 0.0)
|
|
99
|
-
parallel (1.28.0)
|
|
100
|
-
parser (3.3.12.0)
|
|
101
|
-
ast (~> 2.4.1)
|
|
102
|
-
racc
|
|
103
|
-
pdf-core (0.10.0)
|
|
104
|
-
prawn (2.5.0)
|
|
105
|
-
matrix (~> 0.4)
|
|
106
|
-
pdf-core (~> 0.10.0)
|
|
107
|
-
ttfunk (~> 1.8)
|
|
108
|
-
prawn-svg (0.40.3)
|
|
109
|
-
css_parser (>= 1.17.1, < 4)
|
|
110
|
-
matrix (~> 0.4.2)
|
|
111
|
-
prawn (>= 0.11.1, < 3)
|
|
112
|
-
rexml (>= 3.4.2, < 4)
|
|
113
|
-
prawn-table (0.2.2)
|
|
114
|
-
prawn (>= 1.3.0, < 3.0.0)
|
|
115
|
-
prism (1.9.0)
|
|
116
|
-
pry (0.16.0)
|
|
117
|
-
coderay (~> 1.1)
|
|
118
|
-
method_source (~> 1.0)
|
|
119
|
-
reline (>= 0.6.0)
|
|
120
|
-
public_suffix (7.0.5)
|
|
121
|
-
racc (1.8.1)
|
|
122
|
-
rainbow (3.1.1)
|
|
123
|
-
rb-fsevent (0.11.2)
|
|
124
|
-
rb-inotify (0.11.1)
|
|
125
|
-
ffi (~> 1.0)
|
|
126
|
-
regexp_parser (2.12.0)
|
|
127
|
-
reline (0.6.3)
|
|
128
|
-
io-console (~> 0.5)
|
|
129
|
-
rexml (3.4.4)
|
|
130
|
-
rqrcode (3.2.0)
|
|
131
|
-
chunky_png (~> 1.0)
|
|
132
|
-
rqrcode_core (~> 2.0)
|
|
133
|
-
rqrcode_core (2.1.0)
|
|
134
|
-
rspec (3.13.2)
|
|
135
|
-
rspec-core (~> 3.13.0)
|
|
136
|
-
rspec-expectations (~> 3.13.0)
|
|
137
|
-
rspec-mocks (~> 3.13.0)
|
|
138
|
-
rspec-core (3.13.6)
|
|
139
|
-
rspec-support (~> 3.13.0)
|
|
140
|
-
rspec-expectations (3.13.5)
|
|
141
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
142
|
-
rspec-support (~> 3.13.0)
|
|
143
|
-
rspec-mocks (3.13.6)
|
|
144
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
145
|
-
rspec-support (~> 3.13.0)
|
|
146
|
-
rspec-support (3.13.6)
|
|
147
|
-
rubocop (1.89.0)
|
|
148
|
-
json (~> 2.3)
|
|
149
|
-
language_server-protocol (~> 3.17.0.2)
|
|
150
|
-
lint_roller (~> 1.1.0)
|
|
151
|
-
parallel (>= 1.10)
|
|
152
|
-
parser (>= 3.3.0.2)
|
|
153
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
154
|
-
regexp_parser (>= 2.9.3, < 3.0)
|
|
155
|
-
rubocop-ast (>= 1.49.0, < 2.0)
|
|
156
|
-
ruby-progressbar (~> 1.7)
|
|
157
|
-
unicode-display_width (>= 2.4.0, < 4.0)
|
|
158
|
-
rubocop-ast (1.50.0)
|
|
159
|
-
parser (>= 3.3.7.2)
|
|
160
|
-
prism (~> 1.7)
|
|
161
|
-
rubocop-performance (1.26.1)
|
|
162
|
-
lint_roller (~> 1.1)
|
|
163
|
-
rubocop (>= 1.75.0, < 2.0)
|
|
164
|
-
rubocop-ast (>= 1.47.1, < 2.0)
|
|
165
|
-
rubocop-rspec (3.10.2)
|
|
166
|
-
lint_roller (~> 1.1)
|
|
167
|
-
regexp_parser (>= 2.0)
|
|
168
|
-
rubocop (~> 1.86, >= 1.86.2)
|
|
169
|
-
ruby-progressbar (1.13.0)
|
|
170
|
-
securerandom (0.4.1)
|
|
171
|
-
shellany (0.0.1)
|
|
172
|
-
thor (1.5.0)
|
|
173
|
-
ttfunk (1.8.0)
|
|
174
|
-
bigdecimal (~> 3.1)
|
|
175
|
-
tzinfo (2.0.6)
|
|
176
|
-
concurrent-ruby (~> 1.0)
|
|
177
|
-
unicode-display_width (3.2.0)
|
|
178
|
-
unicode-emoji (~> 4.1)
|
|
179
|
-
unicode-emoji (4.2.0)
|
|
180
|
-
uri (1.1.1)
|
|
181
|
-
zeitwerk (2.8.3)
|
|
182
|
-
|
|
183
|
-
PLATFORMS
|
|
184
|
-
aarch64-linux-gnu
|
|
185
|
-
aarch64-linux-musl
|
|
186
|
-
aarch64-mingw-ucrt
|
|
187
|
-
arm-linux-gnu
|
|
188
|
-
arm-linux-musl
|
|
189
|
-
arm64-darwin
|
|
190
|
-
ruby
|
|
191
|
-
x86-linux-gnu
|
|
192
|
-
x86-linux-musl
|
|
193
|
-
x86_64-darwin
|
|
194
|
-
x86_64-linux
|
|
195
|
-
x86_64-linux-gnu
|
|
196
|
-
x86_64-linux-musl
|
|
197
|
-
|
|
198
|
-
DEPENDENCIES
|
|
199
|
-
guard
|
|
200
|
-
guard-rspec
|
|
201
|
-
guard-rubocop
|
|
202
|
-
matrix
|
|
203
|
-
rspec (~> 3.13.2)
|
|
204
|
-
rubocop
|
|
205
|
-
rubocop-performance
|
|
206
|
-
rubocop-rspec
|
|
207
|
-
webtranslateit-payday!
|
|
208
|
-
|
|
209
|
-
BUNDLED WITH
|
|
210
|
-
4.0.18
|
data/Guardfile
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
guard :rspec, cmd: 'bundle exec rspec --color --format progress' do
|
|
4
|
-
watch(%r{^spec/.+_spec\.rb$})
|
|
5
|
-
watch('spec/spec_helper.rb') { 'spec' }
|
|
6
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
guard :rubocop do
|
|
10
|
-
watch(/.+\.rb$/)
|
|
11
|
-
watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
|
|
12
|
-
end
|
data/Rakefile
DELETED
|
Binary file
|