data_taster 0.4.2 → 0.5.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/.rubocop.yml +0 -8
- data/Appraisals +6 -8
- data/Gemfile +1 -5
- data/Gemfile.lock +176 -158
- data/config.ru +9 -0
- data/docs/CHANGELOG.md +43 -0
- data/gemfiles/rails_7_1.gemfile +11 -0
- data/gemfiles/rails_7_1.gemfile.lock +354 -0
- data/gemfiles/rails_7_2.gemfile +11 -0
- data/gemfiles/rails_7_2.gemfile.lock +348 -0
- data/lib/data_taster/adapters/database_output.rb +80 -0
- data/lib/data_taster/adapters/file_output.rb +75 -0
- data/lib/data_taster/adapters/mysql_source.rb +23 -0
- data/lib/data_taster/adapters/output.rb +37 -0
- data/lib/data_taster/collection.rb +10 -15
- data/lib/data_taster/confection.rb +1 -3
- data/lib/data_taster/detergent.rb +31 -6
- data/lib/data_taster/export_context.rb +31 -0
- data/lib/data_taster/helper.rb +3 -1
- data/lib/data_taster/sanitizer.rb +27 -9
- data/lib/data_taster/sanitizer_exporter.rb +65 -0
- data/lib/data_taster/sql_literal.rb +102 -0
- data/lib/data_taster/version.rb +1 -1
- data/lib/data_taster.rb +32 -26
- data/sig/data_taster.rbs +66 -1
- metadata +55 -33
- data/gemfiles/rails_6_0.gemfile +0 -12
- data/gemfiles/rails_6_0.gemfile.lock +0 -271
- data/gemfiles/rails_6_1.gemfile +0 -12
- data/gemfiles/rails_6_1.gemfile.lock +0 -274
- data/gemfiles/rails_7_0.gemfile +0 -12
- data/gemfiles/rails_7_0.gemfile.lock +0 -273
- data/lib/data_taster/sample.rb +0 -45
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11d56e26a4a1c6e622d7ef2e520cb8f613a25fe2d85913d4848040cf8353fbb1
|
|
4
|
+
data.tar.gz: 0623f9f5543eef0469b11f9dbf22cefd489ef849fb4bb7809449d5cff10c1e1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5e1334b7a9c32432f8441a81f99c430672b72709755e8a23844b39b57fb8b11ddeb438e4ac48e33cabebe5de4233d44a787c445210aacad029cf8bbeeb3f933
|
|
7
|
+
data.tar.gz: 4834fee985c8e849b5e0c29022539e8e6b6edcbefb474d207d75ec6426d93d3428cbbb6118e98139e4a825c85707c95f583306a02894583f674c30f73a038255
|
data/.rubocop.yml
CHANGED
data/Appraisals
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
appraise "rails-
|
|
4
|
-
gem "rails", "
|
|
3
|
+
appraise "rails-7-1" do
|
|
4
|
+
gem "rails", "7.1.5.2"
|
|
5
|
+
gem "rspec-rails", "~> 7.1.1"
|
|
5
6
|
end
|
|
6
7
|
|
|
7
|
-
appraise "rails-
|
|
8
|
-
gem "rails", "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
appraise "rails-7-0" do
|
|
12
|
-
gem "rails", "7.0.8.1"
|
|
8
|
+
appraise "rails-7-2" do
|
|
9
|
+
gem "rails", "7.2.2.2"
|
|
10
|
+
gem "rspec-rails", "~> 8.0.1"
|
|
13
11
|
end
|
data/Gemfile
CHANGED
|
@@ -4,8 +4,4 @@ source "https://rubygems.org"
|
|
|
4
4
|
|
|
5
5
|
gemspec
|
|
6
6
|
|
|
7
|
-
gem "
|
|
8
|
-
gem "net-imap", "< 0.5.0"
|
|
9
|
-
gem "rubocop-powerhome", path: "../rubocop-powerhome", tag: "v0.5.2-rubocop-powerhome"
|
|
10
|
-
gem "securerandom", "< 0.4.0"
|
|
11
|
-
gem "zeitwerk", "< 2.7.0"
|
|
7
|
+
gem "rubocop-powerhome", path: "../rubocop-powerhome"
|
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../rubocop-powerhome
|
|
3
3
|
specs:
|
|
4
|
-
rubocop-powerhome (0.
|
|
5
|
-
rubocop (= 1.
|
|
4
|
+
rubocop-powerhome (0.6.1)
|
|
5
|
+
rubocop (= 1.82.1)
|
|
6
6
|
rubocop-performance
|
|
7
7
|
rubocop-rails
|
|
8
8
|
rubocop-rake
|
|
@@ -11,119 +11,121 @@ PATH
|
|
|
11
11
|
PATH
|
|
12
12
|
remote: .
|
|
13
13
|
specs:
|
|
14
|
-
data_taster (0.
|
|
15
|
-
|
|
16
|
-
rails (>= 6.0)
|
|
14
|
+
data_taster (0.5.0)
|
|
15
|
+
rails (>= 6.1, < 8)
|
|
17
16
|
|
|
18
17
|
GEM
|
|
19
18
|
remote: https://rubygems.org/
|
|
20
19
|
specs:
|
|
21
|
-
actioncable (7.
|
|
22
|
-
actionpack (= 7.
|
|
23
|
-
activesupport (= 7.
|
|
20
|
+
actioncable (7.2.3.1)
|
|
21
|
+
actionpack (= 7.2.3.1)
|
|
22
|
+
activesupport (= 7.2.3.1)
|
|
24
23
|
nio4r (~> 2.0)
|
|
25
24
|
websocket-driver (>= 0.6.1)
|
|
26
25
|
zeitwerk (~> 2.6)
|
|
27
|
-
actionmailbox (7.
|
|
28
|
-
actionpack (= 7.
|
|
29
|
-
activejob (= 7.
|
|
30
|
-
activerecord (= 7.
|
|
31
|
-
activestorage (= 7.
|
|
32
|
-
activesupport (= 7.
|
|
33
|
-
mail (>= 2.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
activejob (= 7.1.5.1)
|
|
41
|
-
activesupport (= 7.1.5.1)
|
|
42
|
-
mail (~> 2.5, >= 2.5.4)
|
|
43
|
-
net-imap
|
|
44
|
-
net-pop
|
|
45
|
-
net-smtp
|
|
26
|
+
actionmailbox (7.2.3.1)
|
|
27
|
+
actionpack (= 7.2.3.1)
|
|
28
|
+
activejob (= 7.2.3.1)
|
|
29
|
+
activerecord (= 7.2.3.1)
|
|
30
|
+
activestorage (= 7.2.3.1)
|
|
31
|
+
activesupport (= 7.2.3.1)
|
|
32
|
+
mail (>= 2.8.0)
|
|
33
|
+
actionmailer (7.2.3.1)
|
|
34
|
+
actionpack (= 7.2.3.1)
|
|
35
|
+
actionview (= 7.2.3.1)
|
|
36
|
+
activejob (= 7.2.3.1)
|
|
37
|
+
activesupport (= 7.2.3.1)
|
|
38
|
+
mail (>= 2.8.0)
|
|
46
39
|
rails-dom-testing (~> 2.2)
|
|
47
|
-
actionpack (7.
|
|
48
|
-
actionview (= 7.
|
|
49
|
-
activesupport (= 7.
|
|
40
|
+
actionpack (7.2.3.1)
|
|
41
|
+
actionview (= 7.2.3.1)
|
|
42
|
+
activesupport (= 7.2.3.1)
|
|
43
|
+
cgi
|
|
50
44
|
nokogiri (>= 1.8.5)
|
|
51
45
|
racc
|
|
52
|
-
rack (>= 2.2.4)
|
|
46
|
+
rack (>= 2.2.4, < 3.3)
|
|
53
47
|
rack-session (>= 1.0.1)
|
|
54
48
|
rack-test (>= 0.6.3)
|
|
55
49
|
rails-dom-testing (~> 2.2)
|
|
56
50
|
rails-html-sanitizer (~> 1.6)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
useragent (~> 0.16)
|
|
52
|
+
actiontext (7.2.3.1)
|
|
53
|
+
actionpack (= 7.2.3.1)
|
|
54
|
+
activerecord (= 7.2.3.1)
|
|
55
|
+
activestorage (= 7.2.3.1)
|
|
56
|
+
activesupport (= 7.2.3.1)
|
|
62
57
|
globalid (>= 0.6.0)
|
|
63
58
|
nokogiri (>= 1.8.5)
|
|
64
|
-
actionview (7.
|
|
65
|
-
activesupport (= 7.
|
|
59
|
+
actionview (7.2.3.1)
|
|
60
|
+
activesupport (= 7.2.3.1)
|
|
66
61
|
builder (~> 3.1)
|
|
62
|
+
cgi
|
|
67
63
|
erubi (~> 1.11)
|
|
68
64
|
rails-dom-testing (~> 2.2)
|
|
69
65
|
rails-html-sanitizer (~> 1.6)
|
|
70
|
-
activejob (7.
|
|
71
|
-
activesupport (= 7.
|
|
66
|
+
activejob (7.2.3.1)
|
|
67
|
+
activesupport (= 7.2.3.1)
|
|
72
68
|
globalid (>= 0.3.6)
|
|
73
|
-
activemodel (7.
|
|
74
|
-
activesupport (= 7.
|
|
75
|
-
activerecord (7.
|
|
76
|
-
activemodel (= 7.
|
|
77
|
-
activesupport (= 7.
|
|
69
|
+
activemodel (7.2.3.1)
|
|
70
|
+
activesupport (= 7.2.3.1)
|
|
71
|
+
activerecord (7.2.3.1)
|
|
72
|
+
activemodel (= 7.2.3.1)
|
|
73
|
+
activesupport (= 7.2.3.1)
|
|
78
74
|
timeout (>= 0.4.0)
|
|
79
|
-
activestorage (7.
|
|
80
|
-
actionpack (= 7.
|
|
81
|
-
activejob (= 7.
|
|
82
|
-
activerecord (= 7.
|
|
83
|
-
activesupport (= 7.
|
|
75
|
+
activestorage (7.2.3.1)
|
|
76
|
+
actionpack (= 7.2.3.1)
|
|
77
|
+
activejob (= 7.2.3.1)
|
|
78
|
+
activerecord (= 7.2.3.1)
|
|
79
|
+
activesupport (= 7.2.3.1)
|
|
84
80
|
marcel (~> 1.0)
|
|
85
|
-
activesupport (7.
|
|
81
|
+
activesupport (7.2.3.1)
|
|
86
82
|
base64
|
|
87
83
|
benchmark (>= 0.3)
|
|
88
84
|
bigdecimal
|
|
89
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
85
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
90
86
|
connection_pool (>= 2.2.5)
|
|
91
87
|
drb
|
|
92
88
|
i18n (>= 1.6, < 2)
|
|
93
89
|
logger (>= 1.4.2)
|
|
94
|
-
minitest (>= 5.1)
|
|
95
|
-
mutex_m
|
|
90
|
+
minitest (>= 5.1, < 6)
|
|
96
91
|
securerandom (>= 0.3)
|
|
97
|
-
tzinfo (~> 2.0)
|
|
92
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
98
93
|
appraisal (2.5.0)
|
|
99
94
|
bundler
|
|
100
95
|
rake
|
|
101
96
|
thor (>= 0.14.0)
|
|
102
|
-
ast (2.4.
|
|
103
|
-
base64 (0.
|
|
104
|
-
benchmark (0.
|
|
105
|
-
bigdecimal (
|
|
97
|
+
ast (2.4.3)
|
|
98
|
+
base64 (0.3.0)
|
|
99
|
+
benchmark (0.5.0)
|
|
100
|
+
bigdecimal (4.1.1)
|
|
106
101
|
builder (3.3.0)
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
cgi (0.5.1)
|
|
103
|
+
combustion (1.5.0)
|
|
104
|
+
activesupport (>= 3.0.0)
|
|
105
|
+
railties (>= 3.0.0)
|
|
106
|
+
thor (>= 0.14.6)
|
|
107
|
+
concurrent-ruby (1.3.6)
|
|
108
|
+
connection_pool (3.0.2)
|
|
109
109
|
crass (1.0.6)
|
|
110
|
-
csv (3.3.
|
|
111
|
-
date (3.
|
|
112
|
-
diff-lcs (1.
|
|
110
|
+
csv (3.3.5)
|
|
111
|
+
date (3.5.1)
|
|
112
|
+
diff-lcs (1.6.2)
|
|
113
113
|
docile (1.1.5)
|
|
114
|
-
drb (2.2.
|
|
114
|
+
drb (2.2.3)
|
|
115
|
+
erb (6.0.2)
|
|
115
116
|
erubi (1.13.1)
|
|
116
|
-
globalid (1.
|
|
117
|
+
globalid (1.3.0)
|
|
117
118
|
activesupport (>= 6.1)
|
|
118
|
-
i18n (1.14.
|
|
119
|
+
i18n (1.14.8)
|
|
119
120
|
concurrent-ruby (~> 1.0)
|
|
120
|
-
io-console (0.8.
|
|
121
|
-
irb (1.
|
|
121
|
+
io-console (0.8.2)
|
|
122
|
+
irb (1.17.0)
|
|
122
123
|
pp (>= 0.6.0)
|
|
124
|
+
prism (>= 1.3.0)
|
|
123
125
|
rdoc (>= 4.0.0)
|
|
124
126
|
reline (>= 0.4.2)
|
|
125
|
-
json (2.
|
|
126
|
-
language_server-protocol (3.17.0.
|
|
127
|
+
json (2.19.3)
|
|
128
|
+
language_server-protocol (3.17.0.5)
|
|
127
129
|
license_finder (7.2.1)
|
|
128
130
|
bundler
|
|
129
131
|
csv (~> 3.2)
|
|
@@ -132,162 +134,180 @@ GEM
|
|
|
132
134
|
tomlrb (>= 1.3, < 2.1)
|
|
133
135
|
with_env (= 1.1.0)
|
|
134
136
|
xml-simple (~> 1.1.9)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
lint_roller (1.1.0)
|
|
138
|
+
logger (1.7.0)
|
|
139
|
+
loofah (2.25.1)
|
|
137
140
|
crass (~> 1.0.2)
|
|
138
141
|
nokogiri (>= 1.12.0)
|
|
139
|
-
mail (2.
|
|
142
|
+
mail (2.9.0)
|
|
143
|
+
logger
|
|
140
144
|
mini_mime (>= 0.1.1)
|
|
141
145
|
net-imap
|
|
142
146
|
net-pop
|
|
143
147
|
net-smtp
|
|
144
|
-
marcel (1.0
|
|
148
|
+
marcel (1.1.0)
|
|
145
149
|
mini_mime (1.1.5)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
mini_portile2 (2.8.9)
|
|
151
|
+
minitest (5.27.0)
|
|
152
|
+
mysql2 (0.5.5)
|
|
153
|
+
net-imap (0.6.3)
|
|
149
154
|
date
|
|
150
155
|
net-protocol
|
|
151
156
|
net-pop (0.1.2)
|
|
152
157
|
net-protocol
|
|
153
158
|
net-protocol (0.2.2)
|
|
154
159
|
timeout
|
|
155
|
-
net-smtp (0.5.
|
|
160
|
+
net-smtp (0.5.1)
|
|
156
161
|
net-protocol
|
|
157
|
-
nio4r (2.7.
|
|
158
|
-
nokogiri (1.
|
|
162
|
+
nio4r (2.7.5)
|
|
163
|
+
nokogiri (1.19.2)
|
|
164
|
+
mini_portile2 (~> 2.8.2)
|
|
159
165
|
racc (~> 1.4)
|
|
160
|
-
nokogiri (1.
|
|
166
|
+
nokogiri (1.19.2-aarch64-linux-gnu)
|
|
161
167
|
racc (~> 1.4)
|
|
162
|
-
nokogiri (1.
|
|
168
|
+
nokogiri (1.19.2-arm-linux-gnu)
|
|
163
169
|
racc (~> 1.4)
|
|
164
|
-
nokogiri (1.
|
|
170
|
+
nokogiri (1.19.2-arm64-darwin)
|
|
165
171
|
racc (~> 1.4)
|
|
166
|
-
nokogiri (1.
|
|
172
|
+
nokogiri (1.19.2-x86_64-darwin)
|
|
167
173
|
racc (~> 1.4)
|
|
168
|
-
nokogiri (1.
|
|
174
|
+
nokogiri (1.19.2-x86_64-linux-gnu)
|
|
169
175
|
racc (~> 1.4)
|
|
170
|
-
parallel (1.
|
|
171
|
-
parser (3.3.
|
|
176
|
+
parallel (1.28.0)
|
|
177
|
+
parser (3.3.11.1)
|
|
172
178
|
ast (~> 2.4.1)
|
|
173
179
|
racc
|
|
174
|
-
power_assert (
|
|
175
|
-
pp (0.6.
|
|
180
|
+
power_assert (3.0.1)
|
|
181
|
+
pp (0.6.3)
|
|
176
182
|
prettyprint
|
|
177
183
|
prettyprint (0.2.0)
|
|
178
|
-
|
|
184
|
+
prism (1.9.0)
|
|
185
|
+
psych (5.3.1)
|
|
179
186
|
date
|
|
180
187
|
stringio
|
|
181
188
|
racc (1.8.1)
|
|
182
|
-
rack (3.
|
|
183
|
-
rack-session (2.1.
|
|
189
|
+
rack (3.2.6)
|
|
190
|
+
rack-session (2.1.2)
|
|
184
191
|
base64 (>= 0.1.0)
|
|
185
192
|
rack (>= 3.0.0)
|
|
186
193
|
rack-test (2.2.0)
|
|
187
194
|
rack (>= 1.3)
|
|
188
|
-
rackup (2.
|
|
195
|
+
rackup (2.3.1)
|
|
189
196
|
rack (>= 3)
|
|
190
|
-
rails (7.
|
|
191
|
-
actioncable (= 7.
|
|
192
|
-
actionmailbox (= 7.
|
|
193
|
-
actionmailer (= 7.
|
|
194
|
-
actionpack (= 7.
|
|
195
|
-
actiontext (= 7.
|
|
196
|
-
actionview (= 7.
|
|
197
|
-
activejob (= 7.
|
|
198
|
-
activemodel (= 7.
|
|
199
|
-
activerecord (= 7.
|
|
200
|
-
activestorage (= 7.
|
|
201
|
-
activesupport (= 7.
|
|
197
|
+
rails (7.2.3.1)
|
|
198
|
+
actioncable (= 7.2.3.1)
|
|
199
|
+
actionmailbox (= 7.2.3.1)
|
|
200
|
+
actionmailer (= 7.2.3.1)
|
|
201
|
+
actionpack (= 7.2.3.1)
|
|
202
|
+
actiontext (= 7.2.3.1)
|
|
203
|
+
actionview (= 7.2.3.1)
|
|
204
|
+
activejob (= 7.2.3.1)
|
|
205
|
+
activemodel (= 7.2.3.1)
|
|
206
|
+
activerecord (= 7.2.3.1)
|
|
207
|
+
activestorage (= 7.2.3.1)
|
|
208
|
+
activesupport (= 7.2.3.1)
|
|
202
209
|
bundler (>= 1.15.0)
|
|
203
|
-
railties (= 7.
|
|
204
|
-
rails-dom-testing (2.
|
|
210
|
+
railties (= 7.2.3.1)
|
|
211
|
+
rails-dom-testing (2.3.0)
|
|
205
212
|
activesupport (>= 5.0.0)
|
|
206
213
|
minitest
|
|
207
214
|
nokogiri (>= 1.6)
|
|
208
|
-
rails-html-sanitizer (1.
|
|
209
|
-
loofah (~> 2.
|
|
215
|
+
rails-html-sanitizer (1.7.0)
|
|
216
|
+
loofah (~> 2.25)
|
|
210
217
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
211
|
-
railties (7.
|
|
212
|
-
actionpack (= 7.
|
|
213
|
-
activesupport (= 7.
|
|
214
|
-
|
|
218
|
+
railties (7.2.3.1)
|
|
219
|
+
actionpack (= 7.2.3.1)
|
|
220
|
+
activesupport (= 7.2.3.1)
|
|
221
|
+
cgi
|
|
222
|
+
irb (~> 1.13)
|
|
215
223
|
rackup (>= 1.0.0)
|
|
216
224
|
rake (>= 12.2)
|
|
217
225
|
thor (~> 1.0, >= 1.2.2)
|
|
226
|
+
tsort (>= 0.2)
|
|
218
227
|
zeitwerk (~> 2.6)
|
|
219
|
-
rainbow (
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
228
|
+
rainbow (3.1.1)
|
|
229
|
+
rake (13.3.1)
|
|
230
|
+
rdoc (7.2.0)
|
|
231
|
+
erb
|
|
223
232
|
psych (>= 4.0.0)
|
|
224
|
-
|
|
225
|
-
|
|
233
|
+
tsort
|
|
234
|
+
regexp_parser (2.12.0)
|
|
235
|
+
reline (0.6.3)
|
|
226
236
|
io-console (~> 0.5)
|
|
227
|
-
rexml (3.4.
|
|
228
|
-
rspec (3.13.
|
|
237
|
+
rexml (3.4.4)
|
|
238
|
+
rspec (3.13.2)
|
|
229
239
|
rspec-core (~> 3.13.0)
|
|
230
240
|
rspec-expectations (~> 3.13.0)
|
|
231
241
|
rspec-mocks (~> 3.13.0)
|
|
232
|
-
rspec-core (3.13.
|
|
242
|
+
rspec-core (3.13.6)
|
|
233
243
|
rspec-support (~> 3.13.0)
|
|
234
|
-
rspec-expectations (3.13.
|
|
244
|
+
rspec-expectations (3.13.5)
|
|
235
245
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
236
246
|
rspec-support (~> 3.13.0)
|
|
237
|
-
rspec-mocks (3.13.
|
|
247
|
+
rspec-mocks (3.13.8)
|
|
238
248
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
239
249
|
rspec-support (~> 3.13.0)
|
|
240
|
-
rspec-support (3.13.
|
|
241
|
-
rubocop (1.
|
|
250
|
+
rspec-support (3.13.7)
|
|
251
|
+
rubocop (1.82.1)
|
|
242
252
|
json (~> 2.3)
|
|
243
|
-
language_server-protocol (
|
|
253
|
+
language_server-protocol (~> 3.17.0.2)
|
|
254
|
+
lint_roller (~> 1.1.0)
|
|
244
255
|
parallel (~> 1.10)
|
|
245
256
|
parser (>= 3.3.0.2)
|
|
246
257
|
rainbow (>= 2.2.2, < 4.0)
|
|
247
|
-
regexp_parser (>= 2.
|
|
248
|
-
rubocop-ast (>= 1.
|
|
258
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
259
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
249
260
|
ruby-progressbar (~> 1.7)
|
|
250
|
-
unicode-display_width (>= 2.4.0, <
|
|
251
|
-
rubocop-ast (1.
|
|
252
|
-
parser (>= 3.3.
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
261
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
262
|
+
rubocop-ast (1.49.1)
|
|
263
|
+
parser (>= 3.3.7.2)
|
|
264
|
+
prism (~> 1.7)
|
|
265
|
+
rubocop-performance (1.26.1)
|
|
266
|
+
lint_roller (~> 1.1)
|
|
267
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
268
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
269
|
+
rubocop-rails (2.34.3)
|
|
257
270
|
activesupport (>= 4.2.0)
|
|
271
|
+
lint_roller (~> 1.1)
|
|
258
272
|
rack (>= 1.1)
|
|
259
|
-
rubocop (>= 1.
|
|
260
|
-
rubocop-ast (>= 1.
|
|
261
|
-
rubocop-rake (0.
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
273
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
274
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
275
|
+
rubocop-rake (0.7.1)
|
|
276
|
+
lint_roller (~> 1.1)
|
|
277
|
+
rubocop (>= 1.72.1)
|
|
278
|
+
rubocop-rspec (3.9.0)
|
|
279
|
+
lint_roller (~> 1.1)
|
|
280
|
+
rubocop (~> 1.81)
|
|
265
281
|
ruby-progressbar (1.13.0)
|
|
266
282
|
rubyzip (2.4.1)
|
|
267
|
-
securerandom (0.
|
|
283
|
+
securerandom (0.4.1)
|
|
268
284
|
simplecov (0.15.1)
|
|
269
285
|
docile (~> 1.1.0)
|
|
270
286
|
json (>= 1.8, < 3)
|
|
271
287
|
simplecov-html (~> 0.10.0)
|
|
272
288
|
simplecov-html (0.10.2)
|
|
273
|
-
stringio (3.
|
|
289
|
+
stringio (3.2.0)
|
|
274
290
|
test-unit (3.1.5)
|
|
275
291
|
power_assert
|
|
276
|
-
thor (1.
|
|
277
|
-
timeout (0.
|
|
278
|
-
tomlrb (2.0.
|
|
292
|
+
thor (1.5.0)
|
|
293
|
+
timeout (0.6.1)
|
|
294
|
+
tomlrb (2.0.4)
|
|
295
|
+
tsort (0.2.0)
|
|
279
296
|
tzinfo (2.0.6)
|
|
280
297
|
concurrent-ruby (~> 1.0)
|
|
281
|
-
unicode-display_width (2.
|
|
282
|
-
|
|
298
|
+
unicode-display_width (3.2.0)
|
|
299
|
+
unicode-emoji (~> 4.1)
|
|
300
|
+
unicode-emoji (4.2.0)
|
|
301
|
+
useragent (0.16.11)
|
|
302
|
+
websocket-driver (0.8.0)
|
|
283
303
|
base64
|
|
284
304
|
websocket-extensions (>= 0.1.0)
|
|
285
305
|
websocket-extensions (0.1.5)
|
|
286
306
|
with_env (1.1.0)
|
|
287
307
|
xml-simple (1.1.9)
|
|
288
308
|
rexml
|
|
289
|
-
yard (0.9.
|
|
290
|
-
zeitwerk (2.
|
|
309
|
+
yard (0.9.38)
|
|
310
|
+
zeitwerk (2.7.5)
|
|
291
311
|
|
|
292
312
|
PLATFORMS
|
|
293
313
|
aarch64-linux
|
|
@@ -298,22 +318,20 @@ PLATFORMS
|
|
|
298
318
|
x86_64-linux
|
|
299
319
|
|
|
300
320
|
DEPENDENCIES
|
|
301
|
-
activesupport (< 7.2.0)
|
|
302
321
|
appraisal (= 2.5.0)
|
|
303
322
|
bundler (~> 2.1)
|
|
323
|
+
combustion (~> 1.3)
|
|
304
324
|
data_taster!
|
|
305
325
|
license_finder (~> 7.0)
|
|
306
|
-
|
|
326
|
+
mysql2 (= 0.5.5)
|
|
307
327
|
parser (>= 2.5, != 2.5.1.1)
|
|
308
|
-
rainbow (=
|
|
328
|
+
rainbow (= 3.1.1)
|
|
309
329
|
rake (~> 13.0)
|
|
310
330
|
rspec (~> 3.0)
|
|
311
331
|
rubocop-powerhome!
|
|
312
|
-
securerandom (< 0.4.0)
|
|
313
332
|
simplecov (= 0.15.1)
|
|
314
333
|
test-unit (= 3.1.5)
|
|
315
|
-
yard (= 0.9.
|
|
316
|
-
zeitwerk (< 2.7.0)
|
|
334
|
+
yard (= 0.9.38)
|
|
317
335
|
|
|
318
336
|
BUNDLED WITH
|
|
319
337
|
2.5.23
|
data/config.ru
ADDED
data/docs/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.5.0] - 2026-07-08
|
|
4
|
+
|
|
5
|
+
### Breaking changes
|
|
6
|
+
|
|
7
|
+
- Replace `DataTaster.config(source_client:, working_client:, include_insert:, ...)` with `DataTaster.setup(source:, output:, months:, list:)`
|
|
8
|
+
- Configure exports with a `MysqlSource` and an output adapter (`DatabaseOutput` or `FileOutput`) instead of raw MySQL clients
|
|
9
|
+
- Remove `include_insert` — export behavior is determined by the output adapter
|
|
10
|
+
- Remove `DataTaster::Sample` and `DataTaster.safe_execute` — export logic now lives in output adapters
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **SQL file export**: `FileOutput` writes sanitized INSERT statements to a SQL file without mutating a target database
|
|
15
|
+
- **Adapter architecture**: `MysqlSource`, `Output`, `DatabaseOutput`, and `FileOutput` separate source reads from export destination
|
|
16
|
+
- **Inline sanitization on export**: Both file and database exports apply sanitization rules while building INSERT statements via `SanitizerExporter`, `ExportContext`, and `SqlLiteral`
|
|
17
|
+
- **`DataTaster.reset!`**: Clears configuration and confection between runs
|
|
18
|
+
- **`SqlLiteral`**: Formats Ruby values as MySQL literals with correct handling for JSON, binary/blob, temporal, and scalar types
|
|
19
|
+
- Expanded test coverage for adapters, SQL literals, and integration flows
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Database export (`DatabaseOutput`) inserts sanitized rows directly and still runs post-export UPDATE sanitization
|
|
24
|
+
- File export only includes tables defined in confection keys
|
|
25
|
+
- Default `schema_migrations` confection entry is provided by `DatabaseOutput` only
|
|
26
|
+
- Move row-expression sanitization (`wash_values`) into `Detergent`
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Correctly treat JSON column values as quoted strings instead of binary hex literals
|
|
31
|
+
|
|
32
|
+
### Dependencies and platform support
|
|
33
|
+
|
|
34
|
+
- Update rainbow to v3.x [#372](https://github.com/powerhome/power-tools/pull/372)
|
|
35
|
+
- Update yard to 0.9.38 to address [Cross-site Scripting vulnerability](https://github.com/powerhome/power-tools/security/dependabot/544) [#394](https://github.com/powerhome/power-tools/pull/394)
|
|
36
|
+
- Drop support for Ruby < 3.3 and Rails < 7.1 [#396](https://github.com/powerhome/power-tools/pull/396)
|
|
37
|
+
- Remove more Rails 6.0 config handling
|
|
38
|
+
- Standardize all libs to support ruby 3.0, ruby 3.3 x rails 6.1 through rails 7.2 [#359](https://github.com/powerhome/power-tools/pull/359)
|
|
39
|
+
- Lock activesupport requirement to ~> 7.0.8
|
|
40
|
+
- Setup test environment and add simple specs
|
|
41
|
+
- Fix issue reading database config to support Rails 6.0
|
|
42
|
+
- Add more specs, including actual run of a dump for default sanitization
|
|
43
|
+
|
|
44
|
+
## [0.4.3] - 2025-07-28
|
|
45
|
+
|
|
3
46
|
## [0.4.2] - 2025-02-27
|
|
4
47
|
|
|
5
48
|
- Lower nokogiri requirement to 1.14
|