umbrellio-utils 1.2.0 → 1.3.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/.github/workflows/test.yml +1 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +128 -109
- data/lib/umbrellio_utils/database.rb +13 -12
- data/lib/umbrellio_utils/vault.rb +1 -1
- data/lib/umbrellio_utils/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d17fd4116bc29709f96f27f812fdf8f9b5e977a1f0982ec6ca39616c6458e879
|
|
4
|
+
data.tar.gz: 64de97d755d6759be25ff38cc07d1680d4501f355982e22003f59520c21c01bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f32e5a5768428d0a2b7d3a8b0737916947088c35490ea8da10bddad4296683eac86612494cabae0dff9a50b6ec4aeb29dcd2adba7677133079282ae4fea7d7a0
|
|
7
|
+
data.tar.gz: 559fba254624cee4c16bb6f078cff3ea7c3b40f64579429d663fb89ff4c90e6afff20ec9f8d76cbb94c134598ab833c09cc5a74d61553cfd45e757145268553d
|
data/.github/workflows/test.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
umbrellio-utils (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.
|
|
11
|
-
actionpack (= 7.1.3.
|
|
12
|
-
activesupport (= 7.1.3.
|
|
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.
|
|
17
|
-
actionpack (= 7.1.3.
|
|
18
|
-
activejob (= 7.1.3.
|
|
19
|
-
activerecord (= 7.1.3.
|
|
20
|
-
activestorage (= 7.1.3.
|
|
21
|
-
activesupport (= 7.1.3.
|
|
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.
|
|
27
|
-
actionpack (= 7.1.3.
|
|
28
|
-
actionview (= 7.1.3.
|
|
29
|
-
activejob (= 7.1.3.
|
|
30
|
-
activesupport (= 7.1.3.
|
|
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.
|
|
37
|
-
actionview (= 7.1.3.
|
|
38
|
-
activesupport (= 7.1.3.
|
|
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.
|
|
47
|
-
actionpack (= 7.1.3.
|
|
48
|
-
activerecord (= 7.1.3.
|
|
49
|
-
activestorage (= 7.1.3.
|
|
50
|
-
activesupport (= 7.1.3.
|
|
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.
|
|
54
|
-
activesupport (= 7.1.3.
|
|
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.
|
|
60
|
-
activesupport (= 7.1.3.
|
|
59
|
+
activejob (7.1.3.4)
|
|
60
|
+
activesupport (= 7.1.3.4)
|
|
61
61
|
globalid (>= 0.3.6)
|
|
62
|
-
activemodel (7.1.3.
|
|
63
|
-
activesupport (= 7.1.3.
|
|
64
|
-
activerecord (7.1.3.
|
|
65
|
-
activemodel (= 7.1.3.
|
|
66
|
-
activesupport (= 7.1.3.
|
|
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.
|
|
69
|
-
actionpack (= 7.1.3.
|
|
70
|
-
activejob (= 7.1.3.
|
|
71
|
-
activerecord (= 7.1.3.
|
|
72
|
-
activesupport (= 7.1.3.
|
|
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.
|
|
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.
|
|
85
|
-
public_suffix (>= 2.0.2, <
|
|
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.
|
|
91
|
-
builder (3.
|
|
92
|
-
bunny (2.
|
|
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.
|
|
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.
|
|
111
|
-
ffi (1.
|
|
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.
|
|
126
|
+
http-cookie (1.0.6)
|
|
124
127
|
domain_name (~> 0.5)
|
|
125
128
|
http-form_data (2.3.0)
|
|
126
|
-
i18n (1.14.
|
|
129
|
+
i18n (1.14.5)
|
|
127
130
|
concurrent-ruby (~> 1.0)
|
|
128
131
|
io-console (0.7.2)
|
|
129
|
-
irb (1.
|
|
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.
|
|
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.
|
|
152
|
-
minitest (5.
|
|
155
|
+
mini_portile2 (2.8.7)
|
|
156
|
+
minitest (5.24.1)
|
|
153
157
|
mutex_m (0.2.0)
|
|
154
|
-
net-imap (0.4.
|
|
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.
|
|
164
|
-
nokogiri (1.
|
|
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.
|
|
170
|
-
parser (3.3.0
|
|
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 (
|
|
180
|
-
rabbit_messaging (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.
|
|
187
|
-
rack (3.
|
|
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.
|
|
196
|
-
actioncable (= 7.1.3.
|
|
197
|
-
actionmailbox (= 7.1.3.
|
|
198
|
-
actionmailer (= 7.1.3.
|
|
199
|
-
actionpack (= 7.1.3.
|
|
200
|
-
actiontext (= 7.1.3.
|
|
201
|
-
actionview (= 7.1.3.
|
|
202
|
-
activejob (= 7.1.3.
|
|
203
|
-
activemodel (= 7.1.3.
|
|
204
|
-
activerecord (= 7.1.3.
|
|
205
|
-
activestorage (= 7.1.3.
|
|
206
|
-
activesupport (= 7.1.3.
|
|
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.
|
|
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.
|
|
217
|
-
actionpack (= 7.1.3.
|
|
218
|
-
activesupport (= 7.1.3.
|
|
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.
|
|
236
|
+
rdoc (6.7.0)
|
|
228
237
|
psych (>= 4.0.0)
|
|
229
|
-
regexp_parser (2.9.
|
|
230
|
-
reline (0.5.
|
|
238
|
+
regexp_parser (2.9.2)
|
|
239
|
+
reline (0.5.9)
|
|
231
240
|
io-console (~> 0.5)
|
|
232
|
-
rexml (3.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
260
|
-
parser (>= 3.3.0
|
|
261
|
-
rubocop-capybara (2.
|
|
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.
|
|
264
|
-
rubocop (~> 1.
|
|
265
|
-
rubocop-performance (~> 1.
|
|
266
|
-
rubocop-rails (~> 2.
|
|
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.
|
|
279
|
+
rubocop-rspec (~> 2.29.0)
|
|
269
280
|
rubocop-sequel (~> 0.3.3)
|
|
270
|
-
rubocop-
|
|
271
|
-
rubocop (
|
|
272
|
-
|
|
273
|
-
|
|
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.
|
|
280
|
-
rubocop (~> 1.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
389
|
+
2.5.14
|
|
@@ -5,6 +5,7 @@ module UmbrellioUtils
|
|
|
5
5
|
extend self
|
|
6
6
|
|
|
7
7
|
HandledConstaintError = Class.new(StandardError)
|
|
8
|
+
InvalidPkError = Class.new(StandardError)
|
|
8
9
|
|
|
9
10
|
def handle_constraint_error(constraint_name, &block)
|
|
10
11
|
DB.transaction(savepoint: true, &block)
|
|
@@ -22,7 +23,7 @@ module UmbrellioUtils
|
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
def each_record(dataset, **options, &block)
|
|
25
|
-
primary_key = primary_key_from(**options)
|
|
26
|
+
primary_key = primary_key_from(dataset, **options)
|
|
26
27
|
|
|
27
28
|
with_temp_table(dataset, **options) do |ids|
|
|
28
29
|
rows = ids.map { |id| row(id.is_a?(Hash) ? id.values : [id]) }
|
|
@@ -31,7 +32,7 @@ module UmbrellioUtils
|
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
def with_temp_table(dataset, page_size: 1_000, sleep: nil, **options)
|
|
34
|
-
primary_key = primary_key_from(**options)
|
|
35
|
+
primary_key = primary_key_from(dataset, **options)
|
|
35
36
|
sleep_interval = sleep_interval_from(sleep)
|
|
36
37
|
|
|
37
38
|
temp_table_name = create_temp_table(dataset, primary_key: primary_key)
|
|
@@ -47,22 +48,16 @@ module UmbrellioUtils
|
|
|
47
48
|
break if pk_set.empty?
|
|
48
49
|
|
|
49
50
|
Kernel.sleep(sleep_interval) if sleep_interval.positive?
|
|
50
|
-
clear_lamian_logs!
|
|
51
51
|
end
|
|
52
52
|
ensure
|
|
53
53
|
DB.drop_table(temp_table_name)
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
-
def clear_lamian_logs!
|
|
57
|
-
return unless defined?(Lamian)
|
|
58
|
-
Lamian.logger.send(:logdevs).each { |x| x.truncate(0) && x.rewind }
|
|
59
|
-
end
|
|
60
|
-
|
|
61
56
|
def create_temp_table(dataset, **options)
|
|
62
57
|
time = Time.current
|
|
63
58
|
model = dataset.model
|
|
64
|
-
temp_table_name = "temp_#{model.table_name}_#{time.to_i}_#{time.nsec}"
|
|
65
|
-
primary_key = primary_key_from(**options)
|
|
59
|
+
temp_table_name = :"temp_#{model.table_name}_#{time.to_i}_#{time.nsec}"
|
|
60
|
+
primary_key = primary_key_from(dataset, **options)
|
|
66
61
|
|
|
67
62
|
DB.create_table(temp_table_name, unlogged: true) do
|
|
68
63
|
primary_key.each do |field|
|
|
@@ -85,8 +80,14 @@ module UmbrellioUtils
|
|
|
85
80
|
Sequel.function(:row, *values)
|
|
86
81
|
end
|
|
87
82
|
|
|
88
|
-
def
|
|
89
|
-
|
|
83
|
+
def extract_primary_key(dataset)
|
|
84
|
+
dataset.db.schema(dataset.first_source).select { |x| x[1][:primary_key] }.map(&:first)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def primary_key_from(dataset, **options)
|
|
88
|
+
Array(options[:primary_key] || extract_primary_key(dataset)).tap do |primary_key|
|
|
89
|
+
raise InvalidPkError if primary_key.empty?
|
|
90
|
+
end
|
|
90
91
|
end
|
|
91
92
|
|
|
92
93
|
def qualified_pk(table_name, primary_key)
|
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.
|
|
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-
|
|
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.
|
|
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
|