Skip to content

Commit e5907da

Browse files
committed
Cut 1.5.2
1 parent 2cc844f commit e5907da

File tree

7 files changed

+31
-4
lines changed

7 files changed

+31
-4
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ output by `rubocop -V`, include them as well. Here's an example:
3838

3939
```
4040
$ [bundle exec] rubocop -V
41-
1.5.1 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
41+
1.5.2 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
4242
- rubocop-performance 1.9.1
4343
- rubocop-rspec 2.0.0
4444
```

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## master (unreleased)
44

5+
## 1.5.2 (2020-12-04)
6+
57
### Bug fixes
68

79
* [#9152](https://github.com/rubocop-hq/rubocop/issues/9152): Fix an incorrect auto-correct for `Style/SoleNestedConditional` when nested `||` operator modifier condition. ([@koic][])

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ do so.
1717

1818
```
1919
$ rubocop -V
20-
1.5.1 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
20+
1.5.2 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
2121
- rubocop-performance 1.9.1
2222
- rubocop-rspec 2.0.0
2323
```

docs/antora.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ name: rubocop
22
title: RuboCop
33
# We always provide version without patch here (e.g. 1.1),
44
# as patch versions should not appear in the docs.
5-
version: 'master'
5+
version: '1.5'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_lint.adoc

+8
Original file line numberDiff line numberDiff line change
@@ -4229,6 +4229,14 @@ in block arguments or block-local variables. This mirrors the warning
42294229
given by `ruby -cw` prior to Ruby 2.6:
42304230
"shadowing outer local variable - foo".
42314231

4232+
NOTE: Shadowing of variables in block passed to `Ractor.new` is allowed
4233+
because `Ractor` should not access outer variables.
4234+
eg. following syle is encouraged:
4235+
4236+
worker_id, pipe = env
4237+
Ractor.new(worker_id, pipe) do |worker_id, pipe|
4238+
end
4239+
42324240
=== Examples
42334241

42344242
[source,ruby]

lib/rubocop/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module RuboCop
44
# This module holds the RuboCop version information.
55
module Version
6-
STRING = '1.5.1'
6+
STRING = '1.5.2'
77

88
MSG = '%<version>s (using Parser %<parser_version>s, '\
99
'rubocop-ast %<rubocop_ast_version>s, ' \

relnotes/v1.5.2.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### Bug fixes
2+
3+
* [#9152](https://github.com/rubocop-hq/rubocop/issues/9152): Fix an incorrect auto-correct for `Style/SoleNestedConditional` when nested `||` operator modifier condition. ([@koic][])
4+
* [#9161](https://github.com/rubocop-hq/rubocop/issues/9161): Fix a false positive for `Layout/HeredocArgumentClosingParenthesis` when using subsequence closing parentheses in the same line. ([@koic][])
5+
* [#9151](https://github.com/rubocop-hq/rubocop/issues/9151): Fix `SuggestExtensions` to not suggest extensions that are installed but not direct dependencies. ([@dvandersluis][])
6+
* [#8985](https://github.com/rubocop-hq/rubocop/issues/8985): Fix `Style/StringConcatenation` autocorrect generating invalid ruby. ([@tejasbubane][])
7+
* [#9155](https://github.com/rubocop-hq/rubocop/issues/9155): Fix a false positive for `Layout/MultilineMethodCallIndentation` when multiline method chain has expected indent width and the method is preceded by splat for `EnforcedStyle: indented_relative_to_receiver`. ([@koic][])
8+
9+
### Changes
10+
11+
* [#9080](https://github.com/rubocop-hq/rubocop/issues/9080): Make `Lint/ShadowingOuterVariable` aware of `Ractor`. ([@tejasbubane][])
12+
* [#9102](https://github.com/rubocop-hq/rubocop/pull/9102): Relax regexp_parser requirement. ([@marcandre][])
13+
14+
[@koic]: https://github.com/koic
15+
[@dvandersluis]: https://github.com/dvandersluis
16+
[@tejasbubane]: https://github.com/tejasbubane
17+
[@marcandre]: https://github.com/marcandre

0 commit comments

Comments
 (0)