webtranslateit-payday 1.7.3 → 1.7.4

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: 79e897436dac18ec0146ca7c556d2a1fd9a614fdc78b3b2fe4da6cff769184a5
4
- data.tar.gz: 77f740456d34e88037867ca6890110bb39014073d476fedffed124fd698a844f
3
+ metadata.gz: 655aa13a2a0c729008a5bce34e5e8de25b5fafd1f3e571995addf916413f74f8
4
+ data.tar.gz: 7d78b88d6886fbfceb45377b0c25c3cdbc6b3886a33003460cc2f68490004f0c
5
5
  SHA512:
6
- metadata.gz: 3253e3a0d51b8125df8fb0ee6341c18c320af4dbec9361376437082fc101b7552f8d25619f6d5ab79f914a2745c9a25a8952acce2a7cdeddbc71feeb7032afdf
7
- data.tar.gz: 6af84ba49bb0171f4c969a13707b743e400694e897bdbf27ce494b2e1d18b7570ccee60da7c90789941c5e1669e82bde3d40b44b6088c772b3064aa30dd1bd91
6
+ metadata.gz: 36a5311dd8d6858c70a8b00a47bc675beb3de3c72827e0b5eb330f7113566051723dfa1f9cdbe636d745363bd02b3458e861803c2d0f481e7269805ae0c2d95e
7
+ data.tar.gz: 5342f87b7e7d2568bc50141463557e8929ae1f678cdbdfb7776cdeb560fdaf215bd8b4f7b4fa8588b861befe38330225777a94783af558434ab671f3440cb2f7
@@ -14,10 +14,10 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
  strategy:
16
16
  matrix:
17
- ruby-version: ['3.2', '3.3', '3.4']
17
+ ruby-version: ['3.2', '3.3', '3.4', '4.0']
18
18
 
19
19
  steps:
20
- - uses: actions/checkout@v6
20
+ - uses: actions/checkout@v7
21
21
  - name: Set up Ruby
22
22
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
23
23
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
@@ -35,7 +35,7 @@ jobs:
35
35
 
36
36
  steps:
37
37
  - name: Checkout repository
38
- uses: actions/checkout@v6
38
+ uses: actions/checkout@v7
39
39
 
40
40
  - name: Install ruby and gems
41
41
  uses: ruby/setup-ruby@v1
@@ -5,11 +5,6 @@ on:
5
5
  # branches to consider in the event; optional, defaults to all
6
6
  branches:
7
7
  - main
8
- # pull_request event is required only for autolabeler
9
- pull_request:
10
- # Only following types are handled by the action, but one can default to all as well
11
- types: [opened, reopened, synchronize]
12
-
13
8
  jobs:
14
9
  update_release_draft:
15
10
  runs-on: ubuntu-latest
@@ -20,7 +15,7 @@ jobs:
20
15
  # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
21
16
 
22
17
  # Drafts your next Release notes as Pull Requests are merged into "master"
23
- - uses: release-drafter/release-drafter@v6
18
+ - uses: release-drafter/release-drafter@v7
24
19
  # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
25
20
  # with:
26
21
  # config-name: my-config.yml
data/.rubocop.yml CHANGED
@@ -7,7 +7,7 @@ inherit_from:
7
7
  - .rubocop_todo.yml
8
8
 
9
9
  AllCops:
10
- TargetRubyVersion: 3.1
10
+ TargetRubyVersion: 3.2
11
11
  Exclude:
12
12
  - lib/generators/**/*
13
13
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.7.4 (2026-08-13)
4
+
5
+ * Pass `enable_web_requests: false` when rendering SVG logos. Logos are read from local files, so nothing needs fetching over the network. This silences prawn-svg's deprecation warning and keeps behaviour stable when prawn-svg 1.0 flips the default to `false`.
6
+
3
7
  ## 1.7.3 (2026-02-16)
4
8
 
5
9
  * Add retention support (e.g. Spanish IRPF). Set `retention_rate` on an invoice to apply a post-tax deduction calculated as a percentage of the subtotal. The retention amount is displayed as a negative line in the PDF and subtracted from the total. Customize the label with `retention_description` or via the `payday.invoice.retention` i18n key.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webtranslateit-payday (1.7.3)
4
+ webtranslateit-payday (1.7.4)
5
5
  activesupport (>= 7, < 9)
6
6
  i18n (~> 1.12, < 2)
7
7
  money (>= 6.16, < 8.0)
@@ -14,38 +14,47 @@ PATH
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- activesupport (7.2.3)
17
+ activesupport (8.1.3.1)
18
18
  base64
19
- benchmark (>= 0.3)
20
19
  bigdecimal
21
20
  concurrent-ruby (~> 1.0, >= 1.3.1)
