umbrellio-utils 0.5.2 → 0.6.1

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: a50b129107cbc0b88c6ca792692965517f94d37d55585a4c872ac7ed33f96144
4
- data.tar.gz: 5fb7a079b3510edd5ea05a93e9752eba6ce02aba59a7160f8bd06c1ea2344086
3
+ metadata.gz: e7b9db3034d4209600d582adc36279237c9a2134369ec5fc420ab6139bb17d7b
4
+ data.tar.gz: 387d562e46ab37d01c09f02b4055da986d029249b74dcb855d4d2eedf8f87d71
5
5
  SHA512:
6
- metadata.gz: c3d0a08ffac0fac4c414bcdc695ec4b34730f7c1d6570cc8f73328885d3e950ef684c0a96911fd3838de5d4c008b56d96a702599f0b7e7f039bd65ee146a7e21
7
- data.tar.gz: e066d6dc4d56ffc7842cc26e787431d053ba441b8c2ebeaa57d57533a4eb47416778860959fb65ace91d95d965d7782591964983d762c587b998666b856e752f
6
+ metadata.gz: bdc5fe7e23ebcb5b4aabc008e042350a94ed4fafcfd41c27cfc44cafd1227f26023942fa0001d5643b4c7f67a09c7d6df1f4b8eb176679fdc0be6d97d847c79b
7
+ data.tar.gz: 4814980dd7f7a5e1c7ed2734b6738847c067e503b53fd8327a603854a0033289b5372f0ae467c01282f5cdce9208869fe8cacdb29d794d6ccb21d897c86a6283
@@ -15,7 +15,7 @@ jobs:
15
15
  strategy:
16
16
  fail-fast: false
17
17
  matrix:
18
- ruby: ["2.7", "3.0", "3.1"]
18
+ ruby: ["2.7", "3.0", "3.1", "3.2"]
19
19
 
20
20
  services:
21
21
  postgres:
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- umbrellio-utils (0.5.2)
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.3.1)
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,94 +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.1.10)
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.2)
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.0)
37
- minitest (5.16.2)
38
- nokogiri (1.13.8)
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.13.8-arm64-darwin)
41
+ nokogiri (1.14.1-arm64-darwin)
42
42
  racc (~> 1.4)
43
- nokogiri (1.13.8-x86_64-darwin)
43
+ nokogiri (1.14.1-x86_64-darwin)
44
44
  racc (~> 1.4)
45
- nokogiri (1.13.8-x86_64-linux)
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.1.2.0)
49
+ parser (3.2.0.0)
50
50
  ast (~> 2.4.1)
51
- pg (1.4.2)
52
- pry (0.14.1)
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.0)
56
- rack (2.2.4)
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.5.0)
59
+ regexp_parser (2.6.2)
60
60
  rexml (3.2.5)
61
- rspec (3.11.0)
62
- rspec-core (~> 3.11.0)
63
- rspec-expectations (~> 3.11.0)
64
- rspec-mocks (~> 3.11.0)
65
- rspec-core (3.11.0)
66
- rspec-support (~> 3.11.0)
67
- rspec-expectations (3.11.0)
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.11.0)
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.11.1)
73
+ rspec-mocks (3.12.3)
74
74
  diff-lcs (>= 1.2.0, < 2.0)
75
- rspec-support (~> 3.11.0)
76
- rspec-support (3.11.0)
77
- rubocop (1.30.1)
75
+ rspec-support (~> 3.12.0)
76
+ rspec-support (3.12.0)
77
+ rubocop (1.43.0)
78
+ json (~> 2.3)
78
79
  parallel (~> 1.10)
79
- parser (>= 3.1.0.0)
80
+ parser (>= 3.2.0.0)
80
81
  rainbow (>= 2.2.2, < 4.0)
81
82
  regexp_parser (>= 1.8, < 3.0)
82
83
  rexml (>= 3.2.5, < 4.0)
