lol_dba 2.1.9 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +0 -3
- data/.travis.yml +2 -1
- data/Appraisals +17 -0
- data/Gemfile.lock +41 -45
- data/README.md +1 -1
- data/Rakefile +1 -3
- data/gemfiles/rails_3_2.gemfile +1 -0
- data/gemfiles/rails_3_2.gemfile.lock +16 -16
- data/gemfiles/rails_4_0.gemfile +1 -0
- data/gemfiles/rails_4_0.gemfile.lock +13 -15
- data/gemfiles/rails_4_1.gemfile +1 -0
- data/gemfiles/rails_4_1.gemfile.lock +13 -14
- data/gemfiles/rails_4_2.gemfile +1 -0
- data/gemfiles/rails_4_2.gemfile.lock +22 -24
- data/gemfiles/rails_5_0.gemfile +1 -0
- data/gemfiles/rails_5_0.gemfile.lock +23 -25
- data/gemfiles/rails_5_1.gemfile +1 -0
- data/gemfiles/rails_5_1.gemfile.lock +23 -25
- data/gemfiles/rails_5_2.gemfile +1 -0
- data/gemfiles/rails_5_2.gemfile.lock +37 -39
- data/gemfiles/rails_6.gemfile +10 -0
- data/gemfiles/rails_6.gemfile.lock +113 -0
- data/lib/lol_dba/cli.rb +4 -1
- data/lib/lol_dba/index_finding/index_finder.rb +4 -2
- data/lib/lol_dba/rails_compatibility.rb +25 -16
- data/lib/lol_dba/version.rb +1 -1
- data/lib/tasks/lol_dba.rake +2 -1
- data/lol_dba.gemspec +7 -6
- data/spec/associations_index_spec.rb +9 -0
- data/spec/cli_spec.rb +31 -0
- data/spec/fixtures/config/environment.rb +0 -0
- data/spec/fixtures/schema.rb +4 -0
- data/spec/index_finder_spec.rb +24 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/tasks_spec.rb +34 -0
- metadata +29 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dc3bb4ab130d6c90224e4111b93fbcd17236aaff71336105a382edafcda3dbe
|
4
|
+
data.tar.gz: '03874aba90b0a948a4946260f7e0ae30bf6b31158681c2911cb465aabf7756b5'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99f19246fad95946392eaf0ea372295f26eaf7f2751ad00195eb3941590ef39b2e1cea478ee0df9a1a7bc401ec80291dc8c07c67b1cc0d8b3550b876e314a01e
|
7
|
+
data.tar.gz: 5bf31285cca0426fe305da7f41b9d030f11e43e60ceb7356b0e27730a226c78e4178115323c6637a0b7008430d1d32b18cd8423c1466bdd4e64c7b4c2899ed5e
|
data/.codeclimate.yml
CHANGED
data/.travis.yml
CHANGED
@@ -7,7 +7,7 @@ before_install:
|
|
7
7
|
- gem update --system
|
8
8
|
- gem install bundler
|
9
9
|
rvm:
|
10
|
-
- 2.
|
10
|
+
- 2.7.0
|
11
11
|
- ruby-head
|
12
12
|
gemfile:
|
13
13
|
- gemfiles/rails_3_2.gemfile
|
@@ -17,6 +17,7 @@ gemfile:
|
|
17
17
|
- gemfiles/rails_5_0.gemfile
|
18
18
|
- gemfiles/rails_5_1.gemfile
|
19
19
|
- gemfiles/rails_5_2.gemfile
|
20
|
+
- gemfiles/rails_6.gemfile
|
20
21
|
before_script:
|
21
22
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
22
23
|
- chmod +x ./cc-test-reporter
|
data/Appraisals
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
appraise 'rails_3_2' do
|
2
4
|
version = '~> 3.2.21'
|
3
5
|
gem 'activerecord', version
|
4
6
|
gem 'actionpack', version
|
5
7
|
gem 'railties', version
|
8
|
+
gem 'sqlite3', '< 1.4'
|
6
9
|
end
|
7
10
|
|
8
11
|
appraise 'rails_4_0' do
|
@@ -10,6 +13,7 @@ appraise 'rails_4_0' do
|
|
10
13
|
gem 'activerecord', version
|
11
14
|
gem 'actionpack', version
|
12
15
|
gem 'railties', version
|
16
|
+
gem 'sqlite3', '< 1.4'
|
13
17
|
end
|
14
18
|
|
15
19
|
appraise 'rails_4_1' do
|
@@ -17,6 +21,7 @@ appraise 'rails_4_1' do
|
|
17
21
|
gem 'activerecord', version
|
18
22
|
gem 'actionpack', version
|
19
23
|
gem 'railties', version
|
24
|
+
gem 'sqlite3', '< 1.4'
|
20
25
|
end
|
21
26
|
|
22
27
|
appraise 'rails_4_2' do
|
@@ -24,6 +29,7 @@ appraise 'rails_4_2' do
|
|
24
29
|
gem 'activerecord', version
|
25
30
|
gem 'actionpack', version
|
26
31
|
gem 'railties', version
|
32
|
+
gem 'sqlite3', '< 1.4'
|
27
33
|
end
|
28
34
|
|
29
35
|
appraise 'rails_5_0' do
|
@@ -31,6 +37,7 @@ appraise 'rails_5_0' do
|
|
31
37
|
gem 'activerecord', version
|
32
38
|
gem 'actionpack', version
|
33
39
|
gem 'railties', version
|
40
|
+
gem 'sqlite3', '< 1.4'
|
34
41
|
end
|
35
42
|
|
36
43
|
appraise 'rails_5_1' do
|
@@ -38,6 +45,7 @@ appraise 'rails_5_1' do
|
|
38
45
|
gem 'activerecord', version
|
39
46
|
gem 'actionpack', version
|
40
47
|
gem 'railties', version
|
48
|
+
gem 'sqlite3', '< 1.4'
|
41
49
|
end
|
42
50
|
|
43
51
|
appraise 'rails_5_2' do
|
@@ -45,4 +53,13 @@ appraise 'rails_5_2' do
|
|
45
53
|
gem 'activerecord', version
|
46
54
|
gem 'actionpack', version
|
47
55
|
gem 'railties', version
|
56
|
+
gem 'sqlite3', '< 1.4'
|
57
|
+
end
|
58
|
+
|
59
|
+
appraise 'rails_6' do
|
60
|
+
version = '~> 6.0'
|
61
|
+
gem 'activerecord', version
|
62
|
+
gem 'actionpack', version
|
63
|
+
gem 'railties', version
|
64
|
+
gem 'sqlite3', '~> 1.4'
|
48
65
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,61 +1,59 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lol_dba (2.
|
5
|
-
actionpack (>= 3.0, <
|
6
|
-
activerecord (>= 3.0, <
|
7
|
-
railties (>= 3.0, <
|
4
|
+
lol_dba (2.2.0)
|
5
|
+
actionpack (>= 3.0, < 7.0)
|
6
|
+
activerecord (>= 3.0, < 7.0)
|
7
|
+
railties (>= 3.0, < 7.0)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actionpack (
|
13
|
-
actionview (=
|
14
|
-
activesupport (=
|
12
|
+
actionpack (6.0.2.2)
|
13
|
+
actionview (= 6.0.2.2)
|
14
|
+
activesupport (= 6.0.2.2)
|
15
15
|
rack (~> 2.0, >= 2.0.8)
|
16
16
|
rack-test (>= 0.6.3)
|
17
17
|
rails-dom-testing (~> 2.0)
|
18
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
19
|
-
actionview (
|
20
|
-
activesupport (=
|
18
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
19
|
+
actionview (6.0.2.2)
|
20
|
+
activesupport (= 6.0.2.2)
|
21
21
|
builder (~> 3.1)
|
22
22
|
erubi (~> 1.4)
|
23
23
|
rails-dom-testing (~> 2.0)
|
24
|
-
rails-html-sanitizer (~> 1.
|
25
|
-
activemodel (
|
26
|
-
activesupport (=
|
27
|
-
activerecord (
|
28
|
-
activemodel (=
|
29
|
-
activesupport (=
|
30
|
-
|
31
|
-
activesupport (5.2.4.1)
|
24
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
25
|
+
activemodel (6.0.2.2)
|
26
|
+
activesupport (= 6.0.2.2)
|
27
|
+
activerecord (6.0.2.2)
|
28
|
+
activemodel (= 6.0.2.2)
|
29
|
+
activesupport (= 6.0.2.2)
|
30
|
+
activesupport (6.0.2.2)
|
32
31
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
33
32
|
i18n (>= 0.7, < 2)
|
34
33
|
minitest (~> 5.1)
|
35
34
|
tzinfo (~> 1.1)
|
35
|
+
zeitwerk (~> 2.2)
|
36
36
|
appraisal (2.2.0)
|
37
37
|
bundler
|
38
38
|
rake
|
39
39
|
thor (>= 0.14.0)
|
40
|
-
arel (9.0.0)
|
41
40
|
builder (3.2.4)
|
42
|
-
concurrent-ruby (1.1.
|
41
|
+
concurrent-ruby (1.1.6)
|
43
42
|
crass (1.0.6)
|
44
43
|
diff-lcs (1.3)
|
45
44
|
docile (1.3.2)
|
46
45
|
erubi (1.9.0)
|
47
46
|
i18n (1.8.2)
|
48
47
|
concurrent-ruby (~> 1.0)
|
49
|
-
json (2.3.0)
|
50
48
|
loofah (2.4.0)
|
51
49
|
crass (~> 1.0.2)
|
52
50
|
nokogiri (>= 1.5.9)
|
53
|
-
method_source (0.
|
51
|
+
method_source (1.0.0)
|
54
52
|
mini_portile2 (2.4.0)
|
55
53
|
minitest (5.14.0)
|
56
|
-
nokogiri (1.10.
|
54
|
+
nokogiri (1.10.9)
|
57
55
|
mini_portile2 (~> 2.4.0)
|
58
|
-
rack (2.
|
56
|
+
rack (2.2.2)
|
59
57
|
rack-test (1.1.0)
|
60
58
|
rack (>= 1.0, < 3)
|
61
59
|
rails-dom-testing (2.0.3)
|
@@ -63,50 +61,48 @@ GEM
|
|
63
61
|
nokogiri (>= 1.6)
|
64
62
|
rails-html-sanitizer (1.3.0)
|
65
63
|
loofah (~> 2.3)
|
66
|
-
railties (
|
67
|
-
actionpack (=
|
68
|
-
activesupport (=
|
64
|
+
railties (6.0.2.2)
|
65
|
+
actionpack (= 6.0.2.2)
|
66
|
+
activesupport (= 6.0.2.2)
|
69
67
|
method_source
|
70
68
|
rake (>= 0.8.7)
|
71
|
-
thor (>= 0.
|
69
|
+
thor (>= 0.20.3, < 2.0)
|
72
70
|
rake (13.0.1)
|
73
71
|
rspec-core (3.9.1)
|
74
72
|
rspec-support (~> 3.9.1)
|
75
|
-
rspec-expectations (3.9.
|
73
|
+
rspec-expectations (3.9.1)
|
76
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
77
75
|
rspec-support (~> 3.9.0)
|
78
76
|
rspec-mocks (3.9.1)
|
79
77
|
diff-lcs (>= 1.2.0, < 2.0)
|
80
78
|
rspec-support (~> 3.9.0)
|
81
|
-
rspec-rails (
|
82
|
-
actionpack (>=
|
83
|
-
activesupport (>=
|
84
|
-
railties (>=
|
85
|
-
rspec-core (~> 3.9
|
86
|
-
rspec-expectations (~> 3.9
|
87
|
-
rspec-mocks (~> 3.9
|
88
|
-
rspec-support (~> 3.9
|
79
|
+
rspec-rails (4.0.0)
|
80
|
+
actionpack (>= 4.2)
|
81
|
+
activesupport (>= 4.2)
|
82
|
+
railties (>= 4.2)
|
83
|
+
rspec-core (~> 3.9)
|
84
|
+
rspec-expectations (~> 3.9)
|
85
|
+
rspec-mocks (~> 3.9)
|
86
|
+
rspec-support (~> 3.9)
|
89
87
|
rspec-support (3.9.2)
|
90
|
-
simplecov (0.
|
88
|
+
simplecov (0.18.5)
|
91
89
|
docile (~> 1.1)
|
92
|
-
|
93
|
-
|
94
|
-
simplecov-html (0.10.2)
|
95
|
-
sqlite3 (1.3.13)
|
90
|
+
simplecov-html (~> 0.11)
|
91
|
+
simplecov-html (0.12.2)
|
96
92
|
thor (1.0.1)
|
97
93
|
thread_safe (0.3.6)
|
98
94
|
tzinfo (1.2.6)
|
99
95
|
thread_safe (~> 0.1)
|
96
|
+
zeitwerk (2.3.0)
|
100
97
|
|
101
98
|
PLATFORMS
|
102
99
|
ruby
|
103
100
|
|
104
101
|
DEPENDENCIES
|
105
|
-
appraisal
|
102
|
+
appraisal
|
106
103
|
lol_dba!
|
107
104
|
rspec-rails
|
108
|
-
simplecov
|
109
|
-
sqlite3 (~> 1.3.5)
|
105
|
+
simplecov
|
110
106
|
|
111
107
|
BUNDLED WITH
|
112
108
|
2.1.4
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -5,9 +5,7 @@ require 'appraisal'
|
|
5
5
|
|
6
6
|
if !ENV['APPRAISAL_INITIALIZED'] && !ENV['TRAVIS']
|
7
7
|
desc 'Default: run unit tests with appraisal.'
|
8
|
-
task :
|
9
|
-
sh 'appraisal install && rake appraisal spec'
|
10
|
-
end
|
8
|
+
task default: :appraisal
|
11
9
|
else
|
12
10
|
desc 'Default: run unit tests.'
|
13
11
|
task default: :spec
|
data/gemfiles/rails_3_2.gemfile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
lol_dba (2.
|
5
|
-
actionpack (>= 3.0, <
|
6
|
-
activerecord (>= 3.0, <
|
7
|
-
railties (>= 3.0, <
|
4
|
+
lol_dba (2.2.0)
|
5
|
+
actionpack (>= 3.0, < 7.0)
|
6
|
+
activerecord (>= 3.0, < 7.0)
|
7
|
+
railties (>= 3.0, < 7.0)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -36,7 +36,7 @@ GEM
|
|
36
36
|
thor (>= 0.14.0)
|
37
37
|
arel (3.0.3)
|
38
38
|
builder (3.0.4)
|
39
|
-
concurrent-ruby (1.1.
|
39
|
+
concurrent-ruby (1.1.6)
|
40
40
|
diff-lcs (1.3)
|
41
41
|
docile (1.3.2)
|
42
42
|
erubis (2.7.0)
|
@@ -44,7 +44,7 @@ GEM
|
|
44
44
|
i18n (0.9.5)
|
45
45
|
concurrent-ruby (~> 1.0)
|
46
46
|
journey (1.0.4)
|
47
|
-
json (
|
47
|
+
json (1.8.6)
|
48
48
|
multi_json (1.14.1)
|
49
49
|
rack (1.4.7)
|
50
50
|
rack-cache (1.11.0)
|
@@ -61,16 +61,17 @@ GEM
|
|
61
61
|
rdoc (~> 3.4)
|
62
62
|
thor (>= 0.14.6, < 2.0)
|
63
63
|
rake (13.0.1)
|
64
|
-
rdoc (3.
|
64
|
+
rdoc (3.12.2)
|
65
|
+
json (~> 1.4)
|
65
66
|
rspec-core (3.9.1)
|
66
67
|
rspec-support (~> 3.9.1)
|
67
|
-
rspec-expectations (3.9.
|
68
|
+
rspec-expectations (3.9.1)
|
68
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
69
70
|
rspec-support (~> 3.9.0)
|
70
71
|
rspec-mocks (3.9.1)
|
71
72
|
diff-lcs (>= 1.2.0, < 2.0)
|
72
73
|
rspec-support (~> 3.9.0)
|
73
|
-
rspec-rails (3.9.
|
74
|
+
rspec-rails (3.9.1)
|
74
75
|
actionpack (>= 3.0)
|
75
76
|
activesupport (>= 3.0)
|
76
77
|
railties (>= 3.0)
|
@@ -79,11 +80,10 @@ GEM
|
|
79
80
|
rspec-mocks (~> 3.9.0)
|
80
81
|
rspec-support (~> 3.9.0)
|
81
82
|
rspec-support (3.9.2)
|
82
|
-
simplecov (0.
|
83
|
+
simplecov (0.18.5)
|
83
84
|
docile (~> 1.1)
|
84
|
-
|
85
|
-
|
86
|
-
simplecov-html (0.10.2)
|
85
|
+
simplecov-html (~> 0.11)
|
86
|
+
simplecov-html (0.12.2)
|
87
87
|
sprockets (2.2.3)
|
88
88
|
hike (~> 1.2)
|
89
89
|
multi_json (~> 1.0)
|
@@ -100,12 +100,12 @@ PLATFORMS
|
|
100
100
|
DEPENDENCIES
|
101
101
|
actionpack (~> 3.2.21)
|
102
102
|
activerecord (~> 3.2.21)
|
103
|
-
appraisal
|
103
|
+
appraisal
|
104
104
|
lol_dba!
|
105
105
|
railties (~> 3.2.21)
|
106
106
|
rspec-rails
|
107
|
-
simplecov
|
108
|
-
sqlite3 (
|
107
|
+
simplecov
|
108
|
+
sqlite3 (< 1.4)
|
109
109
|
|
110
110
|
BUNDLED WITH
|
111
111
|
2.1.4
|
data/gemfiles/rails_4_0.gemfile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
lol_dba (2.
|
5
|
-
actionpack (>= 3.0, <
|
6
|
-
activerecord (>= 3.0, <
|
7
|
-
railties (>= 3.0, <
|
4
|
+
lol_dba (2.2.0)
|
5
|
+
actionpack (>= 3.0, < 7.0)
|
6
|
+
activerecord (>= 3.0, < 7.0)
|
7
|
+
railties (>= 3.0, < 7.0)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -36,13 +36,12 @@ GEM
|
|
36
36
|
thor (>= 0.14.0)
|
37
37
|
arel (4.0.2)
|
38
38
|
builder (3.1.4)
|
39
|
-
concurrent-ruby (1.1.
|
39
|
+
concurrent-ruby (1.1.6)
|
40
40
|
diff-lcs (1.3)
|
41
41
|
docile (1.3.2)
|
42
42
|
erubis (2.7.0)
|
43
43
|
i18n (0.9.5)
|
44
44
|
concurrent-ruby (~> 1.0)
|
45
|
-
json (2.3.0)
|
46
45
|
minitest (4.7.5)
|
47
46
|
multi_json (1.14.1)
|
48
47
|
rack (1.5.5)
|
@@ -56,13 +55,13 @@ GEM
|
|
56
55
|
rake (13.0.1)
|
57
56
|
rspec-core (3.9.1)
|
58
57
|
rspec-support (~> 3.9.1)
|
59
|
-
rspec-expectations (3.9.
|
58
|
+
rspec-expectations (3.9.1)
|
60
59
|
diff-lcs (>= 1.2.0, < 2.0)
|
61
60
|
rspec-support (~> 3.9.0)
|
62
61
|
rspec-mocks (3.9.1)
|
63
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
64
63
|
rspec-support (~> 3.9.0)
|
65
|
-
rspec-rails (3.9.
|
64
|
+
rspec-rails (3.9.1)
|
66
65
|
actionpack (>= 3.0)
|
67
66
|
activesupport (>= 3.0)
|
68
67
|
railties (>= 3.0)
|
@@ -71,11 +70,10 @@ GEM
|
|
71
70
|
rspec-mocks (~> 3.9.0)
|
72
71
|
rspec-support (~> 3.9.0)
|
73
72
|
rspec-support (3.9.2)
|
74
|
-
simplecov (0.
|
73
|
+
simplecov (0.18.5)
|
75
74
|
docile (~> 1.1)
|
76
|
-
|
77
|
-
|
78
|
-
simplecov-html (0.10.2)
|
75
|
+
simplecov-html (~> 0.11)
|
76
|
+
simplecov-html (0.12.2)
|
79
77
|
sqlite3 (1.3.13)
|
80
78
|
thor (1.0.1)
|
81
79
|
thread_safe (0.3.6)
|
@@ -87,12 +85,12 @@ PLATFORMS
|
|
87
85
|
DEPENDENCIES
|
88
86
|
actionpack (~> 4.0.13)
|
89
87
|
activerecord (~> 4.0.13)
|
90
|
-
appraisal
|
88
|
+
appraisal
|
91
89
|
lol_dba!
|
92
90
|
railties (~> 4.0.13)
|
93
91
|
rspec-rails
|
94
|
-
simplecov
|
95
|
-
sqlite3 (
|
92
|
+
simplecov
|
93
|
+
sqlite3 (< 1.4)
|
96
94
|
|
97
95
|
BUNDLED WITH
|
98
96
|
2.1.4
|