umbrellio-utils 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/Gemfile.lock +50 -50
- data/lib/umbrellio_utils/checks.rb +1 -1
- data/lib/umbrellio_utils/database.rb +3 -2
- 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: e7b9db3034d4209600d582adc36279237c9a2134369ec5fc420ab6139bb17d7b
|
4
|
+
data.tar.gz: 387d562e46ab37d01c09f02b4055da986d029249b74dcb855d4d2eedf8f87d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdc5fe7e23ebcb5b4aabc008e042350a94ed4fafcfd41c27cfc44cafd1227f26023942fa0001d5643b4c7f67a09c7d6df1f4b8eb176679fdc0be6d97d847c79b
|
7
|
+
data.tar.gz: 4814980dd7f7a5e1c7ed2734b6738847c067e503b53fd8327a603854a0033289b5372f0ae467c01282f5cdce9208869fe8cacdb29d794d6ccb21d897c86a6283
|
data/.github/workflows/test.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
umbrellio-utils (0.6.
|
4
|
+
umbrellio-utils (0.6.1)
|
5
5
|
memery (~> 1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (7.0.
|
10
|
+
activesupport (7.0.4.2)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
@@ -23,95 +23,95 @@ GEM
|
|
23
23
|
umbrellio-sequel-plugins (~> 0.4)
|
24
24
|
coderay (1.1.3)
|
25
25
|
colorize (0.8.1)
|
26
|
-
concurrent-ruby (1.
|
26
|
+
concurrent-ruby (1.2.0)
|
27
27
|
diff-lcs (1.5.0)
|
28
28
|
docile (1.4.0)
|
29
29
|
dry-inflector (0.3.0)
|
30
30
|
i18n (1.12.0)
|
31
31
|
concurrent-ruby (~> 1.0)
|
32
|
-
json (2.6.
|
32
|
+
json (2.6.3)
|
33
33
|
memery (1.4.1)
|
34
34
|
ruby2_keywords (~> 0.0.2)
|
35
35
|
method_source (1.0.0)
|
36
|
-
mini_portile2 (2.8.
|
37
|
-
minitest (5.
|
38
|
-
nokogiri (1.
|
36
|
+
mini_portile2 (2.8.1)
|
37
|
+
minitest (5.17.0)
|
38
|
+
nokogiri (1.14.1)
|
39
39
|
mini_portile2 (~> 2.8.0)
|
40
40
|
racc (~> 1.4)
|
41
|
-
nokogiri (1.
|
41
|
+
nokogiri (1.14.1-arm64-darwin)
|
42
42
|
racc (~> 1.4)
|
43
|
-
nokogiri (1.
|
43
|
+
nokogiri (1.14.1-x86_64-darwin)
|
44
44
|
racc (~> 1.4)
|
45
|
-
nokogiri (1.
|
45
|
+
nokogiri (1.14.1-x86_64-linux)
|
46
46
|
racc (~> 1.4)
|
47
47
|
nori (2.6.0)
|
48
48
|
parallel (1.22.1)
|
49
|
-
parser (3.
|
49
|
+
parser (3.2.0.0)
|
50
50
|
ast (~> 2.4.1)
|
51
|
-
pg (1.4.
|
52
|
-
pry (0.14.
|
51
|
+
pg (1.4.5)
|
52
|
+
pry (0.14.2)
|
53
53
|
coderay (~> 1.1)
|
54
54
|
method_source (~> 1.0)
|
55
|
-
racc (1.6.
|
56
|
-
rack (
|
55
|
+
racc (1.6.2)
|
56
|
+
rack (3.0.4.1)
|
57
57
|
rainbow (3.1.1)
|
58
58
|
rake (13.0.6)
|
59
|
-
regexp_parser (2.
|
59
|
+
regexp_parser (2.6.2)
|
60
60
|
rexml (3.2.5)
|
61
|
-
rspec (3.
|
62
|
-
rspec-core (~> 3.
|
63
|
-
rspec-expectations (~> 3.
|
64
|
-
rspec-mocks (~> 3.
|
65
|
-
rspec-core (3.
|
66
|
-
rspec-support (~> 3.
|
67
|
-
rspec-expectations (3.
|
61
|
+
rspec (3.12.0)
|
62
|
+
rspec-core (~> 3.12.0)
|
63
|
+
rspec-expectations (~> 3.12.0)
|
64
|
+
rspec-mocks (~> 3.12.0)
|
65
|
+
rspec-core (3.12.1)
|
66
|
+
rspec-support (~> 3.12.0)
|
67
|
+
rspec-expectations (3.12.2)
|
68
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
69
|
-
rspec-support (~> 3.
|
69
|
+
rspec-support (~> 3.12.0)
|
70
70
|
rspec-json_matcher (0.2.0)
|
71
71
|
amazing_print
|
72
72
|
json
|
73
|
-
rspec-mocks (3.
|
73
|
+
rspec-mocks (3.12.3)
|
74
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
75
|
-
rspec-support (~> 3.
|
76
|
-
rspec-support (3.
|
77
|
-
rubocop (1.
|
75
|
+
rspec-support (~> 3.12.0)
|
76
|
+
rspec-support (3.12.0)
|
77
|
+
rubocop (1.43.0)
|
78
78
|
json (~> 2.3)
|
79
79
|
parallel (~> 1.10)
|
80
|
-
parser (>= 3.
|
80
|
+
parser (>= 3.2.0.0)
|
81
81
|
rainbow (>= 2.2.2, < 4.0)
|
82
82
|
regexp_parser (>= 1.8, < 3.0)
|
83
83
|
rexml (>= 3.2.5, < 4.0)
|
84
|
-
rubocop-ast (>= 1.
|
84
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
85
85
|
ruby-progressbar (~> 1.7)
|
86
|
-
unicode-display_width (>=
|
87
|
-
rubocop-ast (1.
|
86
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
87
|
+
rubocop-ast (1.24.1)
|
88
88
|
parser (>= 3.1.1.0)
|
89
|
-
rubocop-config-umbrellio (1.
|
90
|
-
rubocop (~> 1.
|
91
|
-
rubocop-performance (~> 1.
|
92
|
-
rubocop-rails (~> 2.
|
89
|
+
rubocop-config-umbrellio (1.43.0.81)
|
90
|
+
rubocop (~> 1.43.0)
|
91
|
+
rubocop-performance (~> 1.15.0)
|
92
|
+
rubocop-rails (~> 2.17.0)
|
93
93
|
rubocop-rake (~> 0.6.0)
|
94
|
-
rubocop-rspec (~> 2.
|
94
|
+
rubocop-rspec (~> 2.16.0)
|
95
95
|
rubocop-sequel (~> 0.3.3)
|
96
|
-
rubocop-performance (1.
|
96
|
+
rubocop-performance (1.15.2)
|
97
97
|
rubocop (>= 1.7.0, < 2.0)
|
98
98
|
rubocop-ast (>= 0.4.0)
|
99
|
-
rubocop-rails (2.
|
99
|
+
rubocop-rails (2.17.4)
|
100
100
|
activesupport (>= 4.2.0)
|
101
101
|
rack (>= 1.1)
|
102
|
-
rubocop (>= 1.
|
102
|
+
rubocop (>= 1.33.0, < 2.0)
|
103
103
|
rubocop-rake (0.6.0)
|
104
104
|
rubocop (~> 1.0)
|
105
|
-
rubocop-rspec (2.
|
106
|
-
rubocop (~> 1.
|
105
|
+
rubocop-rspec (2.16.0)
|
106
|
+
rubocop (~> 1.33)
|
107
107
|
rubocop-sequel (0.3.4)
|
108
108
|
rubocop (~> 1.0)
|
109
109
|
ruby-progressbar (1.11.0)
|
110
110
|
ruby2_keywords (0.0.5)
|
111
|
-
semantic_logger (4.
|
111
|
+
semantic_logger (4.12.0)
|
112
112
|
concurrent-ruby (~> 1.0)
|
113
|
-
sequel (5.
|
114
|
-
simplecov (0.
|
113
|
+
sequel (5.65.0)
|
114
|
+
simplecov (0.22.0)
|
115
115
|
docile (~> 1.1)
|
116
116
|
simplecov-html (~> 0.11)
|
117
117
|
simplecov_json_formatter (~> 0.1)
|
@@ -120,13 +120,13 @@ GEM
|
|
120
120
|
simplecov_json_formatter (0.1.4)
|
121
121
|
symbiont-ruby (0.7.0)
|
122
122
|
thor (1.2.1)
|
123
|
-
timecop (0.9.
|
124
|
-
tzinfo (2.0.
|
123
|
+
timecop (0.9.6)
|
124
|
+
tzinfo (2.0.6)
|
125
125
|
concurrent-ruby (~> 1.0)
|
126
|
-
umbrellio-sequel-plugins (0.
|
126
|
+
umbrellio-sequel-plugins (0.11.0.143)
|
127
127
|
sequel
|
128
128
|
symbiont-ruby
|
129
|
-
unicode-display_width (2.2
|
129
|
+
unicode-display_width (2.4.2)
|
130
130
|
webrick (1.7.0)
|
131
131
|
yard (0.9.28)
|
132
132
|
webrick (~> 1.7.0)
|
@@ -160,4 +160,4 @@ DEPENDENCIES
|
|
160
160
|
yard
|
161
161
|
|
162
162
|
BUNDLED WITH
|
163
|
-
2.
|
163
|
+
2.4.5
|
@@ -6,7 +6,7 @@ module UmbrellioUtils
|
|
6
6
|
|
7
7
|
VOWELS_REGEX = /[AEIOUY]/.freeze
|
8
8
|
CONSONANTS_REGEX = /[BCDFGHJKLMNPQRSTVXZW]/.freeze
|
9
|
-
EMAIL_REGEXP = /\A([\w
|
9
|
+
EMAIL_REGEXP = /\A([\w+-].?)+@[a-z\d-]+(\.[a-z]+)*\.[a-z]+\z/i.freeze
|
10
10
|
|
11
11
|
def secure_compare(src, dest)
|
12
12
|
ActiveSupport::SecurityUtils.secure_compare(
|
@@ -64,7 +64,7 @@ module UmbrellioUtils
|
|
64
64
|
def create_temp_table(dataset, primary_key:)
|
65
65
|
model = dataset.model
|
66
66
|
time = Time.current
|
67
|
-
temp_table_name = "temp_#{model.table_name}_#{time.to_i}#{time.nsec}".to_sym
|
67
|
+
temp_table_name = "temp_#{model.table_name}_#{time.to_i}_#{time.nsec}".to_sym
|
68
68
|
type = model.db_schema[primary_key][:db_type]
|
69
69
|
|
70
70
|
DB.drop_table?(temp_table_name)
|
@@ -73,7 +73,8 @@ module UmbrellioUtils
|
|
73
73
|
end
|
74
74
|
|
75
75
|
insert_ds = dataset.select(Sequel[model.table_name][primary_key])
|
76
|
-
DB[temp_table_name].insert(insert_ds)
|
76
|
+
DB[temp_table_name].disable_insert_returning.insert(insert_ds)
|
77
|
+
|
77
78
|
temp_table_name
|
78
79
|
end
|
79
80
|
|
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: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JustAnotherDude
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: memery
|
@@ -338,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
338
338
|
- !ruby/object:Gem::Version
|
339
339
|
version: '0'
|
340
340
|
requirements: []
|
341
|
-
rubygems_version: 3.
|
341
|
+
rubygems_version: 3.4.5
|
342
342
|
signing_key:
|
343
343
|
specification_version: 4
|
344
344
|
summary: A set of utilities that speed up development
|