daffy_lib 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/.github/dependabot.yml +43 -0
- data/.rubocop.yml +8 -1
- data/Gemfile +3 -1
- data/Gemfile.lock +193 -173
- data/daffy_lib.gemspec +3 -1
- data/lib/daffy_lib/caching_encryptor.rb +0 -1
- data/lib/daffy_lib/concerns/has_guid.rb +1 -1
- data/lib/daffy_lib/validators/string_validator.rb +1 -1
- data/lib/daffy_lib/version.rb +1 -1
- data/lib/tasks/db_tasks.rake +7 -7
- metadata +6 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c55e1109a39d30fa0b17f66bede6802bb54819f2a851aa8e9109467a6f93033
|
4
|
+
data.tar.gz: f0e9293bb91821a034ee6ede084a69cb19655aeb2a1c3695eba78a6779c80d81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58569a2ed1c79b6b9130f7b06b3f27952e89f09704062e2da1ce6a0546efe4e8b765550ea49d602d1949bbc484e806d291e2a5644af2ad5b61014808ee55ad5a
|
7
|
+
data.tar.gz: b4440329beacd0fb02011e5b2abb847a29baeecb0e9be82c761d69c2b419106fafc03f528855483c0849943baebd46fb383b4f951955536fcfa53776ad4f76fa
|
data/.circleci/config.yml
CHANGED
@@ -0,0 +1,43 @@
|
|
1
|
+
version: 2
|
2
|
+
|
3
|
+
updates:
|
4
|
+
- package-ecosystem: bundler
|
5
|
+
directory: "/"
|
6
|
+
schedule:
|
7
|
+
interval: daily
|
8
|
+
open-pull-requests-limit: 10
|
9
|
+
reviewers:
|
10
|
+
- weiyunlu
|
11
|
+
assignees:
|
12
|
+
- weiyunlu
|
13
|
+
ignore:
|
14
|
+
- dependency-name: rubocop
|
15
|
+
versions:
|
16
|
+
- 1.10.0
|
17
|
+
- 1.11.0
|
18
|
+
- 1.12.1
|
19
|
+
- 1.9.0
|
20
|
+
- dependency-name: rspec-rails
|
21
|
+
versions:
|
22
|
+
- 4.1.0
|
23
|
+
- 4.1.1
|
24
|
+
- dependency-name: codecov
|
25
|
+
versions:
|
26
|
+
- 0.5.0
|
27
|
+
- dependency-name: rubocop-performance
|
28
|
+
versions:
|
29
|
+
- 1.10.0
|
30
|
+
- dependency-name: actionpack
|
31
|
+
versions:
|
32
|
+
- 6.1.2.1
|
33
|
+
- dependency-name: rails
|
34
|
+
versions:
|
35
|
+
- 6.1.2
|
36
|
+
- 6.1.2.1
|
37
|
+
- dependency-name: timecop
|
38
|
+
versions:
|
39
|
+
- 0.9.2
|
40
|
+
- 0.9.3
|
41
|
+
- dependency-name: rubocop-rspec
|
42
|
+
versions:
|
43
|
+
- 1.44.1
|
data/.rubocop.yml
CHANGED
@@ -3,13 +3,14 @@ require:
|
|
3
3
|
- rubocop-performance
|
4
4
|
|
5
5
|
AllCops:
|
6
|
+
NewCops: enable
|
6
7
|
Exclude:
|
7
8
|
- bin/*
|
8
9
|
- db/**/*.rb
|
9
10
|
- node_modules/**/*
|
10
11
|
- output/**/*
|
11
12
|
- vendor/**/*
|
12
|
-
TargetRubyVersion: 2.7.
|
13
|
+
TargetRubyVersion: 2.7.2
|
13
14
|
RSpec:
|
14
15
|
Patterns:
|
15
16
|
- _spec.rb
|
@@ -59,6 +60,9 @@ RSpec/MultipleExpectations:
|
|
59
60
|
RSpec/ExampleLength:
|
60
61
|
Max: 10
|
61
62
|
|
63
|
+
RSpec/MultipleMemoizedHelpers:
|
64
|
+
Enabled: false
|
65
|
+
|
62
66
|
Style/HashEachMethods:
|
63
67
|
Enabled: true
|
64
68
|
|
@@ -152,6 +156,9 @@ Style/HashLikeCase:
|
|
152
156
|
Style/RedundantFileExtensionInRequire:
|
153
157
|
Enabled: true
|
154
158
|
|
159
|
+
Layout/EmptyLineBetweenDefs:
|
160
|
+
Enabled: false
|
161
|
+
|
155
162
|
Lint/BinaryOperatorWithIdenticalOperands:
|
156
163
|
Enabled: true
|
157
164
|
|
data/Gemfile
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
ruby '
|
3
|
+
ruby '3.0.2'
|
4
4
|
|
5
5
|
source "https://rubygems.org"
|
6
6
|
|
7
7
|
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
8
8
|
|
9
|
+
gem 'attr_encrypted', github: 'Zetatango/attr_encrypted'
|
10
|
+
|
9
11
|
# Specify your gem's dependencies in porky_lib.gemspec
|
10
12
|
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,14 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/Zetatango/attr_encrypted
|
3
|
+
revision: d75795ec86f9980dfc12235b7eb4ee7834c80f85
|
4
|
+
specs:
|
5
|
+
attr_encrypted (3.1.0)
|
6
|
+
encryptor (~> 3.0.0)
|
7
|
+
|
1
8
|
PATH
|
2
9
|
remote: .
|
3
10
|
specs:
|
4
|
-
daffy_lib (0.1.
|
11
|
+
daffy_lib (0.1.8)
|
5
12
|
porky_lib
|
6
13
|
rails
|
7
14
|
redis
|
@@ -9,126 +16,138 @@ PATH
|
|
9
16
|
GEM
|
10
17
|
remote: https://rubygems.org/
|
11
18
|
specs:
|
12
|
-
actioncable (
|
13
|
-
actionpack (=
|
19
|
+
actioncable (7.0.4)
|
20
|
+
actionpack (= 7.0.4)
|
21
|
+
activesupport (= 7.0.4)
|
14
22
|
nio4r (~> 2.0)
|
15
23
|
websocket-driver (>= 0.6.1)
|
16
|
-
actionmailbox (
|
17
|
-
actionpack (=
|
18
|
-
activejob (=
|
19
|
-
activerecord (=
|
20
|
-
activestorage (=
|
21
|
-
activesupport (=
|
24
|
+
actionmailbox (7.0.4)
|
25
|
+
actionpack (= 7.0.4)
|
26
|
+
activejob (= 7.0.4)
|
27
|
+
activerecord (= 7.0.4)
|
28
|
+
activestorage (= 7.0.4)
|
29
|
+
activesupport (= 7.0.4)
|
22
30
|
mail (>= 2.7.1)
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
31
|
+
net-imap
|
32
|
+
net-pop
|
33
|
+
net-smtp
|
34
|
+
actionmailer (7.0.4)
|
35
|
+
actionpack (= 7.0.4)
|
36
|
+
actionview (= 7.0.4)
|
37
|
+
activejob (= 7.0.4)
|
38
|
+
activesupport (= 7.0.4)
|
27
39
|
mail (~> 2.5, >= 2.5.4)
|
40
|
+
net-imap
|
41
|
+
net-pop
|
42
|
+
net-smtp
|
28
43
|
rails-dom-testing (~> 2.0)
|
29
|
-
actionpack (
|
30
|
-
actionview (=
|
31
|
-
activesupport (=
|
32
|
-
rack (~> 2.0, >= 2.0
|
44
|
+
actionpack (7.0.4)
|
45
|
+
actionview (= 7.0.4)
|
46
|
+
activesupport (= 7.0.4)
|
47
|
+
rack (~> 2.0, >= 2.2.0)
|
33
48
|
rack-test (>= 0.6.3)
|
34
49
|
rails-dom-testing (~> 2.0)
|
35
50
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
36
|
-
actiontext (
|
37
|
-
actionpack (=
|
38
|
-
activerecord (=
|
39
|
-
activestorage (=
|
40
|
-
activesupport (=
|
51
|
+
actiontext (7.0.4)
|
52
|
+
actionpack (= 7.0.4)
|
53
|
+
activerecord (= 7.0.4)
|
54
|
+
activestorage (= 7.0.4)
|
55
|
+
activesupport (= 7.0.4)
|
56
|
+
globalid (>= 0.6.0)
|
41
57
|
nokogiri (>= 1.8.5)
|
42
|
-
actionview (
|
43
|
-
activesupport (=
|
58
|
+
actionview (7.0.4)
|
59
|
+
activesupport (= 7.0.4)
|
44
60
|
builder (~> 3.1)
|
45
61
|
erubi (~> 1.4)
|
46
62
|
rails-dom-testing (~> 2.0)
|
47
63
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
48
|
-
activejob (
|
49
|
-
activesupport (=
|
64
|
+
activejob (7.0.4)
|
65
|
+
activesupport (= 7.0.4)
|
50
66
|
globalid (>= 0.3.6)
|
51
|
-
activemodel (
|
52
|
-
activesupport (=
|
53
|
-
activerecord (
|
54
|
-
activemodel (=
|
55
|
-
activesupport (=
|
56
|
-
activestorage (
|
57
|
-
actionpack (=
|
58
|
-
activejob (=
|
59
|
-
activerecord (=
|
60
|
-
|
61
|
-
|
67
|
+
activemodel (7.0.4)
|
68
|
+
activesupport (= 7.0.4)
|
69
|
+
activerecord (7.0.4)
|
70
|
+
activemodel (= 7.0.4)
|
71
|
+
activesupport (= 7.0.4)
|
72
|
+
activestorage (7.0.4)
|
73
|
+
actionpack (= 7.0.4)
|
74
|
+
activejob (= 7.0.4)
|
75
|
+
activerecord (= 7.0.4)
|
76
|
+
activesupport (= 7.0.4)
|
77
|
+
marcel (~> 1.0)
|
78
|
+
mini_mime (>= 1.1.0)
|
79
|
+
activesupport (7.0.4)
|
62
80
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
63
|
-
i18n (>=
|
64
|
-
minitest (
|
65
|
-
tzinfo (~>
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
aws-eventstream (1.1.0)
|
71
|
-
aws-partitions (1.416.0)
|
72
|
-
aws-sdk-core (3.111.1)
|
81
|
+
i18n (>= 1.6, < 2)
|
82
|
+
minitest (>= 5.1)
|
83
|
+
tzinfo (~> 2.0)
|
84
|
+
ast (2.4.2)
|
85
|
+
aws-eventstream (1.2.0)
|
86
|
+
aws-partitions (1.666.0)
|
87
|
+
aws-sdk-core (3.168.1)
|
73
88
|
aws-eventstream (~> 1, >= 1.0.2)
|
74
|
-
aws-partitions (~> 1, >= 1.
|
75
|
-
aws-sigv4 (~> 1.
|
76
|
-
jmespath (~> 1.
|
77
|
-
aws-sdk-kms (1.
|
78
|
-
aws-sdk-core (~> 3, >= 3.
|
89
|
+
aws-partitions (~> 1, >= 1.651.0)
|
90
|
+
aws-sigv4 (~> 1.5)
|
91
|
+
jmespath (~> 1, >= 1.6.1)
|
92
|
+
aws-sdk-kms (1.59.0)
|
93
|
+
aws-sdk-core (~> 3, >= 3.165.0)
|
79
94
|
aws-sigv4 (~> 1.1)
|
80
|
-
aws-sdk-s3 (1.
|
81
|
-
aws-sdk-core (~> 3, >= 3.
|
95
|
+
aws-sdk-s3 (1.117.1)
|
96
|
+
aws-sdk-core (~> 3, >= 3.165.0)
|
82
97
|
aws-sdk-kms (~> 1)
|
83
|
-
aws-sigv4 (~> 1.
|
84
|
-
aws-sigv4 (1.
|
98
|
+
aws-sigv4 (~> 1.4)
|
99
|
+
aws-sigv4 (1.5.2)
|
85
100
|
aws-eventstream (~> 1, >= 1.0.2)
|
86
101
|
builder (3.2.4)
|
87
|
-
bundler-audit (0.
|
102
|
+
bundler-audit (0.9.1)
|
88
103
|
bundler (>= 1.2.0, < 3)
|
89
|
-
thor (
|
90
|
-
codecov (0.
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
colorize (0.8.1)
|
95
|
-
concurrent-ruby (1.1.7)
|
104
|
+
thor (~> 1.0)
|
105
|
+
codecov (0.6.0)
|
106
|
+
simplecov (>= 0.15, < 0.22)
|
107
|
+
concurrent-ruby (1.1.10)
|
108
|
+
connection_pool (2.3.0)
|
96
109
|
crass (1.0.6)
|
97
|
-
diff-lcs (1.
|
98
|
-
docile (1.
|
110
|
+
diff-lcs (1.5.0)
|
111
|
+
docile (1.4.0)
|
99
112
|
encryptor (3.0.0)
|
100
|
-
erubi (1.
|
101
|
-
factory_bot (6.
|
113
|
+
erubi (1.11.0)
|
114
|
+
factory_bot (6.2.0)
|
102
115
|
activesupport (>= 5.0.0)
|
103
|
-
factory_bot_rails (6.
|
104
|
-
factory_bot (~> 6.
|
116
|
+
factory_bot_rails (6.2.0)
|
117
|
+
factory_bot (~> 6.2.0)
|
105
118
|
railties (>= 5.0.0)
|
106
|
-
ffi (1.
|
107
|
-
globalid (0.
|
108
|
-
activesupport (>=
|
109
|
-
i18n (1.
|
119
|
+
ffi (1.15.5)
|
120
|
+
globalid (1.0.0)
|
121
|
+
activesupport (>= 5.0)
|
122
|
+
i18n (1.12.0)
|
110
123
|
concurrent-ruby (~> 1.0)
|
111
|
-
jmespath (1.
|
112
|
-
json (2.
|
113
|
-
loofah (2.
|
124
|
+
jmespath (1.6.2)
|
125
|
+
json (2.6.2)
|
126
|
+
loofah (2.19.0)
|
114
127
|
crass (~> 1.0.2)
|
115
128
|
nokogiri (>= 1.5.9)
|
116
129
|
mail (2.7.1)
|
117
130
|
mini_mime (>= 0.1.1)
|
118
|
-
marcel (0.
|
119
|
-
mimemagic (~> 0.3.2)
|
131
|
+
marcel (1.0.2)
|
120
132
|
method_source (1.0.0)
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
133
|
+
mini_mime (1.1.2)
|
134
|
+
mini_portile2 (2.8.0)
|
135
|
+
minitest (5.16.3)
|
136
|
+
msgpack (1.6.0)
|
137
|
+
net-imap (0.3.1)
|
138
|
+
net-protocol
|
139
|
+
net-pop (0.1.2)
|
140
|
+
net-protocol
|
141
|
+
net-protocol (0.1.3)
|
142
|
+
timeout
|
143
|
+
net-smtp (0.3.3)
|
144
|
+
net-protocol
|
145
|
+
nio4r (2.5.8)
|
146
|
+
nokogiri (1.13.9)
|
147
|
+
mini_portile2 (~> 2.8.0)
|
129
148
|
racc (~> 1.4)
|
130
|
-
parallel (1.
|
131
|
-
parser (2.
|
149
|
+
parallel (1.22.1)
|
150
|
+
parser (3.1.2.1)
|
132
151
|
ast (~> 2.4.1)
|
133
152
|
porky_lib (0.11.0)
|
134
153
|
aws-sdk-kms
|
@@ -136,115 +155,116 @@ GEM
|
|
136
155
|
msgpack
|
137
156
|
rbnacl (= 5.0.0)
|
138
157
|
rbnacl-libsodium
|
139
|
-
racc (1.
|
140
|
-
rack (2.2.
|
141
|
-
rack-test (
|
142
|
-
rack (>= 1.
|
143
|
-
rails (
|
144
|
-
actioncable (=
|
145
|
-
actionmailbox (=
|
146
|
-
actionmailer (=
|
147
|
-
actionpack (=
|
148
|
-
actiontext (=
|
149
|
-
actionview (=
|
150
|
-
activejob (=
|
151
|
-
activemodel (=
|
152
|
-
activerecord (=
|
153
|
-
activestorage (=
|
154
|
-
activesupport (=
|
155
|
-
bundler (>= 1.
|
156
|
-
railties (=
|
157
|
-
sprockets-rails (>= 2.0.0)
|
158
|
+
racc (1.6.0)
|
159
|
+
rack (2.2.4)
|
160
|
+
rack-test (2.0.2)
|
161
|
+
rack (>= 1.3)
|
162
|
+
rails (7.0.4)
|
163
|
+
actioncable (= 7.0.4)
|
164
|
+
actionmailbox (= 7.0.4)
|
165
|
+
actionmailer (= 7.0.4)
|
166
|
+
actionpack (= 7.0.4)
|
167
|
+
actiontext (= 7.0.4)
|
168
|
+
actionview (= 7.0.4)
|
169
|
+
activejob (= 7.0.4)
|
170
|
+
activemodel (= 7.0.4)
|
171
|
+
activerecord (= 7.0.4)
|
172
|
+
activestorage (= 7.0.4)
|
173
|
+
activesupport (= 7.0.4)
|
174
|
+
bundler (>= 1.15.0)
|
175
|
+
railties (= 7.0.4)
|
158
176
|
rails-dom-testing (2.0.3)
|
159
177
|
activesupport (>= 4.2.0)
|
160
178
|
nokogiri (>= 1.6)
|
161
|
-
rails-html-sanitizer (1.3
|
179
|
+
rails-html-sanitizer (1.4.3)
|
162
180
|
loofah (~> 2.3)
|
163
|
-
railties (
|
164
|
-
actionpack (=
|
165
|
-
activesupport (=
|
181
|
+
railties (7.0.4)
|
182
|
+
actionpack (= 7.0.4)
|
183
|
+
activesupport (= 7.0.4)
|
166
184
|
method_source
|
167
|
-
rake (>=
|
168
|
-
thor (
|
169
|
-
|
170
|
-
|
185
|
+
rake (>= 12.2)
|
186
|
+
thor (~> 1.0)
|
187
|
+
zeitwerk (~> 2.5)
|
188
|
+
rainbow (3.1.1)
|
189
|
+
rake (13.0.6)
|
171
190
|
rbnacl (5.0.0)
|
172
191
|
ffi
|
173
192
|
rbnacl-libsodium (1.0.16)
|
174
193
|
rbnacl (>= 3.0.1)
|
175
|
-
redis (
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
194
|
+
redis (5.0.5)
|
195
|
+
redis-client (>= 0.9.0)
|
196
|
+
redis-client (0.11.2)
|
197
|
+
connection_pool
|
198
|
+
regexp_parser (2.6.0)
|
199
|
+
rexml (3.2.5)
|
200
|
+
rspec (3.12.0)
|
201
|
+
rspec-core (~> 3.12.0)
|
202
|
+
rspec-expectations (~> 3.12.0)
|
203
|
+
rspec-mocks (~> 3.12.0)
|
182
204
|
rspec-collection_matchers (1.2.0)
|
183
205
|
rspec-expectations (>= 2.99.0.beta1)
|
184
|
-
rspec-core (3.
|
185
|
-
rspec-support (~> 3.
|
186
|
-
rspec-expectations (3.
|
206
|
+
rspec-core (3.12.0)
|
207
|
+
rspec-support (~> 3.12.0)
|
208
|
+
rspec-expectations (3.12.0)
|
187
209
|
diff-lcs (>= 1.2.0, < 2.0)
|
188
|
-
rspec-support (~> 3.
|
189
|
-
rspec-mocks (3.
|
210
|
+
rspec-support (~> 3.12.0)
|
211
|
+
rspec-mocks (3.12.0)
|
190
212
|
diff-lcs (>= 1.2.0, < 2.0)
|
191
|
-
rspec-support (~> 3.
|
192
|
-
rspec-rails (
|
193
|
-
actionpack (>=
|
194
|
-
activesupport (>=
|
195
|
-
railties (>=
|
196
|
-
rspec-core (~> 3.
|
197
|
-
rspec-expectations (~> 3.
|
198
|
-
rspec-mocks (~> 3.
|
199
|
-
rspec-support (~> 3.
|
200
|
-
rspec-support (3.
|
201
|
-
rspec_junit_formatter (0.
|
213
|
+
rspec-support (~> 3.12.0)
|
214
|
+
rspec-rails (6.0.1)
|
215
|
+
actionpack (>= 6.1)
|
216
|
+
activesupport (>= 6.1)
|
217
|
+
railties (>= 6.1)
|
218
|
+
rspec-core (~> 3.11)
|
219
|
+
rspec-expectations (~> 3.11)
|
220
|
+
rspec-mocks (~> 3.11)
|
221
|
+
rspec-support (~> 3.11)
|
222
|
+
rspec-support (3.12.0)
|
223
|
+
rspec_junit_formatter (0.6.0)
|
202
224
|
rspec-core (>= 2, < 4, != 2.12.0)
|
203
|
-
rubocop (
|
225
|
+
rubocop (1.39.0)
|
226
|
+
json (~> 2.3)
|
204
227
|
parallel (~> 1.10)
|
205
|
-
parser (>=
|
228
|
+
parser (>= 3.1.2.1)
|
206
229
|
rainbow (>= 2.2.2, < 4.0)
|
207
|
-
regexp_parser (>= 1.
|
208
|
-
rexml
|
209
|
-
rubocop-ast (>=
|
230
|
+
regexp_parser (>= 1.8, < 3.0)
|
231
|
+
rexml (>= 3.2.5, < 4.0)
|
232
|
+
rubocop-ast (>= 1.23.0, < 2.0)
|
210
233
|
ruby-progressbar (~> 1.7)
|
211
|
-
unicode-display_width (>= 1.4.0, <
|
212
|
-
rubocop-ast (
|
213
|
-
parser (>=
|
214
|
-
rubocop-performance (1.
|
215
|
-
rubocop (>=
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
234
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
235
|
+
rubocop-ast (1.23.0)
|
236
|
+
parser (>= 3.1.1.0)
|
237
|
+
rubocop-performance (1.15.1)
|
238
|
+
rubocop (>= 1.7.0, < 2.0)
|
239
|
+
rubocop-ast (>= 0.4.0)
|
240
|
+
rubocop-rspec (2.15.0)
|
241
|
+
rubocop (~> 1.33)
|
242
|
+
rubocop_runner (2.2.1)
|
243
|
+
ruby-progressbar (1.11.0)
|
244
|
+
simplecov (0.21.2)
|
221
245
|
docile (~> 1.1)
|
222
246
|
simplecov-html (~> 0.11)
|
223
|
-
|
224
|
-
|
247
|
+
simplecov_json_formatter (~> 0.1)
|
248
|
+
simplecov-html (0.12.3)
|
249
|
+
simplecov_json_formatter (0.1.3)
|
250
|
+
sqlite3 (1.5.4)
|
251
|
+
mini_portile2 (~> 2.8.0)
|
252
|
+
thor (1.2.1)
|
253
|
+
timecop (0.9.5)
|
254
|
+
timeout (0.3.0)
|
255
|
+
tzinfo (2.0.5)
|
225
256
|
concurrent-ruby (~> 1.0)
|
226
|
-
|
227
|
-
|
228
|
-
actionpack (>= 4.0)
|
229
|
-
activesupport (>= 4.0)
|
230
|
-
sprockets (>= 3.0.0)
|
231
|
-
sqlite3 (1.4.2)
|
232
|
-
thor (1.0.1)
|
233
|
-
thread_safe (0.3.6)
|
234
|
-
timecop (0.9.1)
|
235
|
-
tzinfo (1.2.7)
|
236
|
-
thread_safe (~> 0.1)
|
237
|
-
unicode-display_width (1.7.0)
|
238
|
-
websocket-driver (0.7.3)
|
257
|
+
unicode-display_width (2.3.0)
|
258
|
+
websocket-driver (0.7.5)
|
239
259
|
websocket-extensions (>= 0.1.0)
|
240
260
|
websocket-extensions (0.1.5)
|
241
|
-
zeitwerk (2.
|
261
|
+
zeitwerk (2.6.1)
|
242
262
|
|
243
263
|
PLATFORMS
|
244
264
|
ruby
|
245
265
|
|
246
266
|
DEPENDENCIES
|
247
|
-
attr_encrypted
|
267
|
+
attr_encrypted!
|
248
268
|
bundler
|
249
269
|
bundler-audit
|
250
270
|
codecov
|
@@ -265,7 +285,7 @@ DEPENDENCIES
|
|
265
285
|
timecop
|
266
286
|
|
267
287
|
RUBY VERSION
|
268
|
-
ruby
|
288
|
+
ruby 3.0.2p107
|
269
289
|
|
270
290
|
BUNDLED WITH
|
271
|
-
2.
|
291
|
+
2.2.22
|
data/daffy_lib.gemspec
CHANGED
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
spec.add_development_dependency 'attr_encrypted'
|
24
23
|
spec.add_development_dependency 'bundler'
|
25
24
|
spec.add_development_dependency 'bundler-audit'
|
26
25
|
spec.add_development_dependency 'codecov'
|
@@ -42,4 +41,7 @@ Gem::Specification.new do |spec|
|
|
42
41
|
spec.add_dependency 'porky_lib'
|
43
42
|
spec.add_dependency 'rails'
|
44
43
|
spec.add_dependency 'redis'
|
44
|
+
spec.metadata = {
|
45
|
+
'rubygems_mfa_required' => 'true'
|
46
|
+
}
|
45
47
|
end
|
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
class DaffyLib::CachingEncryptor
|
4
4
|
class CachingEncryptorException < StandardError; end
|
5
|
-
|
6
5
|
class EncryptionFailedException < CachingEncryptorException; end
|
7
6
|
class DecryptionFailedException < CachingEncryptorException; end
|
8
7
|
class InvalidParameterException < CachingEncryptorException; end
|
@@ -30,7 +30,7 @@ module DaffyLib::HasGuid
|
|
30
30
|
validate :ensure_guid_does_not_change
|
31
31
|
|
32
32
|
def dup
|
33
|
-
super.tap { |duplicate| duplicate.guid = nil if duplicate.respond_to?(
|
33
|
+
super.tap { |duplicate| duplicate.guid = nil if duplicate.respond_to?(:guid=) }
|
34
34
|
end
|
35
35
|
|
36
36
|
def to_param
|
@@ -12,7 +12,7 @@ class DaffyLib::StringValidator < ActiveModel::Validator
|
|
12
12
|
|
13
13
|
sanitized_attr = ActionController::Base.helpers.sanitize(record[field])
|
14
14
|
decoded_attr = Nokogiri::HTML.parse(sanitized_attr.to_s)
|
15
|
-
record.errors
|
15
|
+
record.errors.add(field, 'contains invalid characters...') unless record[field] == decoded_attr.text || record[field].blank?
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
data/lib/daffy_lib/version.rb
CHANGED
data/lib/tasks/db_tasks.rake
CHANGED
@@ -11,18 +11,18 @@ namespace :db do
|
|
11
11
|
|
12
12
|
abort 'Need to provide `model` as argument' if model.blank?
|
13
13
|
|
14
|
-
`rails generate migration AddEncryptionKeysTo#{model} partition_guid:string
|
14
|
+
`rails generate migration AddEncryptionKeysTo#{model} partition_guid:string \ \
|
15
15
|
encryption_epoch:datetime`
|
16
16
|
end
|
17
17
|
|
18
18
|
desc "Migrates the database by adding the encryption_keys table"
|
19
19
|
task :add_encryption_keys_table do
|
20
|
-
`rails generate migration CreateEncryptionKeys guid:string
|
21
|
-
partition_guid:string
|
22
|
-
key_epoch:datetime
|
23
|
-
encrypted_data_encryption_key:string
|
24
|
-
version:string
|
25
|
-
created_at:datetime
|
20
|
+
`rails generate migration CreateEncryptionKeys guid:string \ \
|
21
|
+
partition_guid:string \ \
|
22
|
+
key_epoch:datetime \ \
|
23
|
+
encrypted_data_encryption_key:string \ \
|
24
|
+
version:string \ \
|
25
|
+
created_at:datetime \ \
|
26
26
|
updated_at:datetime`
|
27
27
|
end
|
28
28
|
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daffy_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoît Jeaurond, Weiyun Lu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: attr_encrypted
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: bundler
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -312,6 +298,7 @@ extensions: []
|
|
312
298
|
extra_rdoc_files: []
|
313
299
|
files:
|
314
300
|
- ".circleci/config.yml"
|
301
|
+
- ".github/dependabot.yml"
|
315
302
|
- ".github/pull_request_template.md"
|
316
303
|
- ".gitignore"
|
317
304
|
- ".rspec"
|
@@ -340,7 +327,8 @@ files:
|
|
340
327
|
- lib/tasks/db_tasks.rake
|
341
328
|
homepage: https://github.com/Zetatango/daffy_lib
|
342
329
|
licenses: []
|
343
|
-
metadata:
|
330
|
+
metadata:
|
331
|
+
rubygems_mfa_required: 'true'
|
344
332
|
post_install_message:
|
345
333
|
rdoc_options: []
|
346
334
|
require_paths:
|
@@ -356,7 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
356
344
|
- !ruby/object:Gem::Version
|
357
345
|
version: '0'
|
358
346
|
requirements: []
|
359
|
-
rubygems_version: 3.
|
347
|
+
rubygems_version: 3.2.22
|
360
348
|
signing_key:
|
361
349
|
specification_version: 4
|
362
350
|
summary: A library for caching encryptor
|