departure 6.6.0 → 6.7.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/.github/workflows/test.yml +16 -51
- data/.gitignore +0 -1
- data/.rubocop.yml +5 -8
- data/.rubocop_todo.yml +168 -41
- data/Appraisals +35 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -1
- data/Gemfile.lock +196 -0
- data/README.md +2 -2
- data/departure.gemspec +5 -8
- data/gemfiles/rails_6_0.gemfile +10 -0
- data/gemfiles/rails_6_0.gemfile.lock +238 -0
- data/gemfiles/rails_6_1.gemfile +10 -0
- data/gemfiles/rails_6_1.gemfile.lock +241 -0
- data/gemfiles/rails_7_0.gemfile +10 -0
- data/gemfiles/rails_7_0.gemfile.lock +240 -0
- data/gemfiles/rails_7_1.gemfile +10 -0
- data/gemfiles/rails_7_1.gemfile.lock +274 -0
- data/gemfiles/ruby_2.7_rails_6_0.gemfile +11 -0
- data/gemfiles/ruby_2.7_rails_6_0.gemfile.lock +239 -0
- data/gemfiles/ruby_2.7_rails_6_1.gemfile +11 -0
- data/gemfiles/ruby_2.7_rails_6_1.gemfile.lock +242 -0
- data/gemfiles/ruby_2.7_rails_7_0.gemfile +11 -0
- data/gemfiles/ruby_2.7_rails_7_0.gemfile.lock +241 -0
- data/gemfiles/ruby_2.7_rails_7_1.gemfile +11 -0
- data/gemfiles/ruby_2.7_rails_7_1.gemfile.lock +275 -0
- data/lib/departure/version.rb +1 -1
- metadata +44 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20a21cad1f7573b67e0d97621bec0ad444df55107245cf60e723d1888866f6f0
|
|
4
|
+
data.tar.gz: 2be02cb3f5679f7f563acdfe917bd4f59273e39428bc9abf1f25aa2ca44b1f66
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78935d84d7ed9a2598f9a951ddf59f35a2b174dd8980e76b6186e9959c611ad8dee59242d29efcce366a8fde2b028feeb59fa2667fd7a155ada61c386aa4d3cd
|
|
7
|
+
data.tar.gz: 2ac8a86463173ec2cf7c1a2da87432271a2fa759db919ff825da8cad1f6bded9ee8a8e7e47fc1c85754e19fea18ad7c2093c0fa23ef1a85b26120a943fca2cf5
|
data/.github/workflows/test.yml
CHANGED
|
@@ -8,57 +8,27 @@ jobs:
|
|
|
8
8
|
fail-fast: false
|
|
9
9
|
matrix:
|
|
10
10
|
ruby:
|
|
11
|
-
- 2.4
|
|
12
|
-
- 2.5
|
|
13
|
-
- 2.6
|
|
14
|
-
- 2.7
|
|
15
11
|
- 3.0
|
|
16
12
|
- 3.1
|
|
17
13
|
- 3.2
|
|
18
14
|
- 3.3
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
- 7
|
|
25
|
-
|
|
26
|
-
- ruby: 2.
|
|
27
|
-
|
|
28
|
-
- ruby: 2.
|
|
29
|
-
|
|
30
|
-
- ruby: 2.
|
|
31
|
-
|
|
32
|
-
- ruby: 2.4
|
|
33
|
-
rails: 7.1.2
|
|
34
|
-
- ruby: 2.5
|
|
35
|
-
rails: 7.0.1
|
|
36
|
-
- ruby: 2.5
|
|
37
|
-
rails: 7.1.2
|
|
38
|
-
- ruby: 2.6
|
|
39
|
-
rails: 7.0.1
|
|
40
|
-
- ruby: 2.6
|
|
41
|
-
rails: 7.1.2
|
|
42
|
-
- ruby: 3.0
|
|
43
|
-
rails: 5.2.0
|
|
44
|
-
- ruby: 3.0
|
|
45
|
-
rails: 6.0.0
|
|
46
|
-
- ruby: 3.1
|
|
47
|
-
rails: 5.2.0
|
|
48
|
-
- ruby: 3.1
|
|
49
|
-
rails: 6.0.0
|
|
50
|
-
- ruby: 3.2
|
|
51
|
-
rails: 5.2.0
|
|
52
|
-
- ruby: 3.2
|
|
53
|
-
rails: 6.0.0
|
|
54
|
-
- ruby: 3.3
|
|
55
|
-
rails: 5.2.0
|
|
56
|
-
- ruby: 3.3
|
|
57
|
-
rails: 6.0.0
|
|
15
|
+
gemfile:
|
|
16
|
+
- gemfiles/rails_6_1.gemfile
|
|
17
|
+
- gemfiles/rails_7_0.gemfile
|
|
18
|
+
- gemfiles/rails_7_1.gemfile
|
|
19
|
+
include:
|
|
20
|
+
- ruby: 2.7
|
|
21
|
+
gemfile: gemfiles/ruby_2.7_rails_6_0.gemfile
|
|
22
|
+
- ruby: 2.7
|
|
23
|
+
gemfile: gemfiles/ruby_2.7_rails_6_1.gemfile
|
|
24
|
+
- ruby: 2.7
|
|
25
|
+
gemfile: gemfiles/ruby_2.7_rails_7_0.gemfile
|
|
26
|
+
- ruby: 2.7
|
|
27
|
+
gemfile: gemfiles/ruby_2.7_rails_7_1.gemfile
|
|
58
28
|
env:
|
|
59
29
|
PERCONA_DB_USER: root
|
|
60
30
|
PERCONA_DB_PASSWORD: root
|
|
61
|
-
|
|
31
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
|
62
32
|
runs-on: ubuntu-latest
|
|
63
33
|
steps:
|
|
64
34
|
- uses: actions/checkout@v4
|
|
@@ -79,20 +49,15 @@ jobs:
|
|
|
79
49
|
lint:
|
|
80
50
|
strategy:
|
|
81
51
|
fail-fast: false
|
|
82
|
-
matrix:
|
|
83
|
-
ruby:
|
|
84
|
-
- 2.7
|
|
85
|
-
rails:
|
|
86
|
-
- 6.1.0
|
|
87
52
|
env:
|
|
88
53
|
PERCONA_DB_USER: root
|
|
89
54
|
PERCONA_DB_PASSWORD: root
|
|
90
|
-
|
|
55
|
+
BUNDLE_GEMFILE: gemfiles/ruby_2.7_rails_6_0.gemfile
|
|
91
56
|
runs-on: ubuntu-latest
|
|
92
57
|
steps:
|
|
93
58
|
- uses: actions/checkout@v4
|
|
94
59
|
- uses: ruby/setup-ruby@v1
|
|
95
60
|
with:
|
|
96
|
-
ruby-version:
|
|
61
|
+
ruby-version: 2.7
|
|
97
62
|
bundler-cache: true
|
|
98
63
|
- run: bundle exec rubocop --parallel
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
inherit_from:
|
|
3
3
|
- .rubocop_todo.yml
|
|
4
4
|
|
|
5
|
+
require:
|
|
6
|
+
- rubocop-performance
|
|
7
|
+
|
|
5
8
|
AllCops:
|
|
6
9
|
TargetRubyVersion: 2.4
|
|
7
10
|
|
|
@@ -20,7 +23,7 @@ Metrics/BlockNesting:
|
|
|
20
23
|
Metrics/ClassLength:
|
|
21
24
|
Max: 250
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
Layout/LineLength:
|
|
24
27
|
Max: 120
|
|
25
28
|
Exclude:
|
|
26
29
|
- 'departure.gemspec'
|
|
@@ -38,12 +41,6 @@ Metrics/ParameterLists:
|
|
|
38
41
|
Performance/Casecmp:
|
|
39
42
|
Enabled: false
|
|
40
43
|
|
|
41
|
-
Style/BracesAroundHashParameters:
|
|
42
|
-
Exclude:
|
|
43
|
-
- 'spec/fixtures/migrate/**.rb'
|
|
44
|
-
- 'spec/integration/**.rb'
|
|
45
|
-
- 'spec/lhm/adapter/**.rb'
|
|
46
|
-
|
|
47
44
|
Style/CommandLiteral:
|
|
48
45
|
Exclude:
|
|
49
46
|
- 'test_database.rb'
|
|
@@ -64,6 +61,6 @@ Layout/MultilineMethodCallIndentation:
|
|
|
64
61
|
Style/SymbolArray:
|
|
65
62
|
Enabled: false
|
|
66
63
|
|
|
67
|
-
Style/
|
|
64
|
+
Style/RedundantPercentQ:
|
|
68
65
|
Exclude:
|
|
69
66
|
- 'departure.gemspec'
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,84 +1,217 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2024-
|
|
3
|
+
# on 2024-02-08 17:09:11 UTC using RuboCop version 1.60.2.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
9
|
# Offense count: 3
|
|
10
|
-
#
|
|
11
|
-
# Configuration parameters:
|
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
|
12
|
+
# Include: **/*.gemspec
|
|
13
|
+
Gemspec/OrderedDependencies:
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'departure.gemspec'
|
|
16
|
+
|
|
17
|
+
# Offense count: 1
|
|
18
|
+
# Configuration parameters: Severity, Include.
|
|
19
|
+
# Include: **/*.gemspec
|
|
20
|
+
Gemspec/RequiredRubyVersion:
|
|
21
|
+
Exclude:
|
|
22
|
+
- 'departure.gemspec'
|
|
23
|
+
|
|
24
|
+
# Offense count: 3
|
|
25
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
26
|
+
# Configuration parameters: EnforcedStyle.
|
|
12
27
|
# SupportedStyles: leading, trailing
|
|
13
28
|
Layout/DotPosition:
|
|
14
29
|
Exclude:
|
|
15
30
|
- 'spec/integration/indexes_spec.rb'
|
|
16
31
|
|
|
32
|
+
# Offense count: 6
|
|
33
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
34
|
+
Layout/EmptyLineAfterGuardClause:
|
|
35
|
+
Exclude:
|
|
36
|
+
- 'lib/active_record/connection_adapters/for_alter.rb'
|
|
37
|
+
- 'lib/active_record/connection_adapters/percona_adapter.rb'
|
|
38
|
+
- 'lib/departure/alter_argument.rb'
|
|
39
|
+
- 'lib/departure/log_sanitizers/password_sanitizer.rb'
|
|
40
|
+
- 'lib/departure/migration.rb'
|
|
41
|
+
|
|
17
42
|
# Offense count: 4
|
|
18
|
-
#
|
|
19
|
-
# Configuration parameters:
|
|
43
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
44
|
+
# Configuration parameters: IndentationWidth.
|
|
20
45
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
21
|
-
Layout/
|
|
46
|
+
Layout/FirstArrayElementIndentation:
|
|
22
47
|
EnforcedStyle: consistent
|
|
23
48
|
|
|
24
49
|
# Offense count: 1
|
|
25
|
-
#
|
|
26
|
-
# Configuration parameters: Width,
|
|
50
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
51
|
+
# Configuration parameters: Width, AllowedPatterns.
|
|
27
52
|
Layout/IndentationWidth:
|
|
28
53
|
Exclude:
|
|
29
54
|
- 'spec/integration/indexes_spec.rb'
|
|
30
55
|
|
|
56
|
+
# Offense count: 1
|
|
57
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
58
|
+
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
|
|
59
|
+
Layout/LeadingCommentSpace:
|
|
60
|
+
Exclude:
|
|
61
|
+
- 'lib/active_record/connection_adapters/for_alter.rb'
|
|
62
|
+
|
|
31
63
|
# Offense count: 2
|
|
32
|
-
#
|
|
33
|
-
# Configuration parameters: EnforcedStyle,
|
|
64
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
65
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
34
66
|
# SupportedStyles: space, no_space, compact
|
|
35
67
|
# SupportedStylesForEmptyBraces: space, no_space
|
|
36
68
|
Layout/SpaceInsideHashLiteralBraces:
|
|
37
69
|
Exclude:
|
|
38
70
|
- 'spec/active_record/connection_adapters/percona_adapter_spec.rb'
|
|
39
71
|
|
|
72
|
+
# Offense count: 9
|
|
73
|
+
# Configuration parameters: AllowedMethods.
|
|
74
|
+
# AllowedMethods: enums
|
|
75
|
+
Lint/ConstantDefinitionInBlock:
|
|
76
|
+
Exclude:
|
|
77
|
+
- 'spec/integration/change_table_spec.rb'
|
|
78
|
+
- 'spec/integration/columns_spec.rb'
|
|
79
|
+
- 'spec/integration/data_migrations_spec.rb'
|
|
80
|
+
- 'spec/integration/foreign_keys_spec.rb'
|
|
81
|
+
- 'spec/integration/indexes_spec.rb'
|
|
82
|
+
- 'spec/integration/references_spec.rb'
|
|
83
|
+
- 'spec/integration/tables_spec.rb'
|
|
84
|
+
- 'spec/integration_spec.rb'
|
|
85
|
+
- 'spec/lhm_integration_spec.rb'
|
|
86
|
+
|
|
40
87
|
# Offense count: 2
|
|
41
|
-
#
|
|
42
|
-
|
|
88
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
89
|
+
Lint/RedundantCopDisableDirective:
|
|
90
|
+
Exclude:
|
|
91
|
+
- 'lib/active_record/connection_adapters/percona_adapter.rb'
|
|
92
|
+
- 'lib/departure/command.rb'
|
|
93
|
+
|
|
94
|
+
# Offense count: 1
|
|
95
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
96
|
+
Lint/SendWithMixinArgument:
|
|
97
|
+
Exclude:
|
|
98
|
+
- 'spec/spec_helper.rb'
|
|
99
|
+
|
|
100
|
+
# Offense count: 2
|
|
101
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
102
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
|
43
103
|
Lint/UnusedMethodArgument:
|
|
44
104
|
Exclude:
|
|
45
105
|
- 'lib/active_record/connection_adapters/for_alter.rb'
|
|
46
106
|
- 'spec/spec_helper.rb'
|
|
47
107
|
|
|
48
108
|
# Offense count: 1
|
|
49
|
-
# Configuration parameters:
|
|
50
|
-
#
|
|
51
|
-
|
|
52
|
-
|
|
109
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
110
|
+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
|
111
|
+
Naming/MethodParameterName:
|
|
112
|
+
Exclude:
|
|
113
|
+
- 'lib/active_record/connection_adapters/percona_adapter.rb'
|
|
53
114
|
|
|
54
115
|
# Offense count: 1
|
|
55
|
-
#
|
|
116
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
56
117
|
Security/YAMLLoad:
|
|
57
118
|
Exclude:
|
|
58
119
|
- 'configuration.rb'
|
|
59
120
|
|
|
60
|
-
# Offense count:
|
|
61
|
-
#
|
|
62
|
-
# Configuration parameters: EnforcedStyle,
|
|
63
|
-
# SupportedStyles:
|
|
64
|
-
Style/
|
|
121
|
+
# Offense count: 1
|
|
122
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
123
|
+
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
|
|
124
|
+
# SupportedStyles: inline, group
|
|
125
|
+
Style/AccessModifierDeclarations:
|
|
65
126
|
Exclude:
|
|
66
|
-
- '
|
|
67
|
-
- 'spec/integration/**.rb'
|
|
68
|
-
- 'spec/lhm/adapter/add_unique_index_spec.rb'
|
|
69
|
-
- 'spec/lhm/adapter/remove_index_spec.rb'
|
|
127
|
+
- 'lib/departure/migration.rb'
|
|
70
128
|
|
|
71
129
|
# Offense count: 1
|
|
72
|
-
#
|
|
73
|
-
# Configuration parameters: EnforcedStyle
|
|
130
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
131
|
+
# Configuration parameters: EnforcedStyle.
|
|
74
132
|
# SupportedStyles: compact, expanded
|
|
75
133
|
Style/EmptyMethod:
|
|
76
134
|
Exclude:
|
|
77
135
|
- 'spec/fixtures/migrate/0029_disable_departure.rb'
|
|
78
136
|
|
|
137
|
+
# Offense count: 1
|
|
138
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
139
|
+
Style/Encoding:
|
|
140
|
+
Exclude:
|
|
141
|
+
- 'departure.gemspec'
|
|
142
|
+
|
|
143
|
+
# Offense count: 4
|
|
144
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
145
|
+
Style/ExpandPathArguments:
|
|
146
|
+
Exclude:
|
|
147
|
+
- 'departure.gemspec'
|
|
148
|
+
- 'spec/lhm_integration_spec.rb'
|
|
149
|
+
- 'spec/spec_helper.rb'
|
|
150
|
+
|
|
151
|
+
# Offense count: 2
|
|
152
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
153
|
+
Style/GlobalStdStream:
|
|
154
|
+
Exclude:
|
|
155
|
+
- 'lib/active_record/connection_adapters/for_alter.rb'
|
|
156
|
+
- 'spec/spec_helper.rb'
|
|
157
|
+
|
|
158
|
+
# Offense count: 2
|
|
159
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
160
|
+
Style/IfUnlessModifier:
|
|
161
|
+
Exclude:
|
|
162
|
+
- 'lib/active_record/connection_adapters/percona_adapter.rb'
|
|
163
|
+
- 'lib/departure/connection_details.rb'
|
|
164
|
+
|
|
165
|
+
# Offense count: 1
|
|
166
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
167
|
+
# Configuration parameters: EnforcedStyle.
|
|
168
|
+
# SupportedStyles: literals, strict
|
|
169
|
+
Style/MutableConstant:
|
|
170
|
+
Exclude:
|
|
171
|
+
- 'lib/departure/alter_argument.rb'
|
|
172
|
+
|
|
173
|
+
# Offense count: 2
|
|
174
|
+
# Configuration parameters: AllowedMethods.
|
|
175
|
+
# AllowedMethods: respond_to_missing?
|
|
176
|
+
Style/OptionalBooleanParameter:
|
|
177
|
+
Exclude:
|
|
178
|
+
- 'lib/departure/logger.rb'
|
|
179
|
+
- 'lib/departure/null_logger.rb'
|
|
180
|
+
|
|
181
|
+
# Offense count: 1
|
|
182
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
183
|
+
Style/RedundantConditional:
|
|
184
|
+
Exclude:
|
|
185
|
+
- 'lib/lhm/column_with_sql.rb'
|
|
186
|
+
|
|
187
|
+
# Offense count: 1
|
|
188
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
189
|
+
Style/RedundantInterpolation:
|
|
190
|
+
Exclude:
|
|
191
|
+
- 'spec/active_record/connection_adapters/percona_adapter_spec.rb'
|
|
192
|
+
|
|
193
|
+
# Offense count: 1
|
|
194
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
195
|
+
Style/RedundantRegexpCharacterClass:
|
|
196
|
+
Exclude:
|
|
197
|
+
- 'lib/departure/alter_argument.rb'
|
|
198
|
+
|
|
199
|
+
# Offense count: 1
|
|
200
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
201
|
+
Style/StderrPuts:
|
|
202
|
+
Exclude:
|
|
203
|
+
- 'lib/active_record/connection_adapters/for_alter.rb'
|
|
204
|
+
|
|
205
|
+
# Offense count: 1
|
|
206
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
207
|
+
# Configuration parameters: Mode.
|
|
208
|
+
Style/StringConcatenation:
|
|
209
|
+
Exclude:
|
|
210
|
+
- 'lib/departure/dsn.rb'
|
|
211
|
+
|
|
79
212
|
# Offense count: 12
|
|
80
|
-
#
|
|
81
|
-
# Configuration parameters: EnforcedStyle,
|
|
213
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
214
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
82
215
|
# SupportedStyles: single_quotes, double_quotes
|
|
83
216
|
Style/StringLiterals:
|
|
84
217
|
Exclude:
|
|
@@ -89,23 +222,17 @@ Style/StringLiterals:
|
|
|
89
222
|
- 'spec/lhm/column_with_sql_spec.rb'
|
|
90
223
|
|
|
91
224
|
# Offense count: 1
|
|
92
|
-
#
|
|
93
|
-
# Configuration parameters: EnforcedStyleForMultiline
|
|
225
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
226
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
94
227
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
95
228
|
Style/TrailingCommaInArguments:
|
|
96
229
|
Exclude:
|
|
97
230
|
- 'spec/departure/runner_spec.rb'
|
|
98
231
|
|
|
99
232
|
# Offense count: 1
|
|
100
|
-
#
|
|
101
|
-
# Configuration parameters: EnforcedStyleForMultiline
|
|
233
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
234
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
102
235
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
103
|
-
Style/
|
|
236
|
+
Style/TrailingCommaInArrayLiteral:
|
|
104
237
|
Exclude:
|
|
105
238
|
- 'spec/integration/data_migrations_spec.rb'
|
|
106
|
-
|
|
107
|
-
# Offense count: 1
|
|
108
|
-
# Cop supports --auto-correct.
|
|
109
|
-
Style/UnneededInterpolation:
|
|
110
|
-
Exclude:
|
|
111
|
-
- 'spec/active_record/connection_adapters/percona_adapter_spec.rb'
|
data/Appraisals
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
appraise 'rails-6-0' do
|
|
2
|
+
gem 'rails', '6.0.6.1'
|
|
3
|
+
end
|
|
4
|
+
|
|
5
|
+
appraise 'rails-6-1' do
|
|
6
|
+
gem 'rails', '6.1.7.6'
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
appraise 'rails-7-0' do
|
|
10
|
+
gem 'rails', '7.0.8'
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
appraise 'rails-7-1' do
|
|
14
|
+
gem 'rails', '7.1.3'
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
appraise 'ruby-2.7-rails-6-0' do
|
|
18
|
+
gem 'rails', '6.0.6.1'
|
|
19
|
+
gem 'nokogiri', '< 1.16'
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
appraise 'ruby-2.7-rails-6-1' do
|
|
23
|
+
gem 'rails', '6.1.7.6'
|
|
24
|
+
gem 'nokogiri', '< 1.16'
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
appraise 'ruby-2.7-rails-7-0' do
|
|
28
|
+
gem 'rails', '7.0.8'
|
|
29
|
+
gem 'nokogiri', '< 1.16'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
appraise 'ruby-2.7-rails-7-1' do
|
|
33
|
+
gem 'rails', '7.1.3'
|
|
34
|
+
gem 'nokogiri', '< 1.16'
|
|
35
|
+
end
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@ Please follow the format in [Keep a Changelog](http://keepachangelog.com/)
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [6.7.0] - 2024-02-20
|
|
10
|
+
|
|
11
|
+
- Flex mysql2 dependency to < 0.6 and bump version to 0.5.6
|
|
12
|
+
- Drop support for older than the latest EOL Ruby (2.7) and Rails (6.0)
|
|
13
|
+
|
|
9
14
|
## [6.6.0] - 2024-01-02
|
|
10
15
|
|
|
11
16
|
- Fix support for Rails 6.0 and ForAlter `remove_index` .
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
departure (6.7.0)
|
|
5
|
+
activerecord (>= 6.0.0, < 7.2.0, != 7.0.0)
|
|
6
|
+
mysql2 (>= 0.4.0, < 0.6.0)
|
|
7
|
+
railties (>= 6.0.0, < 7.2.0, != 7.0.0)
|
|
8
|
+
|
|
9
|
+
GEM
|
|
10
|
+
remote: https://rubygems.org/
|
|
11
|
+
specs:
|
|
12
|
+
actionpack (7.1.3)
|
|
13
|
+
actionview (= 7.1.3)
|
|
14
|
+
activesupport (= 7.1.3)
|
|
15
|
+
nokogiri (>= 1.8.5)
|
|
16
|
+
racc
|
|
17
|
+
rack (>= 2.2.4)
|
|
18
|
+
rack-session (>= 1.0.1)
|
|
19
|
+
rack-test (>= 0.6.3)
|
|
20
|
+
rails-dom-testing (~> 2.2)
|
|
21
|
+
rails-html-sanitizer (~> 1.6)
|
|
22
|
+
actionview (7.1.3)
|
|
23
|
+
activesupport (= 7.1.3)
|
|
24
|
+
builder (~> 3.1)
|
|
25
|
+
erubi (~> 1.11)
|
|
26
|
+
rails-dom-testing (~> 2.2)
|
|
27
|
+
rails-html-sanitizer (~> 1.6)
|
|
28
|
+
activemodel (7.1.3)
|
|
29
|
+
activesupport (= 7.1.3)
|
|
30
|
+
activerecord (7.1.3)
|
|
31
|
+
activemodel (= 7.1.3)
|
|
32
|
+
activesupport (= 7.1.3)
|
|
33
|
+
timeout (>= 0.4.0)
|
|
34
|
+
activesupport (7.1.3)
|
|
35
|
+
base64
|
|
36
|
+
bigdecimal
|
|
37
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
38
|
+
connection_pool (>= 2.2.5)
|
|
39
|
+
drb
|
|
40
|
+
i18n (>= 1.6, < 2)
|
|
41
|
+
minitest (>= 5.1)
|
|
42
|
+
mutex_m
|
|
43
|
+
tzinfo (~> 2.0)
|
|
44
|
+
appraisal (2.4.1)
|
|
45
|
+
bundler
|
|
46
|
+
rake
|
|
47
|
+
thor (>= 0.14.0)
|
|
48
|
+
ast (2.4.2)
|
|
49
|
+
base64 (0.2.0)
|
|
50
|
+
bigdecimal (3.1.6)
|
|
51
|
+
builder (3.2.4)
|
|
52
|
+
byebug (11.1.3)
|
|
53
|
+
climate_control (0.0.4)
|
|
54
|
+
activesupport (>= 3.0)
|
|
55
|
+
codeclimate-test-reporter (1.0.9)
|
|
56
|
+
simplecov (<= 0.13)
|
|
57
|
+
coderay (1.1.3)
|
|
58
|
+
concurrent-ruby (1.2.3)
|
|
59
|
+
connection_pool (2.4.1)
|
|
60
|
+
crass (1.0.6)
|
|
61
|
+
diff-lcs (1.5.1)
|
|
62
|
+
docile (1.1.5)
|
|
63
|
+
drb (2.2.0)
|
|
64
|
+
ruby2_keywords
|
|
65
|
+
erubi (1.12.0)
|
|
66
|
+
i18n (1.14.1)
|
|
67
|
+
concurrent-ruby (~> 1.0)
|
|
68
|
+
io-console (0.7.2)
|
|
69
|
+
irb (1.11.2)
|
|
70
|
+
rdoc
|
|
71
|
+
reline (>= 0.4.2)
|
|
72
|
+
json (2.7.1)
|
|
73
|
+
language_server-protocol (3.17.0.3)
|
|
74
|
+
loofah (2.22.0)
|
|
75
|
+
crass (~> 1.0.2)
|
|
76
|
+
nokogiri (>= 1.12.0)
|
|
77
|
+
method_source (1.0.0)
|
|
78
|
+
minitest (5.22.2)
|
|
79
|
+
mutex_m (0.2.0)
|
|
80
|
+
mysql2 (0.5.6)
|
|
81
|
+
nokogiri (1.16.2-arm64-darwin)
|
|
82
|
+
racc (~> 1.4)
|
|
83
|
+
nokogiri (1.16.2-x86_64-linux)
|
|
84
|
+
racc (~> 1.4)
|
|
85
|
+
parallel (1.24.0)
|
|
86
|
+
parser (3.3.0.5)
|
|
87
|
+
ast (~> 2.4.1)
|
|
88
|
+
racc
|
|
89
|
+
pry (0.14.2)
|
|
90
|
+
coderay (~> 1.1)
|
|
91
|
+
method_source (~> 1.0)
|
|
92
|
+
pry-byebug (3.10.1)
|
|
93
|
+
byebug (~> 11.0)
|
|
94
|
+
pry (>= 0.13, < 0.15)
|
|
95
|
+
psych (5.1.2)
|
|
96
|
+
stringio
|
|
97
|
+
racc (1.7.3)
|
|
98
|
+
rack (3.0.9)
|
|
99
|
+
rack-session (2.0.0)
|
|
100
|
+
rack (>= 3.0.0)
|
|
101
|
+
rack-test (2.1.0)
|
|
102
|
+
rack (>= 1.3)
|
|
103
|
+
rackup (2.1.0)
|
|
104
|
+
rack (>= 3)
|
|
105
|
+
webrick (~> 1.8)
|
|
106
|
+
rails-dom-testing (2.2.0)
|
|
107
|
+
activesupport (>= 5.0.0)
|
|
108
|
+
minitest
|
|
109
|
+
nokogiri (>= 1.6)
|
|
110
|
+
rails-html-sanitizer (1.6.0)
|
|
111
|
+
loofah (~> 2.21)
|
|
112
|
+
nokogiri (~> 1.14)
|
|
113
|
+
railties (7.1.3)
|
|
114
|
+
actionpack (= 7.1.3)
|
|
115
|
+
activesupport (= 7.1.3)
|
|
116
|
+
irb
|
|
117
|
+
rackup (>= 1.0.0)
|
|
118
|
+
rake (>= 12.2)
|
|
119
|
+
thor (~> 1.0, >= 1.2.2)
|
|
120
|
+
zeitwerk (~> 2.6)
|
|
121
|
+
rainbow (3.1.1)
|
|
122
|
+
rake (13.1.0)
|
|
123
|
+
rdoc (6.6.2)
|
|
124
|
+
psych (>= 4.0.0)
|
|
125
|
+
regexp_parser (2.9.0)
|
|
126
|
+
reline (0.4.2)
|
|
127
|
+
io-console (~> 0.5)
|
|
128
|
+
rexml (3.2.6)
|
|
129
|
+
rspec (3.13.0)
|
|
130
|
+
rspec-core (~> 3.13.0)
|
|
131
|
+
rspec-expectations (~> 3.13.0)
|
|
132
|
+
rspec-mocks (~> 3.13.0)
|
|
133
|
+
rspec-core (3.13.0)
|
|
134
|
+
rspec-support (~> 3.13.0)
|
|
135
|
+
rspec-expectations (3.13.0)
|
|
136
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
137
|
+
rspec-support (~> 3.13.0)
|
|
138
|
+
rspec-its (1.3.0)
|
|
139
|
+
rspec-core (>= 3.0.0)
|
|
140
|
+
rspec-expectations (>= 3.0.0)
|
|
141
|
+
rspec-mocks (3.13.0)
|
|
142
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
143
|
+
rspec-support (~> 3.13.0)
|
|
144
|
+
rspec-support (3.13.0)
|
|
145
|
+
rubocop (1.60.2)
|
|
146
|
+
json (~> 2.3)
|
|
147
|
+
language_server-protocol (>= 3.17.0)
|
|
148
|
+
parallel (~> 1.10)
|
|
149
|
+
parser (>= 3.3.0.2)
|
|
150
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
151
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
152
|
+
rexml (>= 3.2.5, < 4.0)
|
|
153
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
|
154
|
+
ruby-progressbar (~> 1.7)
|
|
155
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
156
|
+
rubocop-ast (1.30.0)
|
|
157
|
+
parser (>= 3.2.1.0)
|
|
158
|
+
rubocop-performance (1.20.2)
|
|
159
|
+
rubocop (>= 1.48.1, < 2.0)
|
|
160
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
|
161
|
+
ruby-progressbar (1.13.0)
|
|
162
|
+
ruby2_keywords (0.0.5)
|
|
163
|
+
simplecov (0.13.0)
|
|
164
|
+
docile (~> 1.1.0)
|
|
165
|
+
json (>= 1.8, < 3)
|
|
166
|
+
simplecov-html (~> 0.10.0)
|
|
167
|
+
simplecov-html (0.10.2)
|
|
168
|
+
stringio (3.1.0)
|
|
169
|
+
thor (1.3.0)
|
|
170
|
+
timeout (0.4.1)
|
|
171
|
+
tzinfo (2.0.6)
|
|
172
|
+
concurrent-ruby (~> 1.0)
|
|
173
|
+
unicode-display_width (2.5.0)
|
|
174
|
+
webrick (1.8.1)
|
|
175
|
+
zeitwerk (2.6.13)
|
|
176
|
+
|
|
177
|
+
PLATFORMS
|
|
178
|
+
arm64-darwin-21
|
|
179
|
+
arm64-darwin-22
|
|
180
|
+
arm64-darwin-23
|
|
181
|
+
x86_64-linux
|
|
182
|
+
|
|
183
|
+
DEPENDENCIES
|
|
184
|
+
appraisal (~> 2.4.1)
|
|
185
|
+
climate_control (~> 0.0.3)
|
|
186
|
+
codeclimate-test-reporter (~> 1.0.3)
|
|
187
|
+
departure!
|
|
188
|
+
pry-byebug
|
|
189
|
+
rake (>= 10.0)
|
|
190
|
+
rspec (~> 3.4, >= 3.4.0)
|
|
191
|
+
rspec-its (~> 1.2)
|
|
192
|
+
rubocop (~> 1.60.2)
|
|
193
|
+
rubocop-performance (~> 1.20.2)
|
|
194
|
+
|
|
195
|
+
BUNDLED WITH
|
|
196
|
+
2.4.22
|