umbrellio-utils 1.2.1 → 1.3.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: aaa7935344d41de32a9d61527b1c7b167d64715207422fc23f83d790950e5951
4
- data.tar.gz: f9d7707ff893d916462b7e584a08ad8171036825eecacc201eecc09b17fc041f
3
+ metadata.gz: d17fd4116bc29709f96f27f812fdf8f9b5e977a1f0982ec6ca39616c6458e879
4
+ data.tar.gz: 64de97d755d6759be25ff38cc07d1680d4501f355982e22003f59520c21c01bb
5
5
  SHA512:
6
- metadata.gz: 319224d118b8c1197b9d93855aa83dcb8dbe80b33fb9395d8782e24cbdd4e303ce7bea798f33b4940febfa268d4f457dae0aac55d14e43e5933fd60d9d038362
7
- data.tar.gz: fb536f209a2190fc064db5b0f3a73b01b9286deceab3b7ee83e7f88cbb0023203737b29444baf218b42402dd5e0ad2f2a0bc60edf92bbf0cfbceb1352c5c0f84
6
+ metadata.gz: f32e5a5768428d0a2b7d3a8b0737916947088c35490ea8da10bddad4296683eac86612494cabae0dff9a50b6ec4aeb29dcd2adba7677133079282ae4fea7d7a0
7
+ data.tar.gz: 559fba254624cee4c16bb6f078cff3ea7c3b40f64579429d663fb89ff4c90e6afff20ec9f8d76cbb94c134598ab833c09cc5a74d61553cfd45e757145268553d
@@ -40,6 +40,7 @@ jobs:
40
40
  - uses: ruby/setup-ruby@v1
41
41
  with:
42
42
  ruby-version: ${{ matrix.ruby }}
43
+ rubygems: latest
43
44
  bundler-cache: true
44
45
 
45
46
  - run: psql -c 'CREATE DATABASE umbrellio_utils_test'
data/Gemfile CHANGED
@@ -10,7 +10,7 @@ group :development, :test do
10
10
  gem "bundler"
11
11
  gem "ci-helper"
12
12
  gem "http"
13
- gem "nokogiri", "~> 1.15.0"
13
+ gem "nokogiri"
14
14
  gem "nori"
15
15
  gem "pg"
16
16
  gem "pry"
