rubocop-migration 0.7.1 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21928f0fea19acf1ebaa7f52ce8959beb23971a5628cd22adca0247639a8a0c3
4
- data.tar.gz: 54a78c51ce7b5067492e5c0c5ada239b0f70c6263357e6240d6e06135802bfcb
3
+ metadata.gz: '0813a8046835fbb1c8382152971eaada39e144aabb2266cda2115b2e5c2a1398'
4
+ data.tar.gz: 38580189a800f01224c4dbfd39d7aed4707509d148ec1deed74e936858a99624
5
5
  SHA512:
6
- metadata.gz: a6e502ebe71d6da7432ac0a7c4e63ae3909a2c697b569d35142bcfb7c0dab53985c0eab0508824ec8beeb5b181048dbb43e07cee9278b14a445151bd9c2003ec
7
- data.tar.gz: bcf97b0d4a3bd15992ee9cdb68b550f5d60d8eabcb1f44e683fd9306a70111f958380eefbcd43835b5c97a41cae91ed2e1d76ed3042a0aec6fdd7b63848b2c6c
6
+ metadata.gz: 65e716d2e0cecb340f2e8171d125d901f7eb8e53352227fa472e4489da1c8b97c04000ae6bb59080f2a7d811e9cc2c1dad3248d9624a00f90fba3b2ce55c7e93
7
+ data.tar.gz: 4bb8b248e3f0bc57767bc0be615a27d31d663f89e2d8eddd67e30102cbbfe6d49f1bd119db3b6a3fae5593f0751b5862e1af993e90e0f6514e788faadb8d6314
data/.rubocop.yml CHANGED
@@ -8,7 +8,7 @@ plugins:
8
8
 
9
9
  AllCops:
10
10
  NewCops: enable
11
- TargetRubyVersion: 2.7
11
+ TargetRubyVersion: 3.3
12
12
 
13
13
  # To automate release workflow.
14
14
  Gemspec/RequireMFA:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-migration (0.7.1)
4
+ rubocop-migration (0.8.0)
5
5
  activesupport
6
6
  lint_roller (>= 1.1)
7
7
  rubocop (>= 1.72.1)
@@ -10,99 +10,101 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (7.1.5.1)
13
+ activesupport (8.1.4)
14
14
  base64
15
- benchmark (>= 0.3)
16
15
  bigdecimal
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
16
+ concurrent-ruby (~> 1.0, >= 1.3.1)
18
17
  connection_pool (>= 2.2.5)
19
18
  drb
20
19
  i18n (>= 1.6, < 2)
20
+ json
21
21
  logger (>= 1.4.2)
22
22
  minitest (>= 5.1)
23
- mutex_m
24
23
  securerandom (>= 0.3)
25
- tzinfo (~> 2.0)
24
+ tzinfo (~> 2.0, >= 2.0.5)
25
+ uri (>= 0.13.1)
26
26
  ast (2.4.3)
27
- base64 (0.2.0)
28
- benchmark (0.4.0)
29
- bigdecimal (3.1.9)
30
- concurrent-ruby (1.3.5)
31
- connection_pool (2.5.1)
32
- diff-lcs (1.6.1)
33
- drb (2.2.1)
34
- i18n (1.14.7)
27
+ base64 (0.3.0)
28
+ bigdecimal (4.1.3)
29
+ concurrent-ruby (1.3.8)
30
+ connection_pool (3.0.2)
31
+ diff-lcs (1.6.2)
32
+ drb (2.2.3)
33
+ i18n (1.15.2)
35
34
  concurrent-ruby (~> 1.0)
36
- json (2.10.2)
37
- language_server-protocol (3.17.0.4)
35
+ json (3.1.0)
36
+ language_server-protocol (3.17.0.6)
38
37
  lint_roller (1.1.0)
39
38
  logger (1.7.0)
40
- minitest (5.25.5)
41
- mutex_m (0.3.0)
42
- parallel (1.27.0)
43
- parser (3.3.8.0)
39
+ minitest (6.0.6)
40
+ drb (~> 2.0)
41
+ prism (~> 1.5)
42
+ parallel (2.3.0)
43
+ parser (3.3.13.0)
44
44
  ast (~> 2.4.1)
45
45
  racc
46
- prism (1.4.0)
46
+ prism (1.9.0)
47
47
  racc (1.8.1)
48
- rack (3.1.13)
48
+ rack (3.2.8)
49
49
  rainbow (3.1.1)
50
- rake (13.2.1)
51
- regexp_parser (2.10.0)
52
- rspec (3.13.0)
50
+ rake (13.4.2)
51
+ regexp_parser (2.13.1)
52
+ rspec (3.13.2)
53
53
  rspec-core (~> 3.13.0)
54
54
  rspec-expectations (~> 3.13.0)
55
55
  rspec-mocks (~> 3.13.0)
56
- rspec-core (3.13.3)
56
+ rspec-core (3.13.6)
57
57
  rspec-support (~> 3.13.0)
58
- rspec-expectations (3.13.3)
58
+ rspec-expectations (3.13.5)
59
59
  diff-lcs (>= 1.2.0, < 2.0)
60
60
  rspec-support (~> 3.13.0)
61
- rspec-mocks (3.13.2)
61
+ rspec-mocks (3.13.8)
62
62
  diff-lcs (>= 1.2.0, < 2.0)
63
63
  rspec-support (~> 3.13.0)
