data_taster 0.4.1 → 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.
@@ -1,274 +0,0 @@
1
- PATH
2
- remote: ../../rubocop-powerhome
3
- specs:
4
- rubocop-powerhome (0.5.3)
5
- rubocop (= 1.66.1)
6
- rubocop-performance
7
- rubocop-rails
8
- rubocop-rake
9
- rubocop-rspec
10
-
11
- PATH
12
- remote: ..
13
- specs:
14
- data_taster (0.4.1)
15
- nokogiri (= 1.17.2)
16
- rails (>= 6.0)
17
-
18
- GEM
19
- remote: https://rubygems.org/
20
- specs:
21
- actioncable (6.1.7.7)
22
- actionpack (= 6.1.7.7)
23
- activesupport (= 6.1.7.7)
24
- nio4r (~> 2.0)
25
- websocket-driver (>= 0.6.1)
26
- actionmailbox (6.1.7.7)
27
- actionpack (= 6.1.7.7)
28
- activejob (= 6.1.7.7)
29
- activerecord (= 6.1.7.7)
30
- activestorage (= 6.1.7.7)
31
- activesupport (= 6.1.7.7)
32
- mail (>= 2.7.1)
33
- actionmailer (6.1.7.7)
34
- actionpack (= 6.1.7.7)
35
- actionview (= 6.1.7.7)
36
- activejob (= 6.1.7.7)
37
- activesupport (= 6.1.7.7)
38
- mail (~> 2.5, >= 2.5.4)
39
- rails-dom-testing (~> 2.0)
40
- actionpack (6.1.7.7)
41
- actionview (= 6.1.7.7)
42
- activesupport (= 6.1.7.7)
43
- rack (~> 2.0, >= 2.0.9)
44
- rack-test (>= 0.6.3)
45
- rails-dom-testing (~> 2.0)
46
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
47
- actiontext (6.1.7.7)
48
- actionpack (= 6.1.7.7)
49
- activerecord (= 6.1.7.7)
50
- activestorage (= 6.1.7.7)
51
- activesupport (= 6.1.7.7)
52
- nokogiri (>= 1.8.5)
53
- actionview (6.1.7.7)
54
- activesupport (= 6.1.7.7)
55
- builder (~> 3.1)
56
- erubi (~> 1.4)
57
- rails-dom-testing (~> 2.0)
58
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
59
- activejob (6.1.7.7)
60
- activesupport (= 6.1.7.7)
61
- globalid (>= 0.3.6)
62
- activemodel (6.1.7.7)
63
- activesupport (= 6.1.7.7)
64
- activerecord (6.1.7.7)
65
- activemodel (= 6.1.7.7)
66
- activesupport (= 6.1.7.7)
67
- activestorage (6.1.7.7)
68
- actionpack (= 6.1.7.7)
69
- activejob (= 6.1.7.7)
70
- activerecord (= 6.1.7.7)
71
- activesupport (= 6.1.7.7)
72
- marcel (~> 1.0)
73
- mini_mime (>= 1.1.0)
74
- activesupport (6.1.7.7)
75
- concurrent-ruby (~> 1.0, >= 1.0.2)
76
- i18n (>= 1.6, < 2)
77
- minitest (>= 5.1)
78
- tzinfo (~> 2.0)
79
- zeitwerk (~> 2.3)
80
- appraisal (2.5.0)
81
- bundler
82
- rake
83
- thor (>= 0.14.0)
84
- ast (2.4.2)
85
- builder (3.3.0)
86
- concurrent-ruby (1.3.4)
87
- crass (1.0.6)
88
- csv (3.3.1)
89
- date (3.4.1)
90
- diff-lcs (1.5.1)
91
- docile (1.1.5)
92
- erubi (1.13.0)
93
- globalid (1.2.1)
94
- activesupport (>= 6.1)
95
- i18n (1.14.6)
96
- concurrent-ruby (~> 1.0)
97
- json (2.9.0)
98
- language_server-protocol (3.17.0.3)
99
- license_finder (7.2.1)
100
- bundler
101
- csv (~> 3.2)
102
- rubyzip (>= 1, < 3)
103
- thor (~> 1.2)
104
- tomlrb (>= 1.3, < 2.1)
105
- with_env (= 1.1.0)
106
- xml-simple (~> 1.1.9)
107
- loofah (2.23.1)
108
- crass (~> 1.0.2)
109
- nokogiri (>= 1.12.0)
110
- mail (2.8.1)
111
- mini_mime (>= 0.1.1)
112
- net-imap
113
- net-pop
114
- net-smtp
115
- marcel (1.0.4)
116
- method_source (1.1.0)
117
- mini_mime (1.1.5)
118
- mini_portile2 (2.8.8)
119
- minitest (5.25.4)
120
- net-imap (0.4.18)
121
- date
122
- net-protocol
123
- net-pop (0.1.2)
124
- net-protocol
125
- net-protocol (0.2.2)
126
- timeout
127
- net-smtp (0.5.0)
128
- net-protocol
129
- nio4r (2.7.4)
130
- nokogiri (1.17.2)
131
- mini_portile2 (~> 2.8.2)
132
- racc (~> 1.4)
133
- nokogiri (1.17.2-arm64-darwin)
134
- racc (~> 1.4)
135
- nokogiri (1.17.2-x86_64-linux)
136
- racc (~> 1.4)
137
- parallel (1.26.3)
138
- parser (3.3.6.0)
139
- ast (~> 2.4.1)
140
- racc
141
- power_assert (2.0.4)
142
- racc (1.8.1)
143
- rack (2.2.10)
144
- rack-test (2.1.0)
145
- rack (>= 1.3)
146
- rails (6.1.7.7)
147
- actioncable (= 6.1.7.7)
148
- actionmailbox (= 6.1.7.7)
149
- actionmailer (= 6.1.7.7)
150
- actionpack (= 6.1.7.7)
151
- actiontext (= 6.1.7.7)
152
- actionview (= 6.1.7.7)
153
- activejob (= 6.1.7.7)
154
- activemodel (= 6.1.7.7)
155
- activerecord (= 6.1.7.7)
156
- activestorage (= 6.1.7.7)
157
- activesupport (= 6.1.7.7)
158
- bundler (>= 1.15.0)
159
- railties (= 6.1.7.7)
160
- sprockets-rails (>= 2.0.0)
161
- rails-dom-testing (2.2.0)
162
- activesupport (>= 5.0.0)
163
- minitest
164
- nokogiri (>= 1.6)
165
- rails-html-sanitizer (1.6.2)
166
- loofah (~> 2.21)
167
- 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)
168
- railties (6.1.7.7)
169
- actionpack (= 6.1.7.7)
170
- activesupport (= 6.1.7.7)
171
- method_source
172
- rake (>= 12.2)
173
- thor (~> 1.0)
174
- rainbow (2.2.2)
175
- rake
176
- rake (13.2.1)
177
- regexp_parser (2.9.3)
178
- rexml (3.4.0)
179
- rspec (3.13.0)
180
- rspec-core (~> 3.13.0)
181
- rspec-expectations (~> 3.13.0)
182
- rspec-mocks (~> 3.13.0)
183
- rspec-core (3.13.2)
184
- rspec-support (~> 3.13.0)
185
- rspec-expectations (3.13.3)
186
- diff-lcs (>= 1.2.0, < 2.0)
187
- rspec-support (~> 3.13.0)
188
- rspec-mocks (3.13.2)
189
- diff-lcs (>= 1.2.0, < 2.0)
190
- rspec-support (~> 3.13.0)
191
- rspec-support (3.13.2)
192
- rubocop (1.66.1)
193
- json (~> 2.3)
194
- language_server-protocol (>= 3.17.0)
195
- parallel (~> 1.10)
196
- parser (>= 3.3.0.2)
197
- rainbow (>= 2.2.2, < 4.0)
198
- regexp_parser (>= 2.4, < 3.0)
199
- rubocop-ast (>= 1.32.2, < 2.0)
200
- ruby-progressbar (~> 1.7)
201
- unicode-display_width (>= 2.4.0, < 3.0)
202
- rubocop-ast (1.37.0)
203
- parser (>= 3.3.1.0)
204
- rubocop-performance (1.23.0)
205
- rubocop (>= 1.48.1, < 2.0)
206
- rubocop-ast (>= 1.31.1, < 2.0)
207
- rubocop-rails (2.27.0)
208
- activesupport (>= 4.2.0)
209
- rack (>= 1.1)
210
- rubocop (>= 1.52.0, < 2.0)
211
- rubocop-ast (>= 1.31.1, < 2.0)
212
- rubocop-rake (0.6.0)
213
- rubocop (~> 1.0)
214
- rubocop-rspec (3.3.0)
215
- rubocop (~> 1.61)
216
- ruby-progressbar (1.13.0)
217
- rubyzip (2.3.2)
218
- securerandom (0.3.2)
219
- simplecov (0.15.1)
220
- docile (~> 1.1.0)
221
- json (>= 1.8, < 3)
222
- simplecov-html (~> 0.10.0)
223
- simplecov-html (0.10.2)
224
- sprockets (4.2.1)
225
- concurrent-ruby (~> 1.0)
226
- rack (>= 2.2.4, < 4)
227
- sprockets-rails (3.5.2)
228
- actionpack (>= 6.1)
229
- activesupport (>= 6.1)
230
- sprockets (>= 3.0.0)
231
- test-unit (3.1.5)
232
- power_assert
233
- thor (1.3.2)
234
- timeout (0.4.3)
235
- tomlrb (2.0.3)
236
- tzinfo (2.0.6)
237
- concurrent-ruby (~> 1.0)
238
- unicode-display_width (2.6.0)
239
- websocket-driver (0.7.6)
240
- websocket-extensions (>= 0.1.0)
241
- websocket-extensions (0.1.5)
242
- with_env (1.1.0)
243
- xml-simple (1.1.9)
244
- rexml
245
- yard (0.9.34)
246
- zeitwerk (2.6.18)
247
-
248
- PLATFORMS
249
- arm64-darwin-22
250
- arm64-darwin-23
251
- ruby
252
- x86_64-linux
253
-
254
- DEPENDENCIES
255
- activesupport (< 7.2.0)
256
- appraisal (= 2.5.0)
257
- bundler (~> 2.1)
258
- data_taster!
259
- license_finder (~> 7.0)
260
- net-imap (< 0.5.0)
261
- parser (>= 2.5, != 2.5.1.1)
262
- rails (= 6.1.7.7)
263
- rainbow (= 2.2.2)
264
- rake (~> 13.0)
265
- rspec (~> 3.0)
266
- rubocop-powerhome!
267
- securerandom (< 0.4.0)
268
- simplecov (= 0.15.1)
269
- test-unit (= 3.1.5)
270
- yard (= 0.9.34)
271
- zeitwerk (< 2.7.0)
272
-
273
- BUNDLED WITH
274
- 2.5.23
@@ -1,12 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activesupport", "< 7.2.0"
6
- gem "net-imap", "< 0.5.0"
7
- gem "rubocop-powerhome", path: "../../rubocop-powerhome", tag: "v0.5.2-rubocop-powerhome"
8
- gem "securerandom", "< 0.4.0"
9
- gem "zeitwerk", "< 2.7.0"
10
- gem "rails", "7.0.8.1"
11
-
12
- gemspec path: "../"
@@ -1,273 +0,0 @@
1
- PATH
2
- remote: ../../rubocop-powerhome
3
- specs:
4
- rubocop-powerhome (0.5.3)
5
- rubocop (= 1.66.1)
6
- rubocop-performance
7
- rubocop-rails
8
- rubocop-rake
9
- rubocop-rspec
10
-
11
- PATH
12
- remote: ..
13
- specs:
14
- data_taster (0.4.1)
15
- nokogiri (= 1.17.2)
16
- rails (>= 6.0)
17
-
18
- GEM
19
- remote: https://rubygems.org/
20
- specs:
21
- actioncable (7.0.8.1)
22
- actionpack (= 7.0.8.1)
23
- activesupport (= 7.0.8.1)
24
- nio4r (~> 2.0)
25
- websocket-driver (>= 0.6.1)
26
- actionmailbox (7.0.8.1)
27
- actionpack (= 7.0.8.1)
28
- activejob (= 7.0.8.1)
29
- activerecord (= 7.0.8.1)
30
- activestorage (= 7.0.8.1)
31
- activesupport (= 7.0.8.1)
32
- mail (>= 2.7.1)
33
- net-imap
34
- net-pop
35
- net-smtp
36
- actionmailer (7.0.8.1)
37
- actionpack (= 7.0.8.1)
38
- actionview (= 7.0.8.1)
39
- activejob (= 7.0.8.1)
40
- activesupport (= 7.0.8.1)
41
- mail (~> 2.5, >= 2.5.4)
42
- net-imap
43
- net-pop
44
- net-smtp
45
- rails-dom-testing (~> 2.0)
46
- actionpack (7.0.8.1)
47
- actionview (= 7.0.8.1)
48
- activesupport (= 7.0.8.1)
49
- rack (~> 2.0, >= 2.2.4)
50
- rack-test (>= 0.6.3)
51
- rails-dom-testing (~> 2.0)
52
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
53
- actiontext (7.0.8.1)
54
- actionpack (= 7.0.8.1)
55
- activerecord (= 7.0.8.1)
56
- activestorage (= 7.0.8.1)
57
- activesupport (= 7.0.8.1)
58
- globalid (>= 0.6.0)
59
- nokogiri (>= 1.8.5)
60
- actionview (7.0.8.1)
61
- activesupport (= 7.0.8.1)
62
- builder (~> 3.1)
63
- erubi (~> 1.4)
64
- rails-dom-testing (~> 2.0)
65
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
66
- activejob (7.0.8.1)
67
- activesupport (= 7.0.8.1)
68
- globalid (>= 0.3.6)
69
- activemodel (7.0.8.1)
70
- activesupport (= 7.0.8.1)
71
- activerecord (7.0.8.1)
72
- activemodel (= 7.0.8.1)
73
- activesupport (= 7.0.8.1)
74
- activestorage (7.0.8.1)
75
- actionpack (= 7.0.8.1)
76
- activejob (= 7.0.8.1)
77
- activerecord (= 7.0.8.1)
78
- activesupport (= 7.0.8.1)
79
- marcel (~> 1.0)
80
- mini_mime (>= 1.1.0)
81
- activesupport (7.0.8.1)
82
- concurrent-ruby (~> 1.0, >= 1.0.2)
83
- i18n (>= 1.6, < 2)
84
- minitest (>= 5.1)
85
- tzinfo (~> 2.0)
86
- appraisal (2.5.0)
87
- bundler
88
- rake
89
- thor (>= 0.14.0)
90
- ast (2.4.2)
91
- builder (3.3.0)
92
- concurrent-ruby (1.3.4)
93
- crass (1.0.6)
94
- csv (3.3.1)
95
- date (3.4.1)
96
- diff-lcs (1.5.1)
97
- docile (1.1.5)
98
- erubi (1.13.0)
99
- globalid (1.2.1)
100
- activesupport (>= 6.1)
101
- i18n (1.14.6)
102
- concurrent-ruby (~> 1.0)
103
- json (2.9.0)
104
- language_server-protocol (3.17.0.3)
105
- license_finder (7.2.1)
106
- bundler
107
- csv (~> 3.2)
108
- rubyzip (>= 1, < 3)
109
- thor (~> 1.2)
110
- tomlrb (>= 1.3, < 2.1)
111
- with_env (= 1.1.0)
112
- xml-simple (~> 1.1.9)
113
- loofah (2.23.1)
114
- crass (~> 1.0.2)
115
- nokogiri (>= 1.12.0)
116
- mail (2.8.1)
117
- mini_mime (>= 0.1.1)
118
- net-imap
119
- net-pop
120
- net-smtp
121
- marcel (1.0.4)
122
- method_source (1.1.0)
123
- mini_mime (1.1.5)
124
- mini_portile2 (2.8.8)
125
- minitest (5.25.4)
126
- net-imap (0.4.18)
127
- date
128
- net-protocol
129
- net-pop (0.1.2)
130
- net-protocol
131
- net-protocol (0.2.2)
132
- timeout
133
- net-smtp (0.5.0)
134
- net-protocol
135
- nio4r (2.7.4)
136
- nokogiri (1.17.2)
137
- mini_portile2 (~> 2.8.2)
138
- racc (~> 1.4)
139
- nokogiri (1.17.2-arm64-darwin)
140
- racc (~> 1.4)
141
- nokogiri (1.17.2-x86_64-linux)
142
- racc (~> 1.4)
143
- parallel (1.26.3)
144
- parser (3.3.6.0)
145
- ast (~> 2.4.1)
146
- racc
147
- power_assert (2.0.4)
148
- racc (1.8.1)
149
- rack (2.2.10)
150
- rack-test (2.1.0)
151
- rack (>= 1.3)
152
- rails (7.0.8.1)
153
- actioncable (= 7.0.8.1)
154
- actionmailbox (= 7.0.8.1)
155
- actionmailer (= 7.0.8.1)
156
- actionpack (= 7.0.8.1)
157
- actiontext (= 7.0.8.1)
158
- actionview (= 7.0.8.1)
159
- activejob (= 7.0.8.1)
160
- activemodel (= 7.0.8.1)
161
- activerecord (= 7.0.8.1)
162
- activestorage (= 7.0.8.1)
163
- activesupport (= 7.0.8.1)
164
- bundler (>= 1.15.0)
165
- railties (= 7.0.8.1)
166
- rails-dom-testing (2.2.0)
167
- activesupport (>= 5.0.0)
168
- minitest
169
- nokogiri (>= 1.6)
170
- rails-html-sanitizer (1.6.2)
171
- loofah (~> 2.21)
172
- 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)
173
- railties (7.0.8.1)
174
- actionpack (= 7.0.8.1)
175
- activesupport (= 7.0.8.1)
176
- method_source
177
- rake (>= 12.2)
178
- thor (~> 1.0)
179
- zeitwerk (~> 2.5)
180
- rainbow (2.2.2)
181
- rake
182
- rake (13.2.1)
183
- regexp_parser (2.9.3)
184
- rexml (3.4.0)
185
- rspec (3.13.0)
186
- rspec-core (~> 3.13.0)
187
- rspec-expectations (~> 3.13.0)
188
- rspec-mocks (~> 3.13.0)
189
- rspec-core (3.13.2)
190
- rspec-support (~> 3.13.0)
191
- rspec-expectations (3.13.3)
192
- diff-lcs (>= 1.2.0, < 2.0)
193
- rspec-support (~> 3.13.0)
194
- rspec-mocks (3.13.2)
195
- diff-lcs (>= 1.2.0, < 2.0)
196
- rspec-support (~> 3.13.0)
197
- rspec-support (3.13.2)
198
- rubocop (1.66.1)
199
- json (~> 2.3)
200
- language_server-protocol (>= 3.17.0)
201
- parallel (~> 1.10)
202
- parser (>= 3.3.0.2)
203
- rainbow (>= 2.2.2, < 4.0)
204
- regexp_parser (>= 2.4, < 3.0)
205
- rubocop-ast (>= 1.32.2, < 2.0)
206
- ruby-progressbar (~> 1.7)
207
- unicode-display_width (>= 2.4.0, < 3.0)
208
- rubocop-ast (1.37.0)
209
- parser (>= 3.3.1.0)
210
- rubocop-performance (1.23.0)
211
- rubocop (>= 1.48.1, < 2.0)
212
- rubocop-ast (>= 1.31.1, < 2.0)
213
- rubocop-rails (2.27.0)
214
- activesupport (>= 4.2.0)
215
- rack (>= 1.1)
216
- rubocop (>= 1.52.0, < 2.0)
217
- rubocop-ast (>= 1.31.1, < 2.0)
218
- rubocop-rake (0.6.0)
219
- rubocop (~> 1.0)
220
- rubocop-rspec (3.3.0)
221
- rubocop (~> 1.61)
222
- ruby-progressbar (1.13.0)
223
- rubyzip (2.3.2)
224
- securerandom (0.3.2)
225
- simplecov (0.15.1)
226
- docile (~> 1.1.0)
227
- json (>= 1.8, < 3)
228
- simplecov-html (~> 0.10.0)
229
- simplecov-html (0.10.2)
230
- test-unit (3.1.5)
231
- power_assert
232
- thor (1.3.2)
233
- timeout (0.4.3)
234
- tomlrb (2.0.3)
235
- tzinfo (2.0.6)
236
- concurrent-ruby (~> 1.0)
237
- unicode-display_width (2.6.0)
238
- websocket-driver (0.7.6)
239
- websocket-extensions (>= 0.1.0)
240
- websocket-extensions (0.1.5)
241
- with_env (1.1.0)
242
- xml-simple (1.1.9)
243
- rexml
244
- yard (0.9.34)
245
- zeitwerk (2.6.18)
246
-
247
- PLATFORMS
248
- arm64-darwin-22
249
- arm64-darwin-23
250
- ruby
251
- x86_64-linux
252
-
253
- DEPENDENCIES
254
- activesupport (< 7.2.0)
255
- appraisal (= 2.5.0)
256
- bundler (~> 2.1)
257
- data_taster!
258
- license_finder (~> 7.0)
259
- net-imap (< 0.5.0)
260
- parser (>= 2.5, != 2.5.1.1)
261
- rails (= 7.0.8.1)
262
- rainbow (= 2.2.2)
263
- rake (~> 13.0)
264
- rspec (~> 3.0)
265
- rubocop-powerhome!
266
- securerandom (< 0.4.0)
267
- simplecov (= 0.15.1)
268
- test-unit (= 3.1.5)
269
- yard (= 0.9.34)
270
- zeitwerk (< 2.7.0)
271
-
272
- BUNDLED WITH
273
- 2.5.23
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module DataTaster
4
- # Selects and processes tables from the source_db
5
- # to insert (or query) into the working_db
6
- class Sample
7
- def initialize(table_name)
8
- @table_name = table_name
9
- @include_insert = DataTaster.config.include_insert
10
- @collection = DataTaster::Collection.new(
11
- table_name
12
- ).assemble
13
- end
14
-
15
- def serve!
16
- # Any table that does not return SQL is considered deprecated and we should fully skip it
17
- if collection.empty? && include_insert
18
- DataTaster.safe_execute("DROP TABLE IF EXISTS #{table_name}")
19
- else
20
- ensure_empty_table
21
- process_select(collection[:select])
22
- DataTaster::Sanitizer.new(table_name, collection[:sanitize]).clean!
23
- end
24
- end
25
-
26
- private
27
-
28
- attr_reader :table_name, :include_insert, :collection
29
-
30
- def ensure_empty_table
31
- DataTaster.safe_execute("TRUNCATE TABLE #{working_db}.#{table_name}")
32
- end
33
-
34
- def process_select(sql)
35
- DataTaster.safe_execute(sql)
36
- rescue => e
37
- e.message << " executing SQL statement for #{table_name}: #{sql}"
38
- raise e
39
- end
40
-
41
- def working_db
42
- @working_db ||= DataTaster.config.working_client.query_options[:database]
43
- end
44
- end
45
- end