data/Gemfile.lock CHANGED
@@ -1,41 +1,41 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- umbrellio-utils (1.2.1)
4
+ umbrellio-utils (1.3.0)
5
5
  memery (~> 1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (7.1.3.2)
11
- actionpack (= 7.1.3.2)
12
- activesupport (= 7.1.3.2)
10
+ actioncable (7.1.3.4)
11
+ actionpack (= 7.1.3.4)
12
+ activesupport (= 7.1.3.4)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
15
  zeitwerk (~> 2.6)
16
- actionmailbox (7.1.3.2)
17
- actionpack (= 7.1.3.2)
18
- activejob (= 7.1.3.2)
19
- activerecord (= 7.1.3.2)
20
- activestorage (= 7.1.3.2)
21
- activesupport (= 7.1.3.2)
16
+ actionmailbox (7.1.3.4)
17
+ actionpack (= 7.1.3.4)
18
+ activejob (= 7.1.3.4)
19
+ activerecord (= 7.1.3.4)
20
+ activestorage (= 7.1.3.4)
21
+ activesupport (= 7.1.3.4)
22
22
  mail (>= 2.7.1)
23
23
  net-imap
24
24
  net-pop
25
25
  net-smtp
26
- actionmailer (7.1.3.2)
27
- actionpack (= 7.1.3.2)
28
- actionview (= 7.1.3.2)
29
- activejob (= 7.1.3.2)
30
- activesupport (= 7.1.3.2)
26
+ actionmailer (7.1.3.4)
27
+ actionpack (= 7.1.3.4)
28
+ actionview (= 7.1.3.4)
29
+ activejob (= 7.1.3.4)
30
+ activesupport (= 7.1.3.4)
31
31
  mail (~> 2.5, >= 2.5.4)
32
32
  net-imap
33
33
  net-pop
34
34
  net-smtp
35
35
  rails-dom-testing (~> 2.2)
36
- actionpack (7.1.3.2)
37
- actionview (= 7.1.3.2)
38
- activesupport (= 7.1.3.2)
36
+ actionpack (7.1.3.4)
37
+ actionview (= 7.1.3.4)
38
+ activesupport (= 7.1.3.4)
39
39
  nokogiri (>= 1.8.5)
40
40
  racc
41
41
  rack (>= 2.2.4)
@@ -43,35 +43,35 @@ GEM
43
43
  rack-test (>= 0.6.3)
44
44
  rails-dom-testing (~> 2.2)
45
45
  rails-html-sanitizer (~> 1.6)
46
- actiontext (7.1.3.2)
47
- actionpack (= 7.1.3.2)
48
- activerecord (= 7.1.3.2)
49
- activestorage (= 7.1.3.2)
50
- activesupport (= 7.1.3.2)
46
+ actiontext (7.1.3.4)
47
+ actionpack (= 7.1.3.4)
48
+ activerecord (= 7.1.3.4)
49
+ activestorage (= 7.1.3.4)
50
+ activesupport (= 7.1.3.4)
51
51
  globalid (>= 0.6.0)
52
52
  nokogiri (>= 1.8.5)
53
- actionview (7.1.3.2)
54
- activesupport (= 7.1.3.2)
53
+ actionview (7.1.3.4)
54
+ activesupport (= 7.1.3.4)
55
55
  builder (~> 3.1)
56
56
  erubi (~> 1.11)
57
57
  rails-dom-testing (~> 2.2)
58
58
  rails-html-sanitizer (~> 1.6)
59
- activejob (7.1.3.2)
60
- activesupport (= 7.1.3.2)
59
+ activejob (7.1.3.4)
60
+ activesupport (= 7.1.3.4)
61
61
  globalid (>= 0.3.6)
62
- activemodel (7.1.3.2)
63
- activesupport (= 7.1.3.2)
64
- activerecord (7.1.3.2)
65
- activemodel (= 7.1.3.2)
66
- activesupport (= 7.1.3.2)
62
+ activemodel (7.1.3.4)
63
+ activesupport (= 7.1.3.4)
64
+ activerecord (7.1.3.4)
65
+ activemodel (= 7.1.3.4)
66
+ activesupport (= 7.1.3.4)
67
67
  timeout (>= 0.4.0)
68
- activestorage (7.1.3.2)
69
- actionpack (= 7.1.3.2)
70
- activejob (= 7.1.3.2)
71
- activerecord (= 7.1.3.2)
72
- activesupport (= 7.1.3.2)
68
+ activestorage (7.1.3.4)
69
+ actionpack (= 7.1.3.4)
70
+ activejob (= 7.1.3.4)
71
+ activerecord (= 7.1.3.4)
72
+ activesupport (= 7.1.3.4)
73
73
  marcel (~> 1.0)
74
- activesupport (7.1.3.2)
74
+ activesupport (7.1.3.4)
75
75
  base64
76
76
  bigdecimal
77
77
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -81,15 +81,15 @@ GEM
81
81
  minitest (>= 5.1)
82
82
  mutex_m
83
83
  tzinfo (~> 2.0)
84
- addressable (2.8.6)
85
- public_suffix (>= 2.0.2, < 6.0)
84
+ addressable (2.8.7)
85
+ public_suffix (>= 2.0.2, < 7.0)
86
86
  amazing_print (1.6.0)
87
87
  amq-protocol (2.3.2)
88
88
  ast (2.4.2)
89
89
  base64 (0.2.0)
90
- bigdecimal (3.1.7)
91
- builder (3.2.4)
92
- bunny (2.22.0)
90
+ bigdecimal (3.1.8)
91
+ builder (3.3.0)
92
+ bunny (2.23.0)
93
93
  amq-protocol (~> 2.3, >= 2.3.1)
94
94
  sorted_set (~> 1, >= 1.0.2)
95
95
  ci-helper (0.6.0)
@@ -98,7 +98,7 @@ GEM
98
98
  umbrellio-sequel-plugins (~> 0.14)
99
99
  coderay (1.1.3)
100
100
  colorize (1.1.0)
101
- concurrent-ruby (1.2.3)
101
+ concurrent-ruby (1.3.3)
102
102
  connection_pool (2.4.1)
103
103
  crass (1.0.6)
104
104
  date (3.3.4)
@@ -107,8 +107,11 @@ GEM
107
107
  domain_name (0.6.20240107)
108
108
  drb (2.2.1)
109
109
  dry-inflector (1.0.0)
110
- erubi (1.12.0)
111
- ffi (1.16.3)
110
+ erubi (1.13.0)
111
+ ffi (1.17.0)
112
+ ffi (1.17.0-arm64-darwin)
113
+ ffi (1.17.0-x86_64-darwin)
114
+ ffi (1.17.0-x86_64-linux-gnu)
112
115
  ffi-compiler (1.3.2)
113
116
  ffi (>= 1.15.5)
114
117
  rake
@@ -120,18 +123,19 @@ GEM
120
123
  http-cookie (~> 1.0)
121
124
  http-form_data (~> 2.2)
122
125
  llhttp-ffi (~> 0.5.0)
123
- http-cookie (1.0.5)
126
+ http-cookie (1.0.6)
124
127
  domain_name (~> 0.5)
125
128
  http-form_data (2.3.0)
126
- i18n (1.14.4)
129
+ i18n (1.14.5)
127
130
  concurrent-ruby (~> 1.0)
128
131
  io-console (0.7.2)
129
- irb (1.12.0)
130
- rdoc
132
+ irb (1.13.2)
133
+ rdoc (>= 4.0.0)
131
134
  reline (>= 0.4.2)
132
135
  json (2.7.2)
133
- lamian (1.8.0)
136
+ lamian (1.9.0)
134
137
  rails (>= 4.2)
138
+ language_server-protocol (3.17.0.3)
135
139
  llhttp-ffi (0.5.0)
136
140
  ffi-compiler (~> 1.0)
137
141
  rake (~> 13.0)
@@ -148,26 +152,31 @@ GEM
148
152
  ruby2_keywords (~> 0.0.2)
149
153
  method_source (1.1.0)
150
154
  mini_mime (1.1.5)
151
- mini_portile2 (2.8.6)
152
- minitest (5.22.3)
155
+ mini_portile2 (2.8.7)
156
+ minitest (5.24.1)
153
157
  mutex_m (0.2.0)
154
- net-imap (0.4.10)
158
+ net-imap (0.4.14)
155
159
  date
156
160
  net-protocol
157
161
  net-pop (0.1.2)
158
- net-protocol
159
162
  net-protocol (0.2.2)
160
163
  timeout
161
164
  net-smtp (0.5.0)
162
165
  net-protocol
163
- nio4r (2.7.1)
164
- nokogiri (1.15.6)
166
+ nio4r (2.7.3)
167
+ nokogiri (1.16.6)
165
168
  mini_portile2 (~> 2.8.2)
166
169
  racc (~> 1.4)
170
+ nokogiri (1.16.6-arm64-darwin)
171
+ racc (~> 1.4)
172
+ nokogiri (1.16.6-x86_64-darwin)
173
+ racc (~> 1.4)
174
+ nokogiri (1.16.6-x86_64-linux)
175
+ racc (~> 1.4)
167
176
  nori (2.7.0)
168
177
  bigdecimal
169
- parallel (1.24.0)
170
- parser (3.3.0.5)
178
+ parallel (1.25.1)
179
+ parser (3.3.3.0)
171
180
  ast (~> 2.4.1)
172
181
  racc
173
182
  pg (1.5.6)
@@ -176,15 +185,15 @@ GEM
176
185
  method_source (~> 1.0)
177
186
  psych (5.1.2)
178
187
  stringio
179
- public_suffix (5.0.5)
180
- rabbit_messaging (0.13.0)
188
+ public_suffix (6.0.0)
189
+ rabbit_messaging (0.15.0)
181
190
  bunny (~> 2.0)
182
191
  lamian
183
192
  rails (>= 5.2)
184
193
  sneakers (~> 2.0)
185
194
  tainbox
186
- racc (1.7.3)
187
- rack (3.0.10)
195
+ racc (1.8.0)
196
+ rack (3.1.4)
188
197
  rack-session (2.0.0)
189
198
  rack (>= 3.0.0)
190
199
  rack-test (2.1.0)
@@ -192,20 +201,20 @@ GEM
192
201
  rackup (2.1.0)
193
202
  rack (>= 3)
194
203
  webrick (~> 1.8)
195
- rails (7.1.3.2)
196
- actioncable (= 7.1.3.2)
197
- actionmailbox (= 7.1.3.2)
198
- actionmailer (= 7.1.3.2)
199
- actionpack (= 7.1.3.2)
200
- actiontext (= 7.1.3.2)
201
- actionview (= 7.1.3.2)
202
- activejob (= 7.1.3.2)
203
- activemodel (= 7.1.3.2)
204
- activerecord (= 7.1.3.2)
205
- activestorage (= 7.1.3.2)
206
- activesupport (= 7.1.3.2)
204
+ rails (7.1.3.4)
205
+ actioncable (= 7.1.3.4)
206
+ actionmailbox (= 7.1.3.4)
207
+ actionmailer (= 7.1.3.4)
208
+ actionpack (= 7.1.3.4)
209
+ actiontext (= 7.1.3.4)
210
+ actionview (= 7.1.3.4)
211
+ activejob (= 7.1.3.4)
212
+ activemodel (= 7.1.3.4)
213
+ activerecord (= 7.1.3.4)
214
+ activestorage (= 7.1.3.4)
215
+ activesupport (= 7.1.3.4)
207
216
  bundler (>= 1.15.0)
208
- railties (= 7.1.3.2)
217
+ railties (= 7.1.3.4)
209
218
  rails-dom-testing (2.2.0)
210
219
  activesupport (>= 5.0.0)
211
220
  minitest
@@ -213,9 +222,9 @@ GEM
213
222
  rails-html-sanitizer (1.6.0)
214
223
  loofah (~> 2.21)
215
224
  nokogiri (~> 1.14)
216
- railties (7.1.3.2)
217
- actionpack (= 7.1.3.2)
218
- activesupport (= 7.1.3.2)
225
+ railties (7.1.3.4)
226
+ actionpack (= 7.1.3.4)
227
+ activesupport (= 7.1.3.4)
219
228
  irb
220
229
  rackup (>= 1.0.0)
221
230
  rake (>= 12.2)
@@ -224,61 +233,70 @@ GEM
224
233
  rainbow (3.1.1)
225
234
  rake (13.2.1)
226
235
  rbtree (0.4.6)
227
- rdoc (6.6.3.1)
236
+ rdoc (6.7.0)
228
237
  psych (>= 4.0.0)
229
- regexp_parser (2.9.0)
230
- reline (0.5.1)
238
+ regexp_parser (2.9.2)
239
+ reline (0.5.9)
231
240
  io-console (~> 0.5)
232
- rexml (3.2.6)
241
+ rexml (3.3.1)
242
+ strscan
233
243
  rspec (3.13.0)
234
244
  rspec-core (~> 3.13.0)
235
245
  rspec-expectations (~> 3.13.0)
236
246
  rspec-mocks (~> 3.13.0)
237
247
  rspec-core (3.13.0)
238
248
  rspec-support (~> 3.13.0)
239
- rspec-expectations (3.13.0)
249
+ rspec-expectations (3.13.1)
240
250
  diff-lcs (>= 1.2.0, < 2.0)
241
251
  rspec-support (~> 3.13.0)
242
252
  rspec-json_matcher (0.2.0)
243
253
  amazing_print
244
254
  json
245
- rspec-mocks (3.13.0)
255
+ rspec-mocks (3.13.1)
246
256
  diff-lcs (>= 1.2.0, < 2.0)
247
257
  rspec-support (~> 3.13.0)
248
258
  rspec-support (3.13.1)
249
- rubocop (1.50.2)
259
+ rubocop (1.63.5)
250
260
  json (~> 2.3)
261
+ language_server-protocol (>= 3.17.0)
251
262
  parallel (~> 1.10)
252
- parser (>= 3.2.0.0)
263
+ parser (>= 3.3.0.2)
253
264
  rainbow (>= 2.2.2, < 4.0)
254
265
  regexp_parser (>= 1.8, < 3.0)
255
266
  rexml (>= 3.2.5, < 4.0)
256
- rubocop-ast (>= 1.28.0, < 2.0)
267
+ rubocop-ast (>= 1.31.1, < 2.0)
257
268
  ruby-progressbar (~> 1.7)
258
269
  unicode-display_width (>= 2.4.0, < 3.0)
259
- rubocop-ast (1.31.2)
260
- parser (>= 3.3.0.4)
261
- rubocop-capybara (2.20.0)
270
+ rubocop-ast (1.31.3)
271
+ parser (>= 3.3.1.0)
272
+ rubocop-capybara (2.21.0)
262
273
  rubocop (~> 1.41)
263
- rubocop-config-umbrellio (1.50.0.85)
264
- rubocop (~> 1.50.0)
265
- rubocop-performance (~> 1.17.0)
266
- rubocop-rails (~> 2.19.0)
274
+ rubocop-config-umbrellio (1.63.0.93)
275
+ rubocop (~> 1.63.0)
276
+ rubocop-performance (~> 1.21.0)
277
+ rubocop-rails (~> 2.24.0)
267
278
  rubocop-rake (~> 0.6.0)
268
- rubocop-rspec (~> 2.20.0)
279
+ rubocop-rspec (~> 2.29.0)
269
280
  rubocop-sequel (~> 0.3.3)
270
- rubocop-performance (1.17.1)
271
- rubocop (>= 1.7.0, < 2.0)
272
- rubocop-ast (>= 0.4.0)
273
- rubocop-rails (2.19.1)
281
+ rubocop-factory_bot (2.26.1)
282
+ rubocop (~> 1.61)
283
+ rubocop-performance (1.21.1)
284
+ rubocop (>= 1.48.1, < 2.0)
285
+ rubocop-ast (>= 1.31.1, < 2.0)
286
+ rubocop-rails (2.24.1)
274
287
  activesupport (>= 4.2.0)
275
288
  rack (>= 1.1)
276
289
  rubocop (>= 1.33.0, < 2.0)
290
+ rubocop-ast (>= 1.31.1, < 2.0)
277
291
  rubocop-rake (0.6.0)
278
292
  rubocop (~> 1.0)
279
- rubocop-rspec (2.20.0)
280
- rubocop (~> 1.33)
293
+ rubocop-rspec (2.29.2)
294
+ rubocop (~> 1.40)
281
295
  rubocop-capybara (~> 2.17)
296
+ rubocop-factory_bot (~> 2.22)
297
+ rubocop-rspec_rails (~> 2.28)
298
+ rubocop-rspec_rails (2.29.1)
299
+ rubocop (~> 1.61)
282
300
  rubocop-sequel (0.3.4)
283
301
  rubocop (~> 1.0)
284
302
  ruby-progressbar (1.13.0)
@@ -286,7 +304,7 @@ GEM
286
304
  self_data (1.3.0)
287
305
  semantic_logger (4.15.0)
288
306
  concurrent-ruby (~> 1.0)
289
- sequel (5.79.0)
307
+ sequel (5.81.0)
290
308
  bigdecimal
291
309
  sequel-batches (2.0.2)
292
310
  sequel
@@ -310,7 +328,8 @@ GEM
310
328
  sorted_set (1.0.3)
311
329
  rbtree
312
330
  set (~> 1.0)
313
- stringio (3.1.0)
331
+ stringio (3.1.1)
332
+ strscan (3.1.0)
314
333
  symbiont-ruby (0.7.0)
315
334
  table_sync (6.5.0)
316
335
  memery
@@ -320,11 +339,11 @@ GEM
320
339
  tainbox (2.1.2)
321
340
  activesupport
322
341
  thor (1.3.1)
323
- timecop (0.9.8)
342
+ timecop (0.9.10)
324
343
  timeout (0.4.1)
325
344
  tzinfo (2.0.6)
326
345
  concurrent-ruby (~> 1.0)
327
- umbrellio-sequel-plugins (0.14.0.192)
346
+ umbrellio-sequel-plugins (0.15.0.198)
328
347
  sequel
329
348
  symbiont-ruby
330
349
  unicode-display_width (2.5.0)
@@ -333,7 +352,7 @@ GEM
333
352
  websocket-extensions (>= 0.1.0)
334
353
  websocket-extensions (0.1.5)
335
354
  yard (0.9.36)
336
- zeitwerk (2.6.13)
355
+ zeitwerk (2.6.16)
337
356
 
338
357
  PLATFORMS
339
358
  arm64-darwin-20
@@ -348,7 +367,7 @@ DEPENDENCIES
348
367
  bundler
349
368
  ci-helper
350
369
  http
351
- nokogiri (~> 1.15.0)
370
+ nokogiri
352
371
  nori
353
372
  pg
354
373
  pry
@@ -367,4 +386,4 @@ DEPENDENCIES
367
386
  yard
368
387
 
369
388
  BUNDLED WITH
370
- 2.5.9
389
+ 2.5.14
@@ -48,21 +48,15 @@ module UmbrellioUtils
48
48
  break if pk_set.empty?
49
49
 
50
50
  Kernel.sleep(sleep_interval) if sleep_interval.positive?
51
- clear_lamian_logs!
52
51
  end
53
52
  ensure
54
53
  DB.drop_table(temp_table_name)
55
54
  end
56
55
 
57
- def clear_lamian_logs!
58
- return unless defined?(Lamian)
59
- Lamian.logger.send(:logdevs).each { |x| x.truncate(0) && x.rewind }
60
- end
61
-
62
56
  def create_temp_table(dataset, **options)
63
57
  time = Time.current
64
58
  model = dataset.model
65
- temp_table_name = "temp_#{model.table_name}_#{time.to_i}_#{time.nsec}".to_sym
59
+ temp_table_name = :"temp_#{model.table_name}_#{time.to_i}_#{time.nsec}"
66
60
  primary_key = primary_key_from(dataset, **options)
67
61
 
68
62
  DB.create_table(temp_table_name, unlogged: true) do
@@ -5,7 +5,7 @@ module UmbrellioUtils
5
5
  extend self
6
6
 
7
7
  def secret_engine_present?(engine_path)
8
- ::Vault.logical.read("sys/mounts").data.key?("#{engine_path}/".to_sym)
8
+ ::Vault.logical.read("sys/mounts").data.key?(:"#{engine_path}/")
9
9
  end
10
10
 
11
11
  def create_kv_engine(path)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UmbrellioUtils
4
- VERSION = "1.2.1"
4
+ VERSION = "1.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umbrellio-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Umbrellio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-21 00:00:00.000000000 Z
11
+ date: 2024-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memery
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.5.9
89
+ rubygems_version: 3.5.11
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: A set of utilities that speed up development