64
- rspec-support (3.13.2)
65
- rubocop (1.75.2)
66
- json (~> 2.3)
64
+ rspec-support (3.13.7)
65
+ rubocop (1.92.2)
66
+ json (>= 2.3)
67
67
  language_server-protocol (~> 3.17.0.2)
68
68
  lint_roller (~> 1.1.0)
69
- parallel (~> 1.10)
69
+ parallel (>= 1.10)
70
70
  parser (>= 3.3.0.2)
71
71
  rainbow (>= 2.2.2, < 4.0)
72
- regexp_parser (>= 2.9.3, < 3.0)
73
- rubocop-ast (>= 1.44.0, < 2.0)
72
+ regexp_parser (>= 2.11.3, < 3.0)
73
+ rubocop-ast (>= 1.49.0, < 2.0)
74
74
  ruby-progressbar (~> 1.7)
75
75
  unicode-display_width (>= 2.4.0, < 4.0)
76
- rubocop-ast (1.44.1)
76
+ rubocop-ast (1.50.0)
77
77
  parser (>= 3.3.7.2)
78
- prism (~> 1.4)
79
- rubocop-performance (1.25.0)
78
+ prism (~> 1.7)
79
+ rubocop-performance (1.27.0)
80
80
  lint_roller (~> 1.1)
81
- rubocop (>= 1.75.0, < 2.0)
82
- rubocop-ast (>= 1.38.0, < 2.0)
83
- rubocop-rails (2.31.0)
81
+ rubocop (>= 1.89.0, < 2.0)
82
+ rubocop-ast (>= 1.47.1, < 2.0)
83
+ rubocop-rails (2.38.0)
84
84
  activesupport (>= 4.2.0)
85
85
  lint_roller (~> 1.1)
86
86
  rack (>= 1.1)
87
- rubocop (>= 1.75.0, < 2.0)
88
- rubocop-ast (>= 1.38.0, < 2.0)
87
+ rubocop (>= 1.89.0, < 2.0)
88
+ rubocop-ast (>= 1.44.0, < 2.0)
89
89
  rubocop-rake (0.7.1)
90
90
  lint_roller (~> 1.1)
91
91
  rubocop (>= 1.72.1)
92
- rubocop-rspec (3.6.0)
92
+ rubocop-rspec (3.10.2)
93
93
  lint_roller (~> 1.1)
94
- rubocop (~> 1.72, >= 1.72.1)
94
+ regexp_parser (>= 2.0)
95
+ rubocop (~> 1.86, >= 1.86.2)
95
96
  ruby-progressbar (1.13.0)
96
- securerandom (0.3.2)
97
- sevencop (0.48.0)
97
+ securerandom (0.4.1)
98
+ sevencop (0.48.1)
98
99
  activesupport
99
100
  lint_roller (>= 1.1)
100
101
  rubocop (>= 1.72.1)
101
102
  tzinfo (2.0.6)
102
103
  concurrent-ruby (~> 1.0)
103
- unicode-display_width (3.1.4)
104
- unicode-emoji (~> 4.0, >= 4.0.4)
105
- unicode-emoji (4.0.4)
104
+ unicode-display_width (3.3.0)
105
+ unicode-emoji (~> 4.3)
106
+ unicode-emoji (4.3.0)
107
+ uri (1.1.2)
106
108
 
107
109
  PLATFORMS
108
110
  ruby
@@ -118,4 +120,4 @@ DEPENDENCIES
118
120
  sevencop
119
121
 
120
122
  BUNDLED WITH
121
- 2.3.23
123
+ 2.5.22
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # rubocop-migration
2
2
 
3
- [![ci](https://github.com/r7kamura/rubocop-migration/actions/workflows/ci.yml/badge.svg)](https://github.com/r7kamura/rubocop-migration/actions/workflows/ci.yml)
4
-
5
3
  RuboCop plugin for ActiveRecord migration.
6
4
 
7
5
  ## Usage
@@ -10,7 +8,7 @@ Install `rubocop-migration` gem:
10
8
 
11
9
  ```ruby
12
10
  # Gemfile
13
- gem 'rubocop-migration', require: false
11
+ gem 'rubocop-migration'
14
12
  ```
15
13
 
16
14
  then add `rubocop-migration` to plugins section:
data/config/default.yml CHANGED
@@ -134,7 +134,7 @@ Migration/RenameColumn:
134
134
 
135
135
  Migration/RenameTable:
136
136
  Description: |
137
- Avoid removing tables that are in use.
137
+ Avoid renaming tables that are in use.
138
138
  Enabled: false
139
139
  Safe: false
140
140
  VersionAdded: '0.22'
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'set'
4
-
5
3
  module RuboCop
6
4
  module Cop
7
5
  module Migration
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Migration
5
- VERSION = '0.7.1'
5
+ VERSION = '0.8.0'
6
6
  end
7
7
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = 'RuboCop plugin for ActiveRecord migration.'
12
12
  spec.homepage = 'https://github.com/r7kamura/rubocop-migration'
13
13
  spec.license = 'MIT'
14
- spec.required_ruby_version = '>= 2.7'
14
+ spec.required_ruby_version = '>= 3.3'
15
15
 
16
16
  spec.metadata['homepage_uri'] = spec.homepage
17
17
  spec.metadata['source_code_uri'] = spec.homepage
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
@@ -122,14 +122,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
- version: '2.7'
125
+ version: '3.3'
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.6.7
132
+ rubygems_version: 4.0.20
133
133
  specification_version: 4
134
134
  summary: RuboCop plugin for ActiveRecord migration.
135
135
  test_files: []