rubocop-migration 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -11
- data/lib/rubocop/cop/migration/add_index_duplicate.rb +6 -1
- data/lib/rubocop/migration/version.rb +1 -1
- data/rubocop-migration.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbff8f4529cdd09c24ce68ad16df3b477c1f119b5a32db64c73707cce19892dc
|
4
|
+
data.tar.gz: 60b99f9b640c1bc9ee49dbb2b307054acba949169baa2e6790739d118dd4df5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1097e91bc1d36afd3b918ec28dc34865b753445cb128e7dabe0e2ddddef9781ed14ec419b54335090b32427ae5fb18317706567fd6a76345575688c76a1d0186
|
7
|
+
data.tar.gz: 21afd86377559669b4561024b03e9d28f5edde8dbbbc7a03b129c4c274beda7dac40be702a164444e92e370411ab31a488be8c68db711526d24e73c6d1aafdba
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rubocop-migration (0.5.
|
4
|
+
rubocop-migration (0.5.1)
|
5
5
|
activesupport
|
6
6
|
rubocop (>= 1.34)
|
7
|
-
rubocop-rails
|
7
|
+
rubocop-rails (>= 2.24)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
ast (~> 2.4.1)
|
39
39
|
racc
|
40
40
|
racc (1.7.3)
|
41
|
-
rack (3.0.
|
41
|
+
rack (3.0.10)
|
42
42
|
rainbow (3.1.1)
|
43
43
|
rake (13.1.0)
|
44
44
|
regexp_parser (2.9.0)
|
@@ -56,7 +56,7 @@ GEM
|
|
56
56
|
diff-lcs (>= 1.2.0, < 2.0)
|
57
57
|
rspec-support (~> 3.12.0)
|
58
58
|
rspec-support (3.12.1)
|
59
|
-
rubocop (1.
|
59
|
+
rubocop (1.63.4)
|
60
60
|
json (~> 2.3)
|
61
61
|
language_server-protocol (>= 3.17.0)
|
62
62
|
parallel (~> 1.10)
|
@@ -64,11 +64,11 @@ GEM
|
|
64
64
|
rainbow (>= 2.2.2, < 4.0)
|
65
65
|
regexp_parser (>= 1.8, < 3.0)
|
66
66
|
rexml (>= 3.2.5, < 4.0)
|
67
|
-
rubocop-ast (>= 1.
|
67
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
68
68
|
ruby-progressbar (~> 1.7)
|
69
69
|
unicode-display_width (>= 2.4.0, < 3.0)
|
70
|
-
rubocop-ast (1.
|
71
|
-
parser (>= 3.
|
70
|
+
rubocop-ast (1.31.2)
|
71
|
+
parser (>= 3.3.0.4)
|
72
72
|
rubocop-capybara (2.20.0)
|
73
73
|
rubocop (~> 1.41)
|
74
74
|
rubocop-factory_bot (2.25.1)
|
@@ -76,17 +76,20 @@ GEM
|
|
76
76
|
rubocop-performance (1.20.2)
|
77
77
|
rubocop (>= 1.48.1, < 2.0)
|
78
78
|
rubocop-ast (>= 1.30.0, < 2.0)
|
79
|
-
rubocop-rails (2.
|
79
|
+
rubocop-rails (2.24.1)
|
80
80
|
activesupport (>= 4.2.0)
|
81
81
|
rack (>= 1.1)
|
82
82
|
rubocop (>= 1.33.0, < 2.0)
|
83
|
-
rubocop-ast (>= 1.
|
83
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
84
84
|
rubocop-rake (0.6.0)
|
85
85
|
rubocop (~> 1.0)
|
86
|
-
rubocop-rspec (2.
|
86
|
+
rubocop-rspec (2.29.2)
|
87
87
|
rubocop (~> 1.40)
|
88
88
|
rubocop-capybara (~> 2.17)
|
89
89
|
rubocop-factory_bot (~> 2.22)
|
90
|
+
rubocop-rspec_rails (~> 2.28)
|
91
|
+
rubocop-rspec_rails (2.28.3)
|
92
|
+
rubocop (~> 1.40)
|
90
93
|
ruby-progressbar (1.13.0)
|
91
94
|
ruby2_keywords (0.0.5)
|
92
95
|
sevencop (0.35.1)
|
@@ -97,7 +100,7 @@ GEM
|
|
97
100
|
unicode-display_width (2.5.0)
|
98
101
|
|
99
102
|
PLATFORMS
|
100
|
-
|
103
|
+
ruby
|
101
104
|
|
102
105
|
DEPENDENCIES
|
103
106
|
rake
|
@@ -135,9 +135,14 @@ module RuboCop
|
|
135
135
|
haystack.join(',').start_with?(needle.join(','))
|
136
136
|
end
|
137
137
|
|
138
|
+
# @return [Symbol]
|
139
|
+
def parser
|
140
|
+
respond_to?(:parser_engine) ? parser_engine : :parser_whitequark
|
141
|
+
end
|
142
|
+
|
138
143
|
# @return [RuboCop::Rails::SchemaLoader::Schema, nil]
|
139
144
|
def schema
|
140
|
-
@schema ||= ::RuboCop::Rails::SchemaLoader.load(target_ruby_version)
|
145
|
+
@schema ||= ::RuboCop::Rails::SchemaLoader.load(target_ruby_version, parser)
|
141
146
|
end
|
142
147
|
|
143
148
|
# @param node [RuboCop::AST::SendNode]
|
data/rubocop-migration.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-migration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.24'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.24'
|
55
55
|
description:
|
56
56
|
email:
|
57
57
|
- r7kamura@gmail.com
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
|
-
rubygems_version: 3.3.
|
120
|
+
rubygems_version: 3.3.27
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: RuboCop extension focused on ActiveRecord migration.
|