umbrellio-utils 1.7.1 → 1.8.1

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: 72c716ebf78b007bf1dc966d953ca6563a145158111e22bffeab0e5f0dd80534
4
- data.tar.gz: fd2601b9ccacc05ab08c1207a225f4a64f7d4e4b8a10182dda321eac4f1bc842
3
+ metadata.gz: 942e89d83360726335baf4deb039b6e93910a11ec1b69ec7eefa0e7974813d3f
4
+ data.tar.gz: df30fcde5d009fbec1b751fdbf204727848d9d291d9bd78ec07dfd71dbbaec06
5
5
  SHA512:
6
- metadata.gz: 5cb0504965e332ae3abaed1579b93ee0abe8772443b59422fe1f2425eb105569b29caa636f4a98c9777dee7d5f693d94257b309ba690f47b3384cc0f6104305a
7
- data.tar.gz: e89db44cd27f225d694212863bb8439012ef4723218f1840dff4ba242ed8638bebcedfab52b93787c2a727e6504ae03c61be6946fe89405160513bd28f5de51b
6
+ metadata.gz: d590659a0e8dd7720ab627e269e2497f64da3be1d0a3db5bfd351da26344aab3e602e1e43dce37ced9ed948747c981eb8aec5cfb7285c631028d7ac34a746b51
7
+ data.tar.gz: bb76e7efaca38965d86d72cc95ef7a723b87bc8199c1b8cf5c7dbcb763af33729a2645ff5278adaf33c10266f2ddbf2104d878ebb40e091ed45064e0f2c58361
@@ -15,7 +15,7 @@ jobs:
15
15
  strategy:
16
16
  fail-fast: false
17
17
  matrix:
18
- ruby: ["3.1", "3.2", "3.3"]
18
+ ruby: ["3.1", "3.2", "3.3", "3.4"]
19
19
 
20
20
  services:
21
21
  postgres:
@@ -54,7 +54,7 @@ jobs:
54
54
  - name: Run specs
55
55
  run: bundle exec ci-helper RunSpecs
56
56
 
57
- - name: Coveralls
58
- uses: coverallsapp/github-action@master
59
- with:
60
- github-token: ${{ secrets.GITHUB_TOKEN }}
57
+ # - name: Coveralls
58
+ # uses: coverallsapp/github-action@master
59
+ # with:
60
+ # github-token: ${{ secrets.GITHUB_TOKEN }}
data/.rubocop.yml CHANGED
@@ -25,3 +25,6 @@ Style/HashConversion:
25
25
 
26
26
  Naming/VariableNumber:
27
27
  CheckSymbols: false
