makandra-rubocop 6.2.0 → 8.0.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: 971fab26cb30baaf1d55688257511cefde34e0dc57c10e02ec85615847e41503
4
- data.tar.gz: 149c349a25dc128a613ef58fc99704d2c3c55a2ff3edd4208328edb227344b47
3
+ metadata.gz: 28161b56e8af9d29a442ce0c1f7829ed92e59f787caeec6e0a5e32460c359c4b
4
+ data.tar.gz: 33bc2c6f17befe461f55c31c7a0388612b48c265fa975e2f2c1f544620c92848
5
5
  SHA512:
6
- metadata.gz: b3f28b134d26a8e8aef1faabb8d7e4c664a24fa2545cd6ee1afe4c46307537a1f3306542abd9da4357016fc6d2dd8b172e6eb4dc81534641490e4230ccfd343b
7
- data.tar.gz: 222230ed722ba70d485e2d52379e953e302b6f00178868499a8022bb81e09571b7fa91593f37b92ef2c7823e452da358fc486e0e7b91ad9d474734dedb237537
6
+ metadata.gz: b0747ea7979874775af93ab0e2f00f6489293268974cff820b5abbd7b00732250e0451150fa1a402450418dd666660f22884988a0a4504447aae47e10c1b8d12
7
+ data.tar.gz: 9e86aa89d4c3168d7a5f5e1f50a5a705f418d75547ec2715b77e9a188caa47e15ff110954b4e6563204f9ff3175616ea998fb53c2185597b44e84f85c5ee5676
data/CHANGELOG.md CHANGED
@@ -8,6 +8,37 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
8
8
 
9
9
  ### Compatible changes
10
10
 
11
+
12
+ ## 8.0.0 - 2022-01-25
13
+
14
+ ## Breaking changes
15
+ - Upgrade rubocop from version `1.18.4` to `1.25.1` (adds support for Ruby 3.1).
16
+
17
+
18
+ ## 7.2.0 - 2021-12-07
19
+
20
+ ### Compatible changes
21
+
22
+ - Disable `Rails/LinkToBlank`
23
+
24
+
25
+ ## 7.1.0 - 2021-11-29
26
+
27
+ ### Compatible changes
28
+
29
+ - Disable `RSpec/ExpectChange`
30
+
31
+
32
+ ## 7.0.0 - 2021-09-16
33
+
34
+ ### Breaking changes
35
+
36
+ - Dropped support for Ruby < `2.5.0`.
37
+ - Upgrade `rubocop` from version `1.9.1` to `1.18.4`.
38
+ - Upgrade `rubocop-rails` from version `2.9.1` to `2.11.3`.
39
+ - Upgrade `rubocop-rspec` from version `2.2.0` to `2.4.0`.
40
+
41
+
11
42
  ## 6.2.0 - 2021-06-20
12
43
 
13
44
  ### Compatible changes