83
- rubocop-ast (>= 1.18.0, < 2.0)
84
+ rubocop-ast (>= 1.24.1, < 2.0)
84
85
  ruby-progressbar (~> 1.7)
85
- unicode-display_width (>= 1.4.0, < 3.0)
86
- rubocop-ast (1.19.1)
86
+ unicode-display_width (>= 2.4.0, < 3.0)
87
+ rubocop-ast (1.24.1)
87
88
  parser (>= 3.1.1.0)
88
- rubocop-config-umbrellio (1.30.0.65)
89
- rubocop (~> 1.30.0)
90
- rubocop-performance (~> 1.14.0)
91
- rubocop-rails (~> 2.14.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)
92
93
  rubocop-rake (~> 0.6.0)
93
- rubocop-rspec (~> 2.11.1)
94
+ rubocop-rspec (~> 2.16.0)
94
95
  rubocop-sequel (~> 0.3.3)
95
- rubocop-performance (1.14.3)
96
+ rubocop-performance (1.15.2)
96
97
  rubocop (>= 1.7.0, < 2.0)
97
98
  rubocop-ast (>= 0.4.0)
98
- rubocop-rails (2.14.2)
99
+ rubocop-rails (2.17.4)
99
100
  activesupport (>= 4.2.0)
100
101
  rack (>= 1.1)
101
- rubocop (>= 1.7.0, < 2.0)
102
+ rubocop (>= 1.33.0, < 2.0)
102
103
  rubocop-rake (0.6.0)
103
104
  rubocop (~> 1.0)
104
- rubocop-rspec (2.11.1)
105
- rubocop (~> 1.19)
105
+ rubocop-rspec (2.16.0)
106
+ rubocop (~> 1.33)
106
107
  rubocop-sequel (0.3.4)
107
108
  rubocop (~> 1.0)
108
109
  ruby-progressbar (1.11.0)
109
110
  ruby2_keywords (0.0.5)
110
- semantic_logger (4.11.0)
111
+ semantic_logger (4.12.0)
111
112
  concurrent-ruby (~> 1.0)
112
- sequel (5.58.0)
113
- simplecov (0.21.2)
113
+ sequel (5.65.0)
114
+ simplecov (0.22.0)
114
115
  docile (~> 1.1)
115
116
  simplecov-html (~> 0.11)
116
117
  simplecov_json_formatter (~> 0.1)
@@ -119,13 +120,13 @@ GEM
119
120
  simplecov_json_formatter (0.1.4)
120
121
  symbiont-ruby (0.7.0)
121
122
  thor (1.2.1)
122
- timecop (0.9.5)
123
- tzinfo (2.0.5)
123
+ timecop (0.9.6)
124
+ tzinfo (2.0.6)
124
125
  concurrent-ruby (~> 1.0)
125
- umbrellio-sequel-plugins (0.9.0.76)
126
+ umbrellio-sequel-plugins (0.11.0.143)
126
127
  sequel
127
128
  symbiont-ruby
128
- unicode-display_width (2.2.0)
129
+ unicode-display_width (2.4.2)
129
130
  webrick (1.7.0)
130
131
  yard (0.9.28)
131
132
  webrick (~> 1.7.0)
@@ -159,4 +160,4 @@ DEPENDENCIES
159
160
  yard
160
161
 
161
162
  BUNDLED WITH
162
- 2.3.19
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+\-].?)+@[a-z\d\-]+(\.[a-z]+)*\.[a-z]+\z/i.freeze
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
 
@@ -73,7 +73,7 @@ module UmbrellioUtils
73
73
  log.message,
74
74
  log.tags,
75
75
  log.named_tags,
76
- log.time.utc.iso8601(3),
76
+ log.time.utc.iso8601(9),
77
77
  ]
78
78
  end
79
79
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UmbrellioUtils
4
- VERSION = "0.5.2"
4
+ VERSION = "0.6.1"
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: 0.5.2
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: 2022-08-02 00:00:00.000000000 Z
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.3.17
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