Skip to content

Commit

Permalink
Cut 1.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Apr 9, 2023
1 parent 40f465f commit e9f0cb8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,8 @@

## master (unreleased)

## 1.17.1 (2023-04-09)

### Bug fixes

* [#352](https://github.com/rubocop/rubocop-performance/pull/352): Fix the default config for `AllowRegexpMatch` option of `Performance/RedundantEqualityComparisonBlock`. ([@koic][])
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Expand Up @@ -2,6 +2,6 @@ name: rubocop-performance
title: RuboCop Performance
# We always provide version without patch here (e.g. 1.1),
# as patch versions should not appear in the docs.
version: ~
version: '1.17'
nav:
- modules/ROOT/nav.adoc
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/cops_performance.adoc
Expand Up @@ -1354,7 +1354,7 @@ By default, `Object#===` behaves the same as `Object#==`, but this
behavior is appropriately overridden in subclass. For example,
`Range#===` returns `true` when argument is within the range.

This cop has `AllowRegexpMatch` option and it is false by default because
This cop has `AllowRegexpMatch` option and it is true by default because
`regexp.match?('string')` often used in block changes to the opposite result:

[source,ruby]
Expand Down Expand Up @@ -1407,7 +1407,7 @@ items.all? { |item| item.match?(pattern) }
| Name | Default value | Configurable values

| AllowRegexpMatch
| `false`
| `true`
| Boolean
|===

Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/performance/version.rb
Expand Up @@ -4,7 +4,7 @@ module RuboCop
module Performance
# This module holds the RuboCop Performance version information.
module Version
STRING = '1.17.0'
STRING = '1.17.1'

def self.document_version
STRING.match('\d+\.\d+').to_s
Expand Down
5 changes: 5 additions & 0 deletions relnotes/v1.17.1.md
@@ -0,0 +1,5 @@
### Bug fixes

* [#352](https://github.com/rubocop/rubocop-performance/pull/352): Fix the default config for `AllowRegexpMatch` option of `Performance/RedundantEqualityComparisonBlock`. ([@koic][])

[@koic]: https://github.com/koic

0 comments on commit e9f0cb8

Please sign in to comment.