From 1f45049d91f8944a991e851bc118cf60efe5f2ee Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Mon, 17 Jul 2023 09:06:05 +0200 Subject: [PATCH] Bump version to v2.23.0 --- CHANGELOG.md | 2 ++ config/default.yml | 16 ++++++++-------- docs/antora.yml | 2 +- docs/modules/ROOT/pages/cops_rspec.adoc | 8 ++++---- .../ROOT/pages/cops_rspec_factorybot.adoc | 6 +++--- docs/modules/ROOT/pages/cops_rspec_rails.adoc | 2 +- lib/rubocop/rspec/version.rb | 2 +- 7 files changed, 20 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b26bf105..63d606a99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Master (Unreleased) +## 2.23.0 (2023-07-30) + - Add new `RSpec/Rails/NegationBeValid` cop. ([@ydah]) - Fix a false negative for `RSpec/ExcessiveDocstringSpacing` when finds description with em space. ([@ydah]) - Fix a false positive for `RSpec/EmptyExampleGroup` when example group with examples defined in `if` branch inside iterator. ([@ydah]) diff --git a/config/default.yml b/config/default.yml index fb5a6567b..8996dd730 100644 --- a/config/default.yml +++ b/config/default.yml @@ -185,7 +185,7 @@ RSpec/BeforeAfterAll: - "**/spec/rails_helper.rb" - "**/spec/support/**/*.rb" VersionAdded: '1.12' - VersionChanged: "<>" + VersionChanged: '2.23' StyleGuide: https://rspec.rubystyle.guide/#avoid-hooks-with-context-scope Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeforeAfterAll @@ -407,7 +407,7 @@ RSpec/ExpectActual: Exclude: - "**/spec/routing/**/*" VersionAdded: '1.7' - VersionChanged: "<>" + VersionChanged: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectActual RSpec/ExpectChange: @@ -515,7 +515,7 @@ RSpec/IndexedLet: Description: Do not set up test data using indexes (e.g., `item_1`, `item_2`). Enabled: pending VersionAdded: '2.20' - VersionChanged: "<>" + VersionChanged: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IndexedLet Max: 1 AllowedIdentifiers: [] @@ -733,7 +733,7 @@ RSpec/ReceiveCounts: RSpec/ReceiveMessages: Description: Checks for multiple messages stubbed on the same object. Enabled: pending - VersionAdded: "<>" + VersionAdded: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReceiveMessages RSpec/ReceiveNever: @@ -989,7 +989,7 @@ RSpec/FactoryBot/AttributeDefinedStatically: - "**/spec/factories/**/*.rb" - "**/features/support/factories/**/*.rb" VersionAdded: '1.28' - VersionChanged: "<>" + VersionChanged: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/AttributeDefinedStatically RSpec/FactoryBot/ConsistentParenthesesStyle: @@ -1016,7 +1016,7 @@ RSpec/FactoryBot/CreateList: - create_list - n_times VersionAdded: '1.25' - VersionChanged: "<>" + VersionChanged: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/CreateList RSpec/FactoryBot/FactoryClassName: @@ -1027,7 +1027,7 @@ RSpec/FactoryBot/FactoryClassName: - "**/spec/factories/**/*.rb" - "**/features/support/factories/**/*.rb" VersionAdded: '1.37' - VersionChanged: "<>" + VersionChanged: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/FactoryClassName RSpec/FactoryBot/FactoryNameStyle: @@ -1113,7 +1113,7 @@ RSpec/Rails/NegationBeValid: - not_to - be_invalid Enabled: pending - VersionAdded: "<>" + VersionAdded: '2.23' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/NegationBeValid RSpec/Rails/TravelAround: diff --git a/docs/antora.yml b/docs/antora.yml index 51a533a15..896458572 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -1,5 +1,5 @@ name: rubocop-rspec title: RuboCop RSpec -version: ~ +version: '2.23' nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/cops_rspec.adoc b/docs/modules/ROOT/pages/cops_rspec.adoc index 0f0952ec5..f1c76d588 100644 --- a/docs/modules/ROOT/pages/cops_rspec.adoc +++ b/docs/modules/ROOT/pages/cops_rspec.adoc @@ -378,7 +378,7 @@ expect(foo).to be(nil) | Yes | No | 1.12 -| <> +| 2.23 |=== Check that before/after(:all) isn't being used. @@ -1767,7 +1767,7 @@ end | Yes | Yes | 1.7 -| <> +| 2.23 |=== Checks for `expect(...)` calls containing literal values. @@ -2476,7 +2476,7 @@ it { expect(named_subject).to be_truthy } | Yes | No | 2.20 -| <> +| 2.23 |=== Do not set up test data using indexes (e.g., `item_1`, `item_2`). @@ -4272,7 +4272,7 @@ expect(foo).to receive(:bar).at_most(:twice).times | Pending | Yes | Yes -| <> +| 2.23 | - |=== diff --git a/docs/modules/ROOT/pages/cops_rspec_factorybot.adoc b/docs/modules/ROOT/pages/cops_rspec_factorybot.adoc index d5e21055b..979216201 100644 --- a/docs/modules/ROOT/pages/cops_rspec_factorybot.adoc +++ b/docs/modules/ROOT/pages/cops_rspec_factorybot.adoc @@ -9,7 +9,7 @@ | Yes | Yes | 1.28 -| <> +| 2.23 |=== Always declare attribute values as blocks. @@ -131,7 +131,7 @@ build( | Yes | Yes | 1.25 -| <> +| 2.23 |=== Checks for create_list usage. @@ -198,7 +198,7 @@ create_list :user, 3 | Yes | Yes | 1.37 -| <> +| 2.23 |=== Use string value when setting the class attribute explicitly. diff --git a/docs/modules/ROOT/pages/cops_rspec_rails.adoc b/docs/modules/ROOT/pages/cops_rspec_rails.adoc index 29d94410f..35313e5d7 100644 --- a/docs/modules/ROOT/pages/cops_rspec_rails.adoc +++ b/docs/modules/ROOT/pages/cops_rspec_rails.adoc @@ -269,7 +269,7 @@ expect(b).not_to eq(a) | Pending | Yes | Yes -| <> +| 2.23 | - |=== diff --git a/lib/rubocop/rspec/version.rb b/lib/rubocop/rspec/version.rb index 746e8808c..0577eaac5 100644 --- a/lib/rubocop/rspec/version.rb +++ b/lib/rubocop/rspec/version.rb @@ -4,7 +4,7 @@ module RuboCop module RSpec # Version information for the RSpec RuboCop plugin. module Version - STRING = '2.22.0' + STRING = '2.23.0' end end end