invalid_record_finder 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +64 -71
- data/README.md +13 -0
- data/invalid_record_finder.gemspec +1 -1
- data/lib/invalid_record_finder/version.rb +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4cec167d246b9e50653de692ffb17cf601d44ed8491816173b1f465781ad722
|
4
|
+
data.tar.gz: 13a4f551e9a98c3105f2b4bc028a3148b3acce5f11780a945aa02e9a7fada1cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5591573b677c5a1137d14045d6c7ebddfad2c96c1748976fa624ce865159fbed81f476750957b8c0abba4e5431acfc8f29c1b9a38b1e421b6564d10218c35f3b
|
7
|
+
data.tar.gz: 3528e043eb836b124383015636458ebaa65ccae93a2cfa6476fa9e37d6a7ef4d516704ba1b3282fa4f6689a6a06f29419c7afdfc35538661e8f4338381b617c4
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,84 +1,84 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
invalid_record_finder (1.0.
|
4
|
+
invalid_record_finder (1.0.1)
|
5
5
|
activerecord (>= 5.0)
|
6
|
-
fortschritt (
|
6
|
+
fortschritt (>= 0.3, < 2)
|
7
7
|
tabulo (~> 2.7)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actioncable (
|
13
|
-
actionpack (=
|
14
|
-
activesupport (=
|
12
|
+
actioncable (7.0.0)
|
13
|
+
actionpack (= 7.0.0)
|
14
|
+
activesupport (= 7.0.0)
|
15
15
|
nio4r (~> 2.0)
|
16
16
|
websocket-driver (>= 0.6.1)
|
17
|
-
actionmailbox (
|
18
|
-
actionpack (=
|
19
|
-
activejob (=
|
20
|
-
activerecord (=
|
21
|
-
activestorage (=
|
22
|
-
activesupport (=
|
17
|
+
actionmailbox (7.0.0)
|
18
|
+
actionpack (= 7.0.0)
|
19
|
+
activejob (= 7.0.0)
|
20
|
+
activerecord (= 7.0.0)
|
21
|
+
activestorage (= 7.0.0)
|
22
|
+
activesupport (= 7.0.0)
|
23
23
|
mail (>= 2.7.1)
|
24
|
-
actionmailer (
|
25
|
-
actionpack (=
|
26
|
-
actionview (=
|
27
|
-
activejob (=
|
28
|
-
activesupport (=
|
24
|
+
actionmailer (7.0.0)
|
25
|
+
actionpack (= 7.0.0)
|
26
|
+
actionview (= 7.0.0)
|
27
|
+
activejob (= 7.0.0)
|
28
|
+
activesupport (= 7.0.0)
|
29
29
|
mail (~> 2.5, >= 2.5.4)
|
30
30
|
rails-dom-testing (~> 2.0)
|
31
|
-
actionpack (
|
32
|
-
actionview (=
|
33
|
-
activesupport (=
|
34
|
-
rack (~> 2.0, >= 2.0
|
31
|
+
actionpack (7.0.0)
|
32
|
+
actionview (= 7.0.0)
|
33
|
+
activesupport (= 7.0.0)
|
34
|
+
rack (~> 2.0, >= 2.2.0)
|
35
35
|
rack-test (>= 0.6.3)
|
36
36
|
rails-dom-testing (~> 2.0)
|
37
37
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
38
|
-
actiontext (
|
39
|
-
actionpack (=
|
40
|
-
activerecord (=
|
41
|
-
activestorage (=
|
42
|
-
activesupport (=
|
38
|
+
actiontext (7.0.0)
|
39
|
+
actionpack (= 7.0.0)
|
40
|
+
activerecord (= 7.0.0)
|
41
|
+
activestorage (= 7.0.0)
|
42
|
+
activesupport (= 7.0.0)
|
43
|
+
globalid (>= 0.6.0)
|
43
44
|
nokogiri (>= 1.8.5)
|
44
|
-
actionview (
|
45
|
-
activesupport (=
|
45
|
+
actionview (7.0.0)
|
46
|
+
activesupport (= 7.0.0)
|
46
47
|
builder (~> 3.1)
|
47
48
|
erubi (~> 1.4)
|
48
49
|
rails-dom-testing (~> 2.0)
|
49
50
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
50
|
-
activejob (
|
51
|
-
activesupport (=
|
51
|
+
activejob (7.0.0)
|
52
|
+
activesupport (= 7.0.0)
|
52
53
|
globalid (>= 0.3.6)
|
53
|
-
activemodel (
|
54
|
-
activesupport (=
|
55
|
-
activerecord (
|
56
|
-
activemodel (=
|
57
|
-
activesupport (=
|
58
|
-
activestorage (
|
59
|
-
actionpack (=
|
60
|
-
activejob (=
|
61
|
-
activerecord (=
|
62
|
-
activesupport (=
|
63
|
-
marcel (~> 1.0
|
54
|
+
activemodel (7.0.0)
|
55
|
+
activesupport (= 7.0.0)
|
56
|
+
activerecord (7.0.0)
|
57
|
+
activemodel (= 7.0.0)
|
58
|
+
activesupport (= 7.0.0)
|
59
|
+
activestorage (7.0.0)
|
60
|
+
actionpack (= 7.0.0)
|
61
|
+
activejob (= 7.0.0)
|
62
|
+
activerecord (= 7.0.0)
|
63
|
+
activesupport (= 7.0.0)
|
64
|
+
marcel (~> 1.0)
|
64
65
|
mini_mime (>= 1.1.0)
|
65
|
-
activesupport (
|
66
|
+
activesupport (7.0.0)
|
66
67
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
67
68
|
i18n (>= 1.6, < 2)
|
68
69
|
minitest (>= 5.1)
|
69
70
|
tzinfo (~> 2.0)
|
70
|
-
zeitwerk (~> 2.3)
|
71
71
|
builder (3.2.4)
|
72
72
|
concurrent-ruby (1.1.9)
|
73
73
|
crass (1.0.6)
|
74
74
|
diff-lcs (1.4.4)
|
75
75
|
erubi (1.10.0)
|
76
|
-
fortschritt (0.
|
76
|
+
fortschritt (1.0.0)
|
77
77
|
globalid (1.0.0)
|
78
78
|
activesupport (>= 5.0)
|
79
79
|
i18n (1.8.11)
|
80
80
|
concurrent-ruby (~> 1.0)
|
81
|
-
loofah (2.
|
81
|
+
loofah (2.13.0)
|
82
82
|
crass (~> 1.0.2)
|
83
83
|
nokogiri (>= 1.5.9)
|
84
84
|
mail (2.7.1)
|
@@ -87,7 +87,7 @@ GEM
|
|
87
87
|
method_source (1.0.0)
|
88
88
|
mini_mime (1.1.2)
|
89
89
|
mini_portile2 (2.6.1)
|
90
|
-
minitest (5.
|
90
|
+
minitest (5.15.0)
|
91
91
|
nio4r (2.5.8)
|
92
92
|
nokogiri (1.12.5)
|
93
93
|
mini_portile2 (~> 2.6.1)
|
@@ -98,32 +98,32 @@ GEM
|
|
98
98
|
rack (2.2.3)
|
99
99
|
rack-test (1.1.0)
|
100
100
|
rack (>= 1.0, < 3)
|
101
|
-
rails (
|
102
|
-
actioncable (=
|
103
|
-
actionmailbox (=
|
104
|
-
actionmailer (=
|
105
|
-
actionpack (=
|
106
|
-
actiontext (=
|
107
|
-
actionview (=
|
108
|
-
activejob (=
|
109
|
-
activemodel (=
|
110
|
-
activerecord (=
|
111
|
-
activestorage (=
|
112
|
-
activesupport (=
|
101
|
+
rails (7.0.0)
|
102
|
+
actioncable (= 7.0.0)
|
103
|
+
actionmailbox (= 7.0.0)
|
104
|
+
actionmailer (= 7.0.0)
|
105
|
+
actionpack (= 7.0.0)
|
106
|
+
actiontext (= 7.0.0)
|
107
|
+
actionview (= 7.0.0)
|
108
|
+
activejob (= 7.0.0)
|
109
|
+
activemodel (= 7.0.0)
|
110
|
+
activerecord (= 7.0.0)
|
111
|
+
activestorage (= 7.0.0)
|
112
|
+
activesupport (= 7.0.0)
|
113
113
|
bundler (>= 1.15.0)
|
114
|
-
railties (=
|
115
|
-
sprockets-rails (>= 2.0.0)
|
114
|
+
railties (= 7.0.0)
|
116
115
|
rails-dom-testing (2.0.3)
|
117
116
|
activesupport (>= 4.2.0)
|
118
117
|
nokogiri (>= 1.6)
|
119
118
|
rails-html-sanitizer (1.4.2)
|
120
119
|
loofah (~> 2.3)
|
121
|
-
railties (
|
122
|
-
actionpack (=
|
123
|
-
activesupport (=
|
120
|
+
railties (7.0.0)
|
121
|
+
actionpack (= 7.0.0)
|
122
|
+
activesupport (= 7.0.0)
|
124
123
|
method_source
|
125
|
-
rake (>=
|
124
|
+
rake (>= 12.2)
|
126
125
|
thor (~> 1.0)
|
126
|
+
zeitwerk (~> 2.5)
|
127
127
|
rake (13.0.6)
|
128
128
|
rspec (3.10.0)
|
129
129
|
rspec-core (~> 3.10.0)
|
@@ -138,15 +138,8 @@ GEM
|
|
138
138
|
diff-lcs (>= 1.2.0, < 2.0)
|
139
139
|
rspec-support (~> 3.10.0)
|
140
140
|
rspec-support (3.10.3)
|
141
|
-
sprockets (4.0.2)
|
142
|
-
concurrent-ruby (~> 1.0)
|
143
|
-
rack (> 1, < 3)
|
144
|
-
sprockets-rails (3.4.1)
|
145
|
-
actionpack (>= 5.2)
|
146
|
-
activesupport (>= 5.2)
|
147
|
-
sprockets (>= 3.0.0)
|
148
141
|
sqlite3 (1.4.2)
|
149
|
-
tabulo (2.7.
|
142
|
+
tabulo (2.7.2)
|
150
143
|
tty-screen (= 0.8.1)
|
151
144
|
unicode-display_width (= 2.1.0)
|
152
145
|
thor (1.1.0)
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# InvalidRecordFinder
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/invalid_record_finder.svg)](http://badge.fury.io/rb/invalid_record_finder)
|
4
|
+
[![Build Status](https://github.com/betterplace/invalid_record_finder/workflows/tests/badge.svg)](https://github.com/betterplace/invalid_record_finder/actions)
|
5
|
+
|
3
6
|
Find entries in your database that no longer pass your validations.
|
4
7
|
|
5
8
|
These poor little records need your help because they can't be updated anymore 😢
|
@@ -40,6 +43,16 @@ result = InvalidRecordFinder.call(
|
|
40
43
|
)
|
41
44
|
```
|
42
45
|
|
46
|
+
### Checking in batches
|
47
|
+
|
48
|
+
The `models:` keyword accepts scopes, so you can do stuff like:
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
result = InvalidRecordFinder.call(
|
52
|
+
models: HugeTableThing.last(10_000),
|
53
|
+
)
|
54
|
+
```
|
55
|
+
|
43
56
|
### Other options
|
44
57
|
|
45
58
|
Findings can also be put into CSV files.
|
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.require_paths = ['lib']
|
28
28
|
|
29
29
|
spec.add_dependency 'activerecord', '>= 5.0'
|
30
|
-
spec.add_dependency 'fortschritt', '
|
30
|
+
spec.add_dependency 'fortschritt', '>= 0.3', '< 2'
|
31
31
|
spec.add_dependency 'tabulo', '~> 2.7'
|
32
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invalid_record_finder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace development team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: fortschritt
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0.3'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '2'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '0.3'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: tabulo
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
105
|
- !ruby/object:Gem::Version
|
100
106
|
version: '0'
|
101
107
|
requirements: []
|
102
|
-
rubygems_version: 3.2.
|
108
|
+
rubygems_version: 3.2.32
|
103
109
|
signing_key:
|
104
110
|
specification_version: 4
|
105
111
|
summary: Finds invalid ActiveRecord entries and reports them
|