Skip to content

Commit ad62ad9

Browse files
committed
Cut 1.3.1
1 parent eaa49f7 commit ad62ad9

File tree

7 files changed

+32
-18
lines changed

7 files changed

+32
-18
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ Include the output of `rubocop -V` or `bundle exec rubocop -V` if using Bundler.
3636

3737
```
3838
$ [bundle exec] rubocop -V
39-
1.3.0 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
39+
1.3.1 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
4040
```

CHANGELOG.md

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

33
## master (unreleased)
44

5+
## 1.3.1 (2020-11-16)
6+
57
### Bug fixes
68

79
* [#9037](https://github.com/rubocop-hq/rubocop/pull/9037): Fix `required_ruby_version` issue when using `Gem::Requirement`. ([@cetinajero][])

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.3.0 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
20+
1.3.1 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
2121
```
2222

2323
* Include any relevant code to the issue summary.

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.3'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_lint.adoc

+5-14
Original file line numberDiff line numberDiff line change
@@ -4418,23 +4418,14 @@ has correct arguments.
44184418
[source,ruby]
44194419
----
44204420
# bad
4421-
def method(x, y = 1)
4422-
return to_enum(__method__, x) # `y` is missing
4421+
def foo(x, y = 1)
4422+
return to_enum(__callee__, x) # `y` is missing
44234423
end
44244424
44254425
# good
4426-
def method(x, y = 1)
4427-
return to_enum(__method__, x, y)
4428-
end
4429-
4430-
# bad
4431-
def method(required:)
4432-
return to_enum(:method, required: something) # `required` has incorrect value
4433-
end
4434-
4435-
# good
4436-
def method(required:)
4437-
return to_enum(:method, required: required)
4426+
def foo(x, y = 1)
4427+
return to_enum(__callee__, x, y)
4428+
# alternatives to `__callee__` are `__method__` and `:foo`
44384429
end
44394430
----
44404431

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.3.0'
6+
STRING = '1.3.1'
77

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

relnotes/v1.3.1.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
### Bug fixes
2+
3+
* [#9037](https://github.com/rubocop-hq/rubocop/pull/9037): Fix `required_ruby_version` issue when using `Gem::Requirement`. ([@cetinajero][])
4+
* [#9039](https://github.com/rubocop-hq/rubocop/pull/9039): Fix stack level too deep error if target directory contains `**`. ([@unasuke][])
5+
* [#6962](https://github.com/rubocop-hq/rubocop/issues/6962): Limit `Layout/ClassStructure` constant order autocorrect to literal constants. ([@tejasbubane][])
6+
* [#9032](https://github.com/rubocop-hq/rubocop/issues/9032): Fix an error for `Style/DocumentDynamicEvalDefinition` when using eval-type method with interpolated string that is not heredoc without comment doc. ([@koic][])
7+
* [#9049](https://github.com/rubocop-hq/rubocop/issues/9049): Have `Lint/ToEnumArguments` accept `__callee__`. ([@marcandre][])
8+
* [#9050](https://github.com/rubocop-hq/rubocop/issues/9050): Fix a false positive for `Style/NegatedIfElseCondition` when `if` with `!!` condition. ([@koic][])
9+
* [#9041](https://github.com/rubocop-hq/rubocop/issues/9041): Fix a false positive for `Naming/VariableNumber` when using integer symbols. ([@koic][])
10+
11+
### Changes
12+
13+
* [#9045](https://github.com/rubocop-hq/rubocop/pull/9045): Have `cut_release` handle "config/default" and generate cops doc. ([@marcandre][])
14+
* [#9036](https://github.com/rubocop-hq/rubocop/pull/9036): Allow `enums` method by default for `Lint/ConstantDefinitionInBlock`. ([@koic][])
15+
* [#9035](https://github.com/rubocop-hq/rubocop/issues/9035): Only complain about `SafeYAML` if it causes issues. ([@marcandre][])
16+
17+
[@cetinajero]: https://github.com/cetinajero
18+
[@unasuke]: https://github.com/unasuke
19+
[@tejasbubane]: https://github.com/tejasbubane
20+
[@koic]: https://github.com/koic
21+
[@marcandre]: https://github.com/marcandre

0 commit comments

Comments
 (0)