22
21
  connection_pool (>= 2.2.5)
23
22
  drb
24
23
  i18n (>= 1.6, < 2)
24
+ json
25
25
  logger (>= 1.4.2)
26
26
  minitest (>= 5.1)
27
27
  securerandom (>= 0.3)
28
28
  tzinfo (~> 2.0, >= 2.0.5)
29
- addressable (2.8.7)
30
- public_suffix (>= 2.0.2, < 7.0)
29
+ uri (>= 0.13.1)
30
+ addressable (2.9.0)
31
+ public_suffix (>= 2.0.2, < 8.0)
31
32
  ast (2.4.3)
32
33
  base64 (0.3.0)
33
- benchmark (0.5.0)
34
34
  bigdecimal (3.3.1)
35
35
  chunky_png (1.4.0)
36
36
  coderay (1.1.3)
37
- concurrent-ruby (1.3.6)
38
- connection_pool (2.5.4)
39
- css_parser (1.21.1)
37
+ concurrent-ruby (1.3.8)
38
+ connection_pool (3.0.2)
39
+ css_parser (1.22.0)
40
40
  addressable
41
41
  diff-lcs (1.6.2)
42
42
  drb (2.2.3)
43
- ffi (1.17.3-arm64-darwin)
44
- ffi (1.17.3-x86_64-darwin)
45
- ffi (1.17.3-x86_64-linux-gnu)
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)
46
55
  formatador (1.2.3)
47
56
  reline
48
- guard (2.20.1)
57
+ guard (2.20.2)
49
58
  formatador (>= 0.2.4)
50
59
  listen (>= 2.7, < 4.0)
51
60
  logger (~> 1.6)
@@ -63,11 +72,11 @@ GEM
63
72
  guard-rubocop (1.5.0)
64
73
  guard (~> 2.0)
65
74
  rubocop (< 2.0)
66
- i18n (1.14.8)
75
+ i18n (1.15.2)
67
76
  concurrent-ruby (~> 1.0)
68
77
  io-console (0.8.2)
69
- json (2.18.1)
70
- language_server-protocol (3.17.0.5)
78
+ json (2.21.2)
79
+ language_server-protocol (3.17.0.6)
71
80
  lint_roller (1.1.0)
72
81
  listen (3.10.0)
73
82
  logger
@@ -77,16 +86,18 @@ GEM
77
86
  lumberjack (1.4.2)
78
87
  matrix (0.4.3)
79
88
  method_source (1.1.0)
80
- minitest (5.26.0)
81
- money (7.0.2)
89
+ minitest (6.0.6)
90
+ drb (~> 2.0)
91
+ prism (~> 1.5)
92
+ money (7.1.1)
82
93
  bigdecimal
83
94
  i18n (~> 1.9)
84
95
  nenv (0.3.0)
85
96
  notiffany (0.1.3)
86
97
  nenv (~> 0.1)
87
98
  shellany (~> 0.0)
88
- parallel (1.27.0)
89
- parser (3.3.10.1)
99
+ parallel (1.28.0)
100
+ parser (3.3.12.0)
90
101
  ast (~> 2.4.1)
91
102
  racc
92
103
  pdf-core (0.10.0)
@@ -94,8 +105,8 @@ GEM
94
105
  matrix (~> 0.4)
95
106
  pdf-core (~> 0.10.0)
96
107
  ttfunk (~> 1.8)
97
- prawn-svg (0.38.1)
98
- css_parser (~> 1.6)
108
+ prawn-svg (0.40.3)
109
+ css_parser (>= 1.17.1, < 4)
99
110
  matrix (~> 0.4.2)
100
111
  prawn (>= 0.11.1, < 3)
101
112
  rexml (>= 3.4.2, < 4)
@@ -106,20 +117,20 @@ GEM
106
117
  coderay (~> 1.1)
107
118
  method_source (~> 1.0)
108
119
  reline (>= 0.6.0)
109
- public_suffix (6.0.2)
120
+ public_suffix (7.0.5)
110
121
  racc (1.8.1)
111
122
  rainbow (3.1.1)
112
123
  rb-fsevent (0.11.2)
113
124
  rb-inotify (0.11.1)
114
125
  ffi (~> 1.0)
115
- regexp_parser (2.11.3)
126
+ regexp_parser (2.12.0)
116
127
  reline (0.6.3)
117
128
  io-console (~> 0.5)
118
129
  rexml (3.4.4)
119
- rqrcode (3.1.1)
130
+ rqrcode (3.2.0)
120
131
  chunky_png (~> 1.0)
121
132
  rqrcode_core (~> 2.0)