28
+
29
+ Naming/PredicateMethod:
30
+ Enabled: false
data/Gemfile.lock CHANGED
@@ -1,35 +1,35 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- umbrellio-utils (1.7.1)
4
+ umbrellio-utils (1.8.1)
5
5
  memery (~> 1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (7.2.1)
11
- actionpack (= 7.2.1)
12
- activesupport (= 7.2.1)
10
+ actioncable (7.2.2.2)
11
+ actionpack (= 7.2.2.2)
12
+ activesupport (= 7.2.2.2)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
15
  zeitwerk (~> 2.6)
16
- actionmailbox (7.2.1)
17
- actionpack (= 7.2.1)
18
- activejob (= 7.2.1)
19
- activerecord (= 7.2.1)
20
- activestorage (= 7.2.1)
21
- activesupport (= 7.2.1)
16
+ actionmailbox (7.2.2.2)
17
+ actionpack (= 7.2.2.2)
18
+ activejob (= 7.2.2.2)
19
+ activerecord (= 7.2.2.2)
20
+ activestorage (= 7.2.2.2)
21
+ activesupport (= 7.2.2.2)
22
22
  mail (>= 2.8.0)
23
- actionmailer (7.2.1)
24
- actionpack (= 7.2.1)
25
- actionview (= 7.2.1)
26
- activejob (= 7.2.1)
27
- activesupport (= 7.2.1)
23
+ actionmailer (7.2.2.2)
24
+ actionpack (= 7.2.2.2)
25
+ actionview (= 7.2.2.2)
26
+ activejob (= 7.2.2.2)
27
+ activesupport (= 7.2.2.2)
28
28
  mail (>= 2.8.0)
29
29
  rails-dom-testing (~> 2.2)
30
- actionpack (7.2.1)
31
- actionview (= 7.2.1)
32
- activesupport (= 7.2.1)
30
+ actionpack (7.2.2.2)
31
+ actionview (= 7.2.2.2)
32
+ activesupport (= 7.2.2.2)
33
33
  nokogiri (>= 1.8.5)
34
34
  racc
35
35
  rack (>= 2.2.4, < 3.2)
@@ -38,36 +38,37 @@ GEM
38
38
  rails-dom-testing (~> 2.2)
39
39
  rails-html-sanitizer (~> 1.6)
40
40
  useragent (~> 0.16)
41
- actiontext (7.2.1)
42
- actionpack (= 7.2.1)
43
- activerecord (= 7.2.1)
44
- activestorage (= 7.2.1)
45
- activesupport (= 7.2.1)
41
+ actiontext (7.2.2.2)
42
+ actionpack (= 7.2.2.2)
43
+ activerecord (= 7.2.2.2)
44
+ activestorage (= 7.2.2.2)
45
+ activesupport (= 7.2.2.2)
46
46
  globalid (>= 0.6.0)
47
47
  nokogiri (>= 1.8.5)
48
- actionview (7.2.1)
49
- activesupport (= 7.2.1)
48
+ actionview (7.2.2.2)
49
+ activesupport (= 7.2.2.2)
50
50
  builder (~> 3.1)
51
51
  erubi (~> 1.11)
52
52
  rails-dom-testing (~> 2.2)
53
53
  rails-html-sanitizer (~> 1.6)
54
- activejob (7.2.1)
55
- activesupport (= 7.2.1)
54
+ activejob (7.2.2.2)
55
+ activesupport (= 7.2.2.2)
56
56
  globalid (>= 0.3.6)
57
- activemodel (7.2.1)
58
- activesupport (= 7.2.1)
59
- activerecord (7.2.1)
60
- activemodel (= 7.2.1)
61
- activesupport (= 7.2.1)
57
+ activemodel (7.2.2.2)
58
+ activesupport (= 7.2.2.2)
59
+ activerecord (7.2.2.2)
60
+ activemodel (= 7.2.2.2)
61
+ activesupport (= 7.2.2.2)
62
62
  timeout (>= 0.4.0)
63
- activestorage (7.2.1)
64
- actionpack (= 7.2.1)
65
- activejob (= 7.2.1)
66
- activerecord (= 7.2.1)
67
- activesupport (= 7.2.1)
63
+ activestorage (7.2.2.2)
64
+ actionpack (= 7.2.2.2)
65
+ activejob (= 7.2.2.2)
66
+ activerecord (= 7.2.2.2)
67
+ activesupport (= 7.2.2.2)
68
68
  marcel (~> 1.0)
69
- activesupport (7.2.1)
69
+ activesupport (7.2.2.2)
70
70
  base64
71
+ benchmark (>= 0.3)
71
72
  bigdecimal
72
73
  concurrent-ruby (~> 1.0, >= 1.3.1)
73
74
  connection_pool (>= 2.2.5)
@@ -79,64 +80,77 @@ GEM
79
80
  tzinfo (~> 2.0, >= 2.0.5)
80
81
  addressable (2.8.7)
81
82
  public_suffix (>= 2.0.2, < 7.0)
82
- amazing_print (1.6.0)
83
- amq-protocol (2.3.2)
84
- ast (2.4.2)
85
- base64 (0.2.0)
86
- bigdecimal (3.1.8)
83
+ amazing_print (1.8.1)
84
+ amq-protocol (2.3.4)
85
+ ast (2.4.3)
86
+ base64 (0.3.0)
87
+ benchmark (0.4.1)
88
+ bigdecimal (3.2.3)
87
89
  builder (3.3.0)
88
- bunny (2.23.0)
89
- amq-protocol (~> 2.3, >= 2.3.1)
90
+ bunny (2.24.0)
91
+ amq-protocol (~> 2.3)
90
92
  sorted_set (~> 1, >= 1.0.2)
91
- ci-helper (0.6.0)
93
+ cgi (0.5.0)
94
+ ci-helper (0.7.0)
92
95
  colorize (~> 1.1)
93
96
  dry-inflector (~> 1.0)
94
97
  umbrellio-sequel-plugins (~> 0.14)
95
98
  coderay (1.1.3)
96
99
  colorize (1.1.0)
97
- concurrent-ruby (1.3.4)
98
- connection_pool (2.4.1)
100
+ concurrent-ruby (1.3.5)
101
+ connection_pool (2.5.4)
99
102
  crass (1.0.6)
100
- date (3.3.4)
101
- diff-lcs (1.5.1)
103
+ date (3.4.1)
104
+ diff-lcs (1.6.2)
102
105
  docile (1.4.1)
103
106
  domain_name (0.6.20240107)
104
- drb (2.2.1)
105
- dry-inflector (1.1.0)
106
- erubi (1.13.0)
107
- ffi (1.17.0)
108
- ffi (1.17.0-arm64-darwin)
109
- ffi (1.17.0-x86_64-darwin)
110
- ffi (1.17.0-x86_64-linux-gnu)
107
+ drb (2.2.3)
108
+ dry-inflector (1.2.0)
109
+ erb (4.0.4)
110
+ cgi (>= 0.3.3)
111
+ erubi (1.13.1)
112
+ ffi (1.17.2-aarch64-linux-gnu)
113
+ ffi (1.17.2-aarch64-linux-musl)
114
+ ffi (1.17.2-arm-linux-gnu)
115
+ ffi (1.17.2-arm-linux-musl)
116
+ ffi (1.17.2-arm64-darwin)
117
+ ffi (1.17.2-x86_64-darwin)
118
+ ffi (1.17.2-x86_64-linux-gnu)
119
+ ffi (1.17.2-x86_64-linux-musl)
111
120
  ffi-compiler (1.3.2)
112
121
  ffi (>= 1.15.5)
113
122
  rake
114
- globalid (1.2.1)
123
+ globalid (1.3.0)
115
124
  activesupport (>= 6.1)
116
- http (5.2.0)
125
+ http (5.3.1)
117
126
  addressable (~> 2.8)
118
- base64 (~> 0.1)
119
127
  http-cookie (~> 1.0)
120
128
  http-form_data (~> 2.2)
121
129
  llhttp-ffi (~> 0.5.0)
122
- http-cookie (1.0.7)
130
+ http-cookie (1.1.0)
123
131
  domain_name (~> 0.5)
124
132
  http-form_data (2.3.0)
125
- i18n (1.14.5)
133
+ i18n (1.14.7)
126
134
  concurrent-ruby (~> 1.0)
127
- io-console (0.7.2)
128
- irb (1.14.0)
135
+ io-console (0.8.1)
136
+ irb (1.15.2)
137
+ pp (>= 0.6.0)
129
138
  rdoc (>= 4.0.0)
130
139
  reline (>= 0.4.2)
131
- json (2.7.2)
132
- lamian (1.10.0)
133
- rails (>= 4.2)
134
- language_server-protocol (3.17.0.3)
135
- llhttp-ffi (0.5.0)
140
+ json (2.15.0)
141
+ kicks (3.2.0)
142
+ bunny (~> 2.19)
143
+ concurrent-ruby (~> 1.0)
144
+ rake (>= 12.3, < 14.0)
145
+ serverengine (~> 2.1)
146
+ thor
147
+ language_server-protocol (3.17.0.5)
148
+ lint_roller (1.1.0)
149
+ llhttp-ffi (0.5.1)
136
150
  ffi-compiler (~> 1.0)
137
151
  rake (~> 13.0)
138
- logger (1.6.1)
139
- loofah (2.22.0)
152
+ logger (1.7.0)
153
+ loofah (2.24.1)
140
154
  crass (~> 1.0.2)
141
155
  nokogiri (>= 1.12.0)
142
156
  mail (2.8.1)
@@ -144,218 +158,231 @@ GEM
144
158
  net-imap
145
159
  net-pop
146
160
  net-smtp
147
- marcel (1.0.4)
148
- memery (1.5.0)
149
- ruby2_keywords (~> 0.0.2)
161
+ marcel (1.1.0)
162
+ memery (1.7.0)
150
163
  method_source (1.1.0)
151
164
  mini_mime (1.1.5)
152
- mini_portile2 (2.8.7)
153
- minitest (5.25.1)
154
- net-imap (0.4.16)
165
+ minitest (5.25.5)
166
+ net-imap (0.5.10)
155
167
  date
156
168
  net-protocol
157
169
  net-pop (0.1.2)
158
170
  net-protocol
159
171
  net-protocol (0.2.2)
160
172
  timeout
161
- net-smtp (0.5.0)
173
+ net-smtp (0.5.1)
162
174
  net-protocol
163
- nio4r (2.7.3)
164
- nokogiri (1.16.7)
165
- mini_portile2 (~> 2.8.2)
175
+ nio4r (2.7.4)
176
+ nokogiri (1.18.10-aarch64-linux-gnu)
177
+ racc (~> 1.4)
178
+ nokogiri (1.18.10-aarch64-linux-musl)
179
+ racc (~> 1.4)
180
+ nokogiri (1.18.10-arm-linux-gnu)
181
+ racc (~> 1.4)
182
+ nokogiri (1.18.10-arm-linux-musl)
183
+ racc (~> 1.4)
184
+ nokogiri (1.18.10-arm64-darwin)
166
185
  racc (~> 1.4)
167
- nokogiri (1.16.7-arm64-darwin)
186
+ nokogiri (1.18.10-x86_64-darwin)
168
187
  racc (~> 1.4)
169
- nokogiri (1.16.7-x86_64-darwin)
188
+ nokogiri (1.18.10-x86_64-linux-gnu)
170
189
  racc (~> 1.4)
171
- nokogiri (1.16.7-x86_64-linux)
190
+ nokogiri (1.18.10-x86_64-linux-musl)
172
191
  racc (~> 1.4)
173
192
  nori (2.7.1)
174
193
  bigdecimal
175
- parallel (1.26.3)
176
- parser (3.3.5.0)
194
+ parallel (1.27.0)
195
+ parser (3.3.9.0)
177
196
  ast (~> 2.4.1)
178
197
  racc
179
- pg (1.5.7)
180
- pry (0.14.2)
198
+ pg (1.6.2)
199
+ pg (1.6.2-aarch64-linux)
200
+ pg (1.6.2-aarch64-linux-musl)
201
+ pg (1.6.2-arm64-darwin)
202
+ pg (1.6.2-x86_64-darwin)
203
+ pg (1.6.2-x86_64-linux)
204
+ pg (1.6.2-x86_64-linux-musl)
205
+ pp (0.6.2)
206
+ prettyprint
207
+ prettyprint (0.2.0)
208
+ prism (1.5.1)
209
+ pry (0.15.2)
181
210
  coderay (~> 1.1)
182
211
  method_source (~> 1.0)
183
- psych (5.1.2)
212
+ psych (5.2.6)
213
+ date
184
214
  stringio
185
- public_suffix (6.0.1)
186
- rabbit_messaging (0.15.0)
215
+ public_suffix (6.0.2)
216
+ rabbit_messaging (1.7.0)
187
217
  bunny (~> 2.0)
188
- lamian
189
- rails (>= 5.2)
190
- sneakers (~> 2.0)
191
- tainbox
218
+ kicks
192
219
  racc (1.8.1)
193
- rack (3.1.7)
194
- rack-session (2.0.0)
220
+ rack (3.1.16)
221
+ rack-session (2.1.1)
222
+ base64 (>= 0.1.0)
195
223
  rack (>= 3.0.0)
196
- rack-test (2.1.0)
224
+ rack-test (2.2.0)
197
225
  rack (>= 1.3)
198
- rackup (2.1.0)
226
+ rackup (2.2.1)
199
227
  rack (>= 3)
200
- webrick (~> 1.8)
201
- rails (7.2.1)
202
- actioncable (= 7.2.1)
203
- actionmailbox (= 7.2.1)
204
- actionmailer (= 7.2.1)
205
- actionpack (= 7.2.1)
206
- actiontext (= 7.2.1)
207
- actionview (= 7.2.1)
208
- activejob (= 7.2.1)
209
- activemodel (= 7.2.1)
210
- activerecord (= 7.2.1)
211
- activestorage (= 7.2.1)
212
- activesupport (= 7.2.1)
228
+ rails (7.2.2.2)
229
+ actioncable (= 7.2.2.2)
230
+ actionmailbox (= 7.2.2.2)
231
+ actionmailer (= 7.2.2.2)
232
+ actionpack (= 7.2.2.2)
233
+ actiontext (= 7.2.2.2)
234
+ actionview (= 7.2.2.2)
235
+ activejob (= 7.2.2.2)
236
+ activemodel (= 7.2.2.2)
237
+ activerecord (= 7.2.2.2)
238
+ activestorage (= 7.2.2.2)
239
+ activesupport (= 7.2.2.2)
213
240
  bundler (>= 1.15.0)
214
- railties (= 7.2.1)
215
- rails-dom-testing (2.2.0)
241
+ railties (= 7.2.2.2)
242
+ rails-dom-testing (2.3.0)
216
243
  activesupport (>= 5.0.0)
217
244
  minitest
218
245
  nokogiri (>= 1.6)
219
- rails-html-sanitizer (1.6.0)
246
+ rails-html-sanitizer (1.6.2)
220
247
  loofah (~> 2.21)
221
- nokogiri (~> 1.14)
222
- railties (7.2.1)
223
- actionpack (= 7.2.1)
224
- activesupport (= 7.2.1)
248
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
249
+ railties (7.2.2.2)
250
+ actionpack (= 7.2.2.2)
251
+ activesupport (= 7.2.2.2)
225
252
  irb (~> 1.13)
226
253
  rackup (>= 1.0.0)
227
254
  rake (>= 12.2)
228
255
  thor (~> 1.0, >= 1.2.2)
229
256
  zeitwerk (~> 2.6)
230
257
  rainbow (3.1.1)
231
- rake (13.2.1)
258
+ rake (13.3.0)
232
259
  rbtree (0.4.6)
233
- rdoc (6.7.0)
260
+ rdoc (6.14.2)
261
+ erb
234
262
  psych (>= 4.0.0)
235
- regexp_parser (2.9.2)
236
- reline (0.5.10)
263
+ regexp_parser (2.11.3)
264
+ reline (0.6.2)
237
265
  io-console (~> 0.5)
238
- rexml (3.3.7)
239
- rspec (3.13.0)
266
+ rspec (3.13.1)
240
267
  rspec-core (~> 3.13.0)
241
268
  rspec-expectations (~> 3.13.0)
242
269
  rspec-mocks (~> 3.13.0)
243
- rspec-core (3.13.1)
270
+ rspec-core (3.13.5)
244
271
  rspec-support (~> 3.13.0)
245
- rspec-expectations (3.13.2)
272
+ rspec-expectations (3.13.5)
246
273
  diff-lcs (>= 1.2.0, < 2.0)
247
274
  rspec-support (~> 3.13.0)
248
275
  rspec-json_matcher (0.2.0)
249
276
  amazing_print
250
277
  json
251
- rspec-mocks (3.13.1)
278
+ rspec-mocks (3.13.5)
252
279
  diff-lcs (>= 1.2.0, < 2.0)
253
280
  rspec-support (~> 3.13.0)
254
- rspec-support (3.13.1)
255
- rubocop (1.63.5)
281
+ rspec-support (3.13.6)
282
+ rubocop (1.80.2)
256
283
  json (~> 2.3)
257
- language_server-protocol (>= 3.17.0)
284
+ language_server-protocol (~> 3.17.0.2)
285
+ lint_roller (~> 1.1.0)
258
286
  parallel (~> 1.10)
259
287
  parser (>= 3.3.0.2)
260
288
  rainbow (>= 2.2.2, < 4.0)
261
- regexp_parser (>= 1.8, < 3.0)
262
- rexml (>= 3.2.5, < 4.0)
263
- rubocop-ast (>= 1.31.1, < 2.0)
289
+ regexp_parser (>= 2.9.3, < 3.0)
290
+ rubocop-ast (>= 1.46.0, < 2.0)
264
291
  ruby-progressbar (~> 1.7)
265
- unicode-display_width (>= 2.4.0, < 3.0)
266
- rubocop-ast (1.32.3)
267
- parser (>= 3.3.1.0)
268
- rubocop-capybara (2.21.0)
269
- rubocop (~> 1.41)
270
- rubocop-config-umbrellio (1.63.0.93)
271
- rubocop (~> 1.63.0)
272
- rubocop-performance (~> 1.21.0)
273
- rubocop-rails (~> 2.24.0)
274
- rubocop-rake (~> 0.6.0)
275
- rubocop-rspec (~> 2.29.0)
276
- rubocop-sequel (~> 0.3.3)
277
- rubocop-factory_bot (2.26.1)
278
- rubocop (~> 1.61)
279
- rubocop-performance (1.21.1)
280
- rubocop (>= 1.48.1, < 2.0)
281
- rubocop-ast (>= 1.31.1, < 2.0)
282
- rubocop-rails (2.24.1)
292
+ unicode-display_width (>= 2.4.0, < 4.0)
293
+ rubocop-ast (1.47.1)
294
+ parser (>= 3.3.7.2)
295
+ prism (~> 1.4)
296
+ rubocop-config-umbrellio (1.80.107)
297
+ rubocop (~> 1.80.0)
298
+ rubocop-factory_bot (~> 2.27.0)
299
+ rubocop-performance (~> 1.26.0)
300
+ rubocop-rails (~> 2.33.0)
301
+ rubocop-rake (~> 0.7.0)
302
+ rubocop-rspec (~> 3.7.0)
303
+ rubocop-sequel (~> 0.4.0)
304
+ rubocop-factory_bot (2.27.1)
305
+ lint_roller (~> 1.1)
306
+ rubocop (~> 1.72, >= 1.72.1)
307
+ rubocop-performance (1.26.0)
308
+ lint_roller (~> 1.1)
309
+ rubocop (>= 1.75.0, < 2.0)
310
+ rubocop-ast (>= 1.44.0, < 2.0)
311
+ rubocop-rails (2.33.4)
283
312
  activesupport (>= 4.2.0)
313
+ lint_roller (~> 1.1)
284
314
  rack (>= 1.1)
285
- rubocop (>= 1.33.0, < 2.0)
286
- rubocop-ast (>= 1.31.1, < 2.0)
287
- rubocop-rake (0.6.0)
288
- rubocop (~> 1.0)
289
- rubocop-rspec (2.29.2)
290
- rubocop (~> 1.40)
291
- rubocop-capybara (~> 2.17)
292
- rubocop-factory_bot (~> 2.22)
293
- rubocop-rspec_rails (~> 2.28)
294
- rubocop-rspec_rails (2.29.1)
295
- rubocop (~> 1.61)
296
- rubocop-sequel (0.3.4)
297
- rubocop (~> 1.0)
315
+ rubocop (>= 1.75.0, < 2.0)
316
+ rubocop-ast (>= 1.44.0, < 2.0)
317
+ rubocop-rake (0.7.1)
318
+ lint_roller (~> 1.1)
319
+ rubocop (>= 1.72.1)
320
+ rubocop-rspec (3.7.0)
321
+ lint_roller (~> 1.1)
322
+ rubocop (~> 1.72, >= 1.72.1)
323
+ rubocop-sequel (0.4.1)
324
+ lint_roller (~> 1.1)
325
+ rubocop (>= 1.72.1, < 2)
298
326
  ruby-progressbar (1.13.0)
299
- ruby2_keywords (0.0.5)
300
- securerandom (0.3.1)
327
+ securerandom (0.4.1)
301
328
  self_data (1.3.0)
302
- semantic_logger (4.16.0)
329
+ semantic_logger (4.17.0)
303
330
  concurrent-ruby (~> 1.0)
304
- sequel (5.84.0)
331
+ sequel (5.96.0)
305
332
  bigdecimal
306
- sequel-batches (2.0.2)
333
+ sequel-batches (2.0.3)
307
334
  sequel
308
- serverengine (2.0.7)
335
+ serverengine (2.4.0)
336
+ base64 (~> 0.1)
337
+ logger (~> 1.4)
309
338
  sigdump (~> 0.2.2)
310
- set (1.1.0)
339
+ set (1.1.2)
311
340
  sigdump (0.2.5)
312
341
  simplecov (0.22.0)
313
342
  docile (~> 1.1)
314
343
  simplecov-html (~> 0.11)
315
344
  simplecov_json_formatter (~> 0.1)
316
- simplecov-html (0.12.3)
317
- simplecov-lcov (0.8.0)
345
+ simplecov-html (0.13.2)
346
+ simplecov-lcov (0.9.0)
318
347
  simplecov_json_formatter (0.1.4)
319
- sneakers (2.11.0)
320
- bunny (~> 2.12)
321
- concurrent-ruby (~> 1.0)
322
- rake
323
- serverengine (~> 2.0.5)
324
- thor
325
348
  sorted_set (1.0.3)
326
349
  rbtree
327
350
  set (~> 1.0)
328
- stringio (3.1.1)
329
- table_sync (6.5.0)
351
+ stringio (3.1.7)
352
+ table_sync (6.8.0)
330
353
  memery
331
- rabbit_messaging (~> 0.13)
354
+ rabbit_messaging (>= 1.7.0)
332
355
  rails
333
356
  self_data
334
- tainbox (2.1.2)
335
- activesupport
336
- thor (1.3.2)
357
+ thor (1.4.0)
337
358
  timecop (0.9.10)
338
- timeout (0.4.1)
359
+ timeout (0.4.3)
339
360
  tzinfo (2.0.6)
340
361
  concurrent-ruby (~> 1.0)
341
- umbrellio-sequel-plugins (0.16.0.211)
362
+ umbrellio-sequel-plugins (0.17.0)
342
363
  sequel
343
- unicode-display_width (2.5.0)
344
- useragent (0.16.10)
345
- webrick (1.8.1)
346
- websocket-driver (0.7.6)
364
+ unicode-display_width (3.2.0)
365
+ unicode-emoji (~> 4.1)
366
+ unicode-emoji (4.1.0)
367
+ useragent (0.16.11)
368
+ websocket-driver (0.8.0)
369
+ base64
347
370
  websocket-extensions (>= 0.1.0)
348
371
  websocket-extensions (0.1.5)
349
372
  yard (0.9.37)
350
373
  zeitwerk (2.6.18)
351
374
 
352
375
  PLATFORMS
353
- arm64-darwin-20
354
- arm64-darwin-21
355
- arm64-darwin-23
356
- ruby
357
- x86_64-darwin-20
376
+ aarch64-linux
377
+ aarch64-linux-gnu
378
+ aarch64-linux-musl
379
+ arm-linux-gnu
380
+ arm-linux-musl
381
+ arm64-darwin
382
+ x86_64-darwin
358
383
  x86_64-linux
384
+ x86_64-linux-gnu
385
+ x86_64-linux-musl
359
386
 
360
387
  DEPENDENCIES
361
388
  activesupport
@@ -382,4 +409,4 @@ DEPENDENCIES
382
409
  yard
383
410
 
384
411
  BUNDLED WITH
385
- 2.5.18
412
+ 2.6.9
@@ -25,10 +25,15 @@ module UmbrellioUtils
25
25
 
26
26
  def each_record(dataset, primary_key: nil, **options, &block)
27
27
  primary_key = primary_key_from(dataset, primary_key:)
28
+ eager_tables = Array(options.delete(:eager_load))
28
29
 
29
30
  with_temp_table(dataset, primary_key:, **options) do |ids|
30
31
  rows = ids.map { |id| row(id.is_a?(Hash) ? id.values : [id]) }
31
- dataset.model.where(row(primary_key) => rows).reverse(row(primary_key)).each(&block)
32
+ records = dataset.model
33
+ .eager(eager_tables)
34
+ .where(row(primary_key) => rows)
35
+ .reverse(row(primary_key)).all
36
+ records.each(&block)
32
37
  end
33
38
  end
34
39
 
@@ -20,7 +20,7 @@ module UmbrellioUtils
20
20
  xml.remove_namespaces!
21
21
  xml.xpath("//@*").remove if remove_attributes
22
22
 
23
- tags_converter = snakecase ? -> (tag) { snakecase(tag).to_sym } : -> (tag) { tag.to_sym }
23
+ tags_converter = snakecase ? -> (tag) { snakecase(tag).to_sym } : lambda(&:to_sym)
24
24
  nori = Nori.new(convert_tags_to: tags_converter, convert_dashes_to_underscores: false)
25
25
  nori.parse(xml.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::NO_DECLARATION))
