invalid_record_finder 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ef7639bb7c4e24b75291c9ddaf3561283b190c490379a51e8a3e35d1f927a74
4
- data.tar.gz: e1a2c6a9b544fb3de431f5b9e7f003a416f466f21e17a3a80bff225aefa40177
3
+ metadata.gz: a4cec167d246b9e50653de692ffb17cf601d44ed8491816173b1f465781ad722
4
+ data.tar.gz: 13a4f551e9a98c3105f2b4bc028a3148b3acce5f11780a945aa02e9a7fada1cb
5
5
  SHA512:
6
- metadata.gz: d6faecd6d67a3cd6a11cb6a008621857ecda7eaf76aa881180c294be6ee578e621e19114a79def11052214e4d4360d14a33a1530177648228d339ab6c2844df4
7
- data.tar.gz: 326e337b4b2ce97d3534a3c7e0071a97f17cd2cd474d32d8ad5f8a6f3f3e4852bb99793fc1632613f0c07993fba6618a1aaac3ce8ec7fa463166c556389936b0
6
+ metadata.gz: 5591573b677c5a1137d14045d6c7ebddfad2c96c1748976fa624ce865159fbed81f476750957b8c0abba4e5431acfc8f29c1b9a38b1e421b6564d10218c35f3b
7
+ data.tar.gz: 3528e043eb836b124383015636458ebaa65ccae93a2cfa6476fa9e37d6a7ef4d516704ba1b3282fa4f6689a6a06f29419c7afdfc35538661e8f4338381b617c4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.1] - 2021-12-18
4
+
5
+ ### Fixed
6
+
7
+ - Relax dependency on fortschritt to allow 1.x release
8
+
3
9
  ## [1.0.0] - 2021-11-24
4
10
 
5
11
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,84 +1,84 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- invalid_record_finder (1.0.0)
4
+ invalid_record_finder (1.0.1)
5
5
  activerecord (>= 5.0)
6
- fortschritt (~> 0.3)
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 (6.1.4.1)
13
- actionpack (= 6.1.4.1)
14
- activesupport (= 6.1.4.1)
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 (6.1.4.1)
18
- actionpack (= 6.1.4.1)
19
- activejob (= 6.1.4.1)
20
- activerecord (= 6.1.4.1)
21
- activestorage (= 6.1.4.1)
22
- activesupport (= 6.1.4.1)
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 (6.1.4.1)
25
- actionpack (= 6.1.4.1)
26
- actionview (= 6.1.4.1)
27
- activejob (= 6.1.4.1)
28
- activesupport (= 6.1.4.1)
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 (6.1.4.1)
32
- actionview (= 6.1.4.1)
33
- activesupport (= 6.1.4.1)
34
- rack (~> 2.0, >= 2.0.9)
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 (6.1.4.1)
39
- actionpack (= 6.1.4.1)
40
- activerecord (= 6.1.4.1)
41
- activestorage (= 6.1.4.1)
42
- activesupport (= 6.1.4.1)
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 (6.1.4.1)
45
- activesupport (= 6.1.4.1)
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 (6.1.4.1)
51
- activesupport (= 6.1.4.1)
51
+ activejob (7.0.0)
52
+ activesupport (= 7.0.0)
52
53
  globalid (>= 0.3.6)
53
- activemodel (6.1.4.1)
54
- activesupport (= 6.1.4.1)
55
- activerecord (6.1.4.1)
56
- activemodel (= 6.1.4.1)
57
- activesupport (= 6.1.4.1)
58
- activestorage (6.1.4.1)
59
- actionpack (= 6.1.4.1)
60
- activejob (= 6.1.4.1)
61
- activerecord (= 6.1.4.1)
62
- activesupport (= 6.1.4.1)
63
- marcel (~> 1.0.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 (6.1.4.1)
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.3.6)
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.12.0)
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.14.4)
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 (6.1.4.1)
102
- actioncable (= 6.1.4.1)
103
- actionmailbox (= 6.1.4.1)
104
- actionmailer (= 6.1.4.1)
105
- actionpack (= 6.1.4.1)
106
- actiontext (= 6.1.4.1)
107
- actionview (= 6.1.4.1)
108
- activejob (= 6.1.4.1)
109
- activemodel (= 6.1.4.1)
110
- activerecord (= 6.1.4.1)
111
- activestorage (= 6.1.4.1)
112
- activesupport (= 6.1.4.1)
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 (= 6.1.4.1)
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 (6.1.4.1)
122
- actionpack (= 6.1.4.1)
123
- activesupport (= 6.1.4.1)
120
+ railties (7.0.0)
121
+ actionpack (= 7.0.0)
122
+ activesupport (= 7.0.0)
124
123
  method_source
125
- rake (>= 0.13)
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.1)
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', '~> 0.3'
30
+ spec.add_dependency 'fortschritt', '>= 0.3', '< 2'
31
31
  spec.add_dependency 'tabulo', '~> 2.7'
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module InvalidRecordFinder
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  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.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-29 00:00:00.000000000 Z
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.3
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