From 34c042e40092a8f92990bbc0a338e01f15057f28 Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Tue, 1 Oct 2024 12:13:00 +0200 Subject: [PATCH] Bump version to v3.1.0 --- CHANGELOG.md | 2 ++ config/default.yml | 2 +- docs/antora.yml | 2 +- docs/modules/ROOT/pages/cops_rspec.adoc | 2 +- lib/rubocop/rspec/version.rb | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf2338aee..93499ceaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Master (Unreleased) +## 3.1.0 (2024-10-01) + - Add `RSpec/StringAsInstanceDoubleConstant` to check for and correct strings used as instance_doubles. ([@corsonknowles]) - Fix false-positive for `RSpec/UnspecifiedException` when a method is literally named `raise_exception`. ([@aarestad]) - Fix false-positive for `RSpec/UnspecifiedException` when `not_to raise_error` is used within a block. ([@aarestad], [@G-Rath]) diff --git a/config/default.yml b/config/default.yml index 7e6e742b4..c62b2f138 100644 --- a/config/default.yml +++ b/config/default.yml @@ -933,7 +933,7 @@ RSpec/StringAsInstanceDoubleConstant: Description: Do not use a string as `instance_double` constant. Enabled: pending Safe: false - VersionAdded: "<>" + VersionAdded: '3.1' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/StringAsInstanceDoubleConstant RSpec/StubbedMock: diff --git a/docs/antora.yml b/docs/antora.yml index 51a533a15..bac2f797a 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -1,5 +1,5 @@ name: rubocop-rspec title: RuboCop RSpec -version: ~ +version: '3.1' nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/cops_rspec.adoc b/docs/modules/ROOT/pages/cops_rspec.adoc index 01240298c..2aff167af 100644 --- a/docs/modules/ROOT/pages/cops_rspec.adoc +++ b/docs/modules/ROOT/pages/cops_rspec.adoc @@ -5501,7 +5501,7 @@ spec/models/user.rb # shared_examples_for 'foo' | Pending | No | Always (Unsafe) -| <> +| 3.1 | - |=== diff --git a/lib/rubocop/rspec/version.rb b/lib/rubocop/rspec/version.rb index 554e79ce9..334b1761a 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 = '3.0.5' + STRING = '3.1.0' end end end