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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74f6229f8d3cbb9c31aee226d95ed698edec1fb5cde69090bb8efd57179d8cfe
4
- data.tar.gz: 85ea516f3e408ae2bfabd0d7bcd7162bbad88281b5e6513d6da71b0c14c3b2a6
3
+ metadata.gz: dbff8f4529cdd09c24ce68ad16df3b477c1f119b5a32db64c73707cce19892dc
4
+ data.tar.gz: 60b99f9b640c1bc9ee49dbb2b307054acba949169baa2e6790739d118dd4df5f
5
5
  SHA512:
6
- metadata.gz: 7af4ce63e220e72a147c272df33ec7d5096868742edb42377871d73eaecd7c0f0ec50505274310b27b5385f1e6bef57e85ec7528df76b88351b3bdde8997a544
7
- data.tar.gz: 28cdf473b50695099a1d847a482fd5de54cdbeacd8778dbf54389027095478d460b3c70532115b4c2e2dbeba1137f5191946f66a6c2b20eb302310734906f64c
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.0)
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.8)
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.60.2)
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.30.0, < 2.0)
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.30.0)
71
- parser (>= 3.2.1.0)
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.23.1)
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.30.0, < 2.0)
83
+ rubocop-ast (>= 1.31.1, < 2.0)
84
84
  rubocop-rake (0.6.0)
85
85
  rubocop (~> 1.0)
86
- rubocop-rspec (2.26.1)
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
- x86_64-linux
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]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Migration
5
- VERSION = '0.5.0'
5
+ VERSION = '0.5.1'
6
6
  end
7
7
  end
@@ -28,5 +28,5 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  spec.add_dependency 'activesupport'
30
30
  spec.add_dependency 'rubocop', '>= 1.34'
31
- spec.add_dependency 'rubocop-rails'
31
+ spec.add_dependency 'rubocop-rails', '>= 2.24'
32
32
  end
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.0
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-01-27 00:00:00.000000000 Z
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: '0'
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: '0'
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.26
120
+ rubygems_version: 3.3.27
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: RuboCop extension focused on ActiveRecord migration.