From ed4e847f6688cbf1c59d4a91f965606f9782110b Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sat, 21 Oct 2023 15:34:59 +0900 Subject: [PATCH] Cut 0.33.0 --- CHANGELOG.md | 2 ++ docs/antora.yml | 2 +- docs/modules/ROOT/pages/cops_minitest.adoc | 7 +++++++ lib/rubocop/minitest/version.rb | 2 +- relnotes/v0.33.0.md | 12 ++++++++++++ 5 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 relnotes/v0.33.0.md diff --git a/CHANGELOG.md b/CHANGELOG.md index e15b6022..8b5f03bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ ## master (unreleased) +## 0.33.0 (2023-10-21) + ### New features * [#266](https://github.com/rubocop/rubocop-minitest/pull/266): Make `Minitest/AssertEqual` aware of `assert_operator`. ([@koic][]) diff --git a/docs/antora.yml b/docs/antora.yml index 02c36842..273ec7e6 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -2,6 +2,6 @@ name: rubocop-minitest title: RuboCop Minitest # We always provide version without patch here (e.g. 1.1), # as patch versions should not appear in the docs. -version: ~ +version: '0.33' nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/cops_minitest.adoc b/docs/modules/ROOT/pages/cops_minitest.adoc index e5463198..48e27ec2 100644 --- a/docs/modules/ROOT/pages/cops_minitest.adoc +++ b/docs/modules/ROOT/pages/cops_minitest.adoc @@ -79,6 +79,7 @@ over `assert(expected == actual)`. ---- # bad assert("rubocop-minitest" == actual) +assert_operator("rubocop-minitest", :==, actual) # good assert_equal("rubocop-minitest", actual) @@ -243,6 +244,7 @@ instead of using `assert(matcher.match(string))`. assert(matcher.match(string)) assert(matcher.match?(string)) assert(matcher =~ string) +assert_operator(matcher, :=~, string) assert(matcher.match(string), 'message') # good @@ -1261,6 +1263,9 @@ over `assert(expected != actual)` or `assert(! expected == actual)`. ---- # bad assert("rubocop-minitest" != actual) +refute("rubocop-minitest" == actual) +assert_operator("rubocop-minitest", :!=, actual) +refute_operator("rubocop-minitest", :==, actual) # good refute_equal("rubocop-minitest", actual) @@ -1470,6 +1475,8 @@ instead of using `refute(matcher.match(string))`. refute(matcher.match(string)) refute(matcher.match?(string)) refute(matcher =~ string) +refute_operator(matcher, :=~, string) +assert_operator(matcher, :!~, string) refute(matcher.match(string), 'message') # good diff --git a/lib/rubocop/minitest/version.rb b/lib/rubocop/minitest/version.rb index c74cc9cb..838d46bf 100644 --- a/lib/rubocop/minitest/version.rb +++ b/lib/rubocop/minitest/version.rb @@ -4,7 +4,7 @@ module RuboCop module Minitest # This module holds the RuboCop Minitest version information. module Version - STRING = '0.32.2' + STRING = '0.33.0' def self.document_version STRING.match('\d+\.\d+').to_s diff --git a/relnotes/v0.33.0.md b/relnotes/v0.33.0.md new file mode 100644 index 00000000..1b74e6ce --- /dev/null +++ b/relnotes/v0.33.0.md @@ -0,0 +1,12 @@ +### New features + +* [#266](https://github.com/rubocop/rubocop-minitest/pull/266): Make `Minitest/AssertEqual` aware of `assert_operator`. ([@koic][]) +* [#268](https://github.com/rubocop/rubocop-minitest/pull/268): Make `Minitest/AssertMatch` aware of `assert_operator`. ([@koic][]) +* [#267](https://github.com/rubocop/rubocop-minitest/pull/267): Make `Minitest/RefuteEqual` aware of `assert_operator` and `refute_operator`. ([@koic][]) +* [#269](https://github.com/rubocop/rubocop-minitest/pull/269): Make `Minitest/RefuteMatch` aware of `refute_operator` and `assert_operator`. ([@koic][]) + +### Changes + +* [#265](https://github.com/rubocop/rubocop-minitest/pull/265): Make `Minitest/RefuteEqual` aware of `refute(expected == actual)`. ([@koic][]) + +[@koic]: https://github.com/koic