122
- rqrcode_core (2.0.1)
133
+ rqrcode_core (2.1.0)
123
134
  rspec (3.13.2)
124
135
  rspec-core (~> 3.13.0)
125
136
  rspec-expectations (~> 3.13.0)
@@ -133,27 +144,28 @@ GEM
133
144
  diff-lcs (>= 1.2.0, < 2.0)
134
145
  rspec-support (~> 3.13.0)
135
146
  rspec-support (3.13.6)
136
- rubocop (1.84.2)
147
+ rubocop (1.89.0)
137
148
  json (~> 2.3)
138
149
  language_server-protocol (~> 3.17.0.2)
139
150
  lint_roller (~> 1.1.0)
140
- parallel (~> 1.10)
151
+ parallel (>= 1.10)
141
152
  parser (>= 3.3.0.2)
142
153
  rainbow (>= 2.2.2, < 4.0)
143
154
  regexp_parser (>= 2.9.3, < 3.0)
144
155
  rubocop-ast (>= 1.49.0, < 2.0)
145
156
  ruby-progressbar (~> 1.7)
146
157
  unicode-display_width (>= 2.4.0, < 4.0)
147
- rubocop-ast (1.49.0)
158
+ rubocop-ast (1.50.0)
148
159
  parser (>= 3.3.7.2)
149
160
  prism (~> 1.7)
150
161
  rubocop-performance (1.26.1)
151
162
  lint_roller (~> 1.1)
152
163
  rubocop (>= 1.75.0, < 2.0)
153
164
  rubocop-ast (>= 1.47.1, < 2.0)
154
- rubocop-rspec (3.9.0)
165
+ rubocop-rspec (3.10.2)
155
166
  lint_roller (~> 1.1)
156
- rubocop (~> 1.81)
167
+ regexp_parser (>= 2.0)
168
+ rubocop (~> 1.86, >= 1.86.2)
157
169
  ruby-progressbar (1.13.0)
158
170
  securerandom (0.4.1)
159
171
  shellany (0.0.1)
@@ -165,16 +177,23 @@ GEM
165
177
  unicode-display_width (3.2.0)
166
178
  unicode-emoji (~> 4.1)
167
179
  unicode-emoji (4.2.0)
168
- zeitwerk (2.7.1)
180
+ uri (1.1.1)
181
+ zeitwerk (2.8.3)
169
182
 
170
183
  PLATFORMS
171
- arm64-darwin-21
172
- arm64-darwin-22
173
- arm64-darwin-23
174
- arm64-darwin-24
175
- arm64-darwin-25
176
- x86_64-darwin-21
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
177
194
  x86_64-linux
195
+ x86_64-linux-gnu
196
+ x86_64-linux-musl
178
197
 
179
198
  DEPENDENCIES
180
199
  guard
@@ -188,4 +207,4 @@ DEPENDENCIES
188
207
  webtranslateit-payday!
189
208
 
190
209
  BUNDLED WITH
191
- 2.6.2
210
+ 4.0.18
@@ -80,7 +80,11 @@ module Payday
80
80
  end
81
81
 
82
82
  if File.extname(image) == '.svg'
83
- logo_info = pdf.svg(File.read(image), at: pdf.bounds.top_left, width: width, height: height)
83
+ # Logos are read from local files, so there is nothing to fetch over the network.
84
+ # Passing this explicitly also silences prawn-svg's deprecation warning and keeps
85
+ # behaviour stable when prawn-svg 1.0 flips the default to false.
86
+ logo_info = pdf.svg(File.read(image), at: pdf.bounds.top_left, width: width, height: height,
87
+ enable_web_requests: false)
84
88
  logo_height = logo_info[:height]
85
89
  else
86
90
  logo_info = pdf.image(image, at: pdf.bounds.top_left, width: width, height: height)
data/payday.gemspec CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'webtranslateit-payday'
5
- s.version = '1.7.3'
6
- s.required_ruby_version = '>= 3.1'
5
+ s.version = '1.7.4'
6
+ s.required_ruby_version = '>= 3.2'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Alan Johnson', 'Edouard Briere']
9
9
  s.email = ['edouard@webtranslateit.com']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtranslateit-payday
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Johnson
@@ -236,14 +236,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
236
236
  requirements:
237
237
  - - ">="
238
238
  - !ruby/object:Gem::Version
239
- version: '3.1'
239
+ version: '3.2'
240
240
  required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  requirements:
242
242
  - - ">="
243
243
  - !ruby/object:Gem::Version
244
244
  version: '0'
245
245
  requirements: []
246
- rubygems_version: 3.6.9
246
+ rubygems_version: 4.0.16
247
247
  specification_version: 4
248
248
  summary: A simple library for rendering invoices.
249
249
  test_files: []