@@ -52,7 +83,6 @@ rubocop itself, so there would be never a stdout, too.
52
83
  ```
53
84
 
54
85
 
55
-
56
86
  ## 6.1.0 - 2021-04-30
57
87
 
58
88
  ### Compatible changes
data/Gemfile.lock CHANGED
@@ -1,56 +1,56 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- makandra-rubocop (6.2.0)
5
- rubocop (~> 1.9.1)
6
- rubocop-rails (~> 2.9.1)
7
- rubocop-rspec (~> 2.2.0)
4
+ makandra-rubocop (8.0.0)
5
+ rubocop (~> 1.25.0)
6
+ rubocop-rails (~> 2.11.3)
7
+ rubocop-rspec (~> 2.4.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (6.1.3)
12
+ activesupport (6.1.4.4)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 1.6, < 2)
15
15
  minitest (>= 5.1)
16
16
  tzinfo (~> 2.0)
17
17
  zeitwerk (~> 2.3)
18
18
  ast (2.4.2)
19
- concurrent-ruby (1.1.8)
20
- i18n (1.8.9)
19
+ concurrent-ruby (1.1.9)
20
+ i18n (1.8.11)
21
21
  concurrent-ruby (~> 1.0)
22
- minitest (5.14.4)
23
- parallel (1.20.1)
24
- parser (3.0.0.0)
22
+ minitest (5.15.0)
23
+ parallel (1.21.0)
24
+ parser (3.1.0.0)
25
25
  ast (~> 2.4.1)
26
26
  rack (2.2.3)
27
- rainbow (3.0.0)
27
+ rainbow (3.1.1)
28
28
  rake (12.3.2)
29
- regexp_parser (2.1.1)
30
- rexml (3.2.4)
31
- rubocop (1.9.1)
29
+ regexp_parser (2.2.0)
30
+ rexml (3.2.5)
31
+ rubocop (1.25.0)
32
32
  parallel (~> 1.10)
33
- parser (>= 3.0.0.0)
33
+ parser (>= 3.1.0.0)
34
34
  rainbow (>= 2.2.2, < 4.0)
35
35
  regexp_parser (>= 1.8, < 3.0)
36
36
  rexml
37
- rubocop-ast (>= 1.2.0, < 2.0)
37
+ rubocop-ast (>= 1.15.1, < 2.0)
38
38
  ruby-progressbar (~> 1.7)
39
39
  unicode-display_width (>= 1.4.0, < 3.0)
40
- rubocop-ast (1.4.1)
41
- parser (>= 2.7.1.5)
42
- rubocop-rails (2.9.1)
40
+ rubocop-ast (1.15.1)
41
+ parser (>= 3.0.1.1)
42
+ rubocop-rails (2.11.3)
43
43
  activesupport (>= 4.2.0)
44
44
  rack (>= 1.1)
45
- rubocop (>= 0.90.0, < 2.0)
46
- rubocop-rspec (2.2.0)
45
+ rubocop (>= 1.7.0, < 2.0)
46
+ rubocop-rspec (2.4.0)
47
47
  rubocop (~> 1.0)
48
48
  rubocop-ast (>= 1.1.0)
49
49
  ruby-progressbar (1.11.0)
50
50
  tzinfo (2.0.4)
51
51
  concurrent-ruby (~> 1.0)
52
- unicode-display_width (2.0.0)
53
- zeitwerk (2.4.2)
52
+ unicode-display_width (2.1.0)
53
+ zeitwerk (2.5.3)
54
54
 
55
55
  PLATFORMS
56
56
  ruby
@@ -61,4 +61,4 @@ DEPENDENCIES
61
61
  rake (~> 12.3)
62
62
 
63
63
  BUNDLED WITH
64
- 2.1.2
64
+ 2.2.30
data/README.md CHANGED
@@ -116,6 +116,13 @@ Note that disabling cops should be an exception for extremely rare cases where y
116
116
  If our defaults don't match your opinion, you should discuss with the team.
117
117
 
118
118
 
119
+ ## Contributing
120
+
121
+ Bug reports and pull requests are welcome on GitHub at https://github.com/makandra/makandra-rubocop.
122
+
123
+ If you make any changes to this gem's Ruby code, make sure to run `rubocop`.
124
+
125
+
119
126
  ## Development
120
127
 
121
128
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -123,29 +130,40 @@ After checking out the repo, run `bin/setup` to install dependencies. You can al
123
130
  To install this gem onto your local machine, run `bundle exec rake install`.
124
131
 
125
132
  When you're making changes, update the version number in `version.rb`:
126
- - Increase the major version when you're upgrading the Rubocop dependency
133
+ - Increase the major version when you're upgrading a Rubocop dependency (see below)
127
134
  - Increase the minor version e.g. when disabling a cop
128
135
 
129
- For release run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
130
-
131
- ### Upgrading Rubocop version being used
132
- 1. Change `rubocop` dependency in gemspec to the release you want to upgrade to.
133
- 2. `bundle`
134
- 3. `git add remote rubocop https://github.com/rubocop-hq/rubocop.git`
135
- 4. `git fetch rubocop --no-tags` (we can't import their tags or they would clash with ours)
136
- 5. Find out the commit SHA of the release you put into the gemspec and the commit SHA of the newest release (with a tag).
137
- 6. `git diff $OLDER_SHA $NEWER_SHA config/default.yml | git apply --3way`
138
- 7. Resolve the merge conflicts carefully and review all changes. We do not want to loose our overrides.
139
- 8. Commit.
140
-
141
- This procedure is the same for `rubocop-rails`.
142
-
143
-
144
- ## Contributing
145
-
146
- Bug reports and pull requests are welcome on GitHub at https://github.com/makandra/makandra-rubocop.
147
-
148
- If you make any changes to this gem's Ruby code, make sure to run `rubocop`.
136
+ For release run `bundle exec rake release`, which will create a git tag for the
137
+ version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
138
+
139
+ ### Upgrading Rubocop dependencies
140
+ The following procedure works for either `rubocop`, `rubocop-rails` or
141
+ `rubocopo-rspec`. (Replace `rubocop` with the respective dependency name.)
142
+
143
+ 1. Change the `rubocop` dependency in the Gemspec to the version you want to
144
+ upgrade to.
145
+ 2. `bundle update rubocop`
146
+
147
+ Next, we need to update our config file to match their updated config. If
148
+ you have not added the Rubocop remote yet (check with `git remote -v`), do a
149
+ `git remote add rubocop https://github.com/rubocop-hq/rubocop.git`. Then:
150
+
151
+ 1. Update the local copy of the Rubocop repository: `git fetch rubocop --no-tags`
152
+ (we can't import their tags or they would clash with ours)
153
+ 2. Find the commit SHA of the previous and of the new Rubocop version in our
154
+ Gemspec. The easiest way is to look them up on their [releases page](https://github.com/rubocop/rubocop/releases).
155
+ 3. Diff their config/default.yml between the previously used and the new Rubocop
156
+ version, and write it to a file: `git diff $OLDER_SHA $NEWER_SHA config/default.yml > config_diff`
157
+ 4. If you are updating `rubocop-rails` or `rubocop-rspec`, edit the config_diff
158
+ file now and replace `config/default.yml` with `config/ext/{rails,rspec}.yml`
159
+ (respectively).
160
+ 5. Apply the diff with `git apply ./config_diff --3way`
161
+ 6. Resolve merge conflicts carefully and review all changes. We do not want to
162
+ loose changes in [our config files](https://github.com/makandra/makandra-rubocop/tree/master/config).
163
+ 7. Delete the patch file
164
+ 8. Increase the major version (see above)
165
+ 9. Update the CHANGELOG
166
+ 10. Commit
149
167
 
150
168
 
151
169
  ## License
data/Rakefile CHANGED
@@ -1,2 +1,2 @@
1
1
  require 'bundler/gem_tasks'
2
- task default: :spec
2
+ # task default: :spec