26
26
  end
@@ -71,8 +71,8 @@ module UmbrellioUtils
71
71
  [
72
72
  log.level.upcase,
73
73
  log.name,
74
- thread_fingerprint,
75
- truncate(log_to_message(log)),
74
+ thread_fingerprint(log),
75
+ uncolorize(truncate(log_to_message(log))),
76
76
  log.tags,
77
77
  log.named_tags,
78
78
  log.time.utc.iso8601(9),
@@ -81,15 +81,15 @@ module UmbrellioUtils
81
81
 
82
82
  # Calculates MD5 fingerprint for the thread in which the log was made.
83
83
  # @return [String] truncated `MD5` hash.
84
- def thread_fingerprint
85
- Digest::MD5.hexdigest("#{Thread.current.object_id}-#{Process.pid}")[0...8]
84
+ def thread_fingerprint(log)
85
+ Digest::MD5.hexdigest(log.process_info)[0, 8]
86
86
  end
87
87
 
88
88
  # Renders either exception or message of the log.
89
89
  # @return [String]
90
90
  def log_to_message(log)
91
91
  if (e = log.exception)
92
- msg = +"#{e.message} (#{e.class})"
92
+ msg = "#{e.message} (#{e.class})"
93
93
  msg << "\n#{e.backtrace.join("\n")}" if e.backtrace
94
94
  msg
95
95
  else
@@ -105,6 +105,10 @@ module UmbrellioUtils
105
105
 
106
106
  "#{msg}#{suffix}"
107
107
  end
108
+
109
+ def uncolorize(msg)
110
+ msg.gsub(/\e\[[0-9;]*[A-Za-z]/, "").delete("\e")
111
+ end
108
112
  end
109
113
  end
110
114
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UmbrellioUtils
4
- VERSION = "1.7.1"
4
+ VERSION = "1.8.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umbrellio-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Umbrellio
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 2025-07-15 00:00:00.000000000 Z
11
+ date: 2025-10-09 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: memery
@@ -71,6 +72,7 @@ metadata:
71
72
  homepage_uri: https://github.com/umbrellio/utils
72
73
  source_code_uri: https://github.com/umbrellio/utils
73
74
  documentation_uri: https://rubydoc.info/gems/umbrellio-utils
75
+ post_install_message:
74
76
  rdoc_options: []
75
77
  require_paths:
76
78
  - lib
@@ -85,7 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
87
  - !ruby/object:Gem::Version
86
88
  version: '0'
87
89
  requirements: []
88
- rubygems_version: 3.6.3
90
+ rubygems_version: 3.3.27
91
+ signing_key:
89
92
  specification_version: 4
90
93
  summary: A set of utilities that speed up development
91
94
  test_files: []