From e175f6527519fcd000e45a6948c03796c7a651dc Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Thu, 6 Mar 2025 08:53:50 +0100 Subject: [PATCH] Release v2.22.0 --- CHANGELOG.md | 2 ++ config/default.yml | 8 ++++---- docs/antora.yml | 2 +- docs/modules/ROOT/pages/cops_capybara.adoc | 8 ++++---- lib/rubocop/capybara/version.rb | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e90da7d0..3760c38d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Edge (Unreleased) +## 2.22.0 (2025-03-10) + - Add `Capybara/AmbiguousClick` cop and make soft-deprecated `Capybara/ClickLinkOrButtonStyle` cop. If you want to use `EnforcedStyle: strict`, use `Capybara/AmbiguousClick` cop instead. ([@ydah]) - Add new `Capybara/FindAllFirst` cop. ([@ydah]) - Add a new `Capybara/NegationMatcherAfterVisit` cop. ([@ydah]) diff --git a/config/default.yml b/config/default.yml index 0923cc2b..61953da4 100644 --- a/config/default.yml +++ b/config/default.yml @@ -12,14 +12,14 @@ Capybara: Capybara/AmbiguousClick: Description: Specify the exact target to click on. Enabled: false - VersionAdded: "<>" + VersionAdded: '2.22' Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/AmbiguousClick Capybara/ClickLinkOrButtonStyle: Description: Checks for methods of button or link clicks. Enabled: false VersionAdded: '2.19' - VersionChanged: "<>" + VersionChanged: '2.22' EnforcedStyle: link_or_button SupportedStyles: - link_or_button @@ -36,7 +36,7 @@ Capybara/CurrentPathExpectation: Capybara/FindAllFirst: Description: Enforces use of `first` instead of `all` with `first` or `[0]`. Enabled: pending - VersionAdded: "<>" + VersionAdded: '2.22' Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/FindAllFirst Capybara/MatchStyle: @@ -59,7 +59,7 @@ Capybara/NegationMatcher: Capybara/NegationMatcherAfterVisit: Description: Do not allow negative matchers to be used immediately after `visit`. Enabled: pending - VersionAdded: "<>" + VersionAdded: '2.22' Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/NegationMatcherAfterVisit Capybara/RedundantWithinFind: diff --git a/docs/antora.yml b/docs/antora.yml index 8ec12200..8b8806fa 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -1,5 +1,5 @@ name: rubocop-capybara title: RuboCop Capybara -version: ~ +version: '2.22' nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/cops_capybara.adoc b/docs/modules/ROOT/pages/cops_capybara.adoc index 1fea08e2..060bf3ee 100644 --- a/docs/modules/ROOT/pages/cops_capybara.adoc +++ b/docs/modules/ROOT/pages/cops_capybara.adoc @@ -15,7 +15,7 @@ | Disabled | Yes | No -| <> +| 2.22 | - |=== @@ -53,7 +53,7 @@ click_button('foo') | Yes | No | 2.19 -| <> +| 2.22 |=== Checks for methods of button or link clicks. @@ -175,7 +175,7 @@ expect(page).to match(variable) | Pending | Yes | Always -| <> +| 2.22 | - |=== @@ -333,7 +333,7 @@ expect(page).not_to have_css('a') | Pending | Yes | No -| <> +| 2.22 | - |=== diff --git a/lib/rubocop/capybara/version.rb b/lib/rubocop/capybara/version.rb index 40fdcb99..44be000e 100644 --- a/lib/rubocop/capybara/version.rb +++ b/lib/rubocop/capybara/version.rb @@ -4,7 +4,7 @@ module RuboCop module Capybara # Version information for the Capybara RuboCop plugin. module Version - STRING = '2.21.0' + STRING = '2.22.0' end end end