Skip to content

Update rubocop-rspec_rails 2.31.0 → 2.33.0 (minor) - #3844

Open
depfu[bot] wants to merge 1 commit into
masterfrom
depfu/update/rubocop-rspec_rails-2.33.0
Open

depfu[bot] wants to merge 1 commit into
masterfrom
depfu/update/rubocop-rspec_rails-2.33.0

Conversation

@depfu

@depfu depfu Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ rubocop-rspec_rails (2.31.0 → 2.33.0) · Repo · Changelog

Release Notes

2.33.0

  • Add RSpecRails/FileFixture cop to prefer file_fixture over hardcoded fixture paths. (@ydah)
  • Fix RSpecRails/HttpStatus to detect unknown symbolic HTTP statuses and handle custom numeric string statuses consistently. (@ydah)
  • Speed up loading rubocop-rspec_rails by lazily loading only the cops needed for a run. This requires RuboCop 1.89.0+. (@koic)
  • Fix offense message for RSpecRails/HttpStatusNameConsistency cop. (@fatkodima)
  • Fix RSpecRails/MinitestAssertions autocorrection for quoted predicate symbols. (@ydah)
  • Fix RSpecRails/AvoidSetupHook to only check setup hooks inside example groups. (@ydah)
  • Fix a false positive for RspecRails/NegationBeValid when use to_not. (@ydah)
  • Fix false positives for RSpecRails/TravelAround when travel does not directly wrap the around example. (@ydah)
  • Supporting correcting assest_redirected_to in RSpec/Rails/MinitestAssertions. (@nzlaura)
  • Add new RSpecRails/ReceivePerformLater cop. (@ydah)
  • Fix RSpecRails/ReceivePerformLater offense range to exclude chains after the expectation. (@ydah)
  • Fix a false positive for RSpecRails/ReceivePerformLater when receive(:perform_later) is used inside another matcher. (@ydah)
  • Support described_class for RSpecRails/ReceivePerformLater. (@ydah)
  • Fix RSpecRails/TravelAround autocorrection to keep the indentation of the surrounding around block. (@eugeneius)
  • Fix RSpecRails/ReceivePerformLater offense messages for negative expectations. (@ydah)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

✳️ rubocop (1.79.2 → 1.92.0) · Repo · Changelog

Release Notes

Too many releases to show here. View the full release notes.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

✳️ rubocop-rspec (3.6.0 → 3.10.2) · Repo · Changelog

Release Notes

3.10.2

  • Fix false positives for RSpec/SpecFilePathFormat when CustomTransform maps a namespace to an empty string. (@sakuro)
  • Fix RSpec/MatchWithSimpleRegex to ignore regular expressions with options. (@bquorning)

3.10.1

  • Add Strict option to RSpec/SharedContext to flag shared_context whenever it contains examples, even alongside setup code. (@Darhazer)
  • Add NegatedMatcher configuration option RSpec/ExpectChange. (@Darhazer)
  • Fix RSpec/MatchWithSimpleRegex to ignore regular expressions with interpolations. (@bquorning)

3.10.0

  • Add new cop RSpec/MatchWithSimpleRegex to suggest include matcher when match is used with simple string literals without regex-specific features. (@bquorning)
  • Add new cop RSpec/DiscardedMatcher to detect matchers in void context (e.g. missing .and between compound matchers). (@ydakuka)
  • Add support for itblock nodes. (@Darhazer)
  • RSpec/ScatteredLet now preserves the order of lets during auto-correction. (@Darhazer)
  • Fix a false negative for RSpec/EmptyLineAfterFinalLet inside shared_examples / include_examples / it_behaves_like blocks. (@Darhazer)
  • Fix a false positive for RSpec/ContainExactly when contain_exactly has multiple splat arguments. (@ydah)
  • Add autocorrect support for RSpec/SubjectDeclaration. (@eugeneius)
  • Fix false negatives for RSpec/SpecFilePathFormat when the expected class path only partially matches a path segment. (@ydah)
  • Fix a false negative for RSpec/ExpectActual when the matcher takes no arguments (e.g. expect("foo").to be_present, expect(1).to be). (@cvx)

3.9.0

  • Fix a false positive for RSpec/LeakyLocalVariable when variables are used only in example metadata (e.g., skip messages). (@ydah)
  • Fix a false positive for RSpec/ScatteredSetup when the hook is defined inside a class method. (@d4rky-pl)
  • Fix a false positive for RSpec/DescribedClass inside dynamically evaluated blocks (class_eval, module_eval, instance_eval, class_exec, module_exec, instance_exec). (@sucicfilip)
  • Add new cop RSpec/Output. (@kevinrobell-st)

3.8.0

  • Add new cop RSpec/LeakyLocalVariable. (@lovro-bikic)
  • Bump RuboCop requirement to +1.81. (@ydah)
  • Fix a false positive for RSpec/LetSetup when let! used in outer scope. (@ydah)
  • Fix a false positive for RSpec/ReceiveNever cop when allow(...).to receive(...).never. (@ydah)
  • Fix detection of nameless doubles with methods in RSpec/VerifiedDoubles. (@ushi-as)
  • Improve an offense message for RSpec/RepeatedExample cop. (@ydah)
  • Let RSpec/SpecFilePathFormat leverage ActiveSupport inflections when configured. (@corsonknowles, @bquorning)

3.7.0

  • Mark RSpec/IncludeExamples as SafeAutoCorrect: false. (@yujideveloper)
  • Fix a false positive for RSpec/LeakyConstantDeclaration when defining constants in explicit namespaces. (@naveg)
  • Add support for error matchers (raise_exception and raise_error) to RSpec/Dialect. (@lovro-bikic)
  • Don't register offenses for RSpec/DescribedClass within Data.define blocks. (@lovro-bikic)
  • Add autocorrection support for RSpec/IteratedExpectation for single expectations. (@lovro-bikic)
  • Exclude all cops from inspecting factorybot files, except if explicitly included. (@Mth0158)
  • Fix a false positive for RSpec/ExcessiveDocstringSpacing when receivers are not RSpec methods. (@ydah)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ json (indirect, 2.21.2 → 3.1.0) · Repo · Changelog

Release Notes

3.1.0 (from changelog)

  • Added rfc8785 generator option to canonicalize the output. Replaces the json-canonicalization with numerous correctness fixes.
  • Use the rb_len_t type introduced in Ruby 4.1 to allow for proper 64bit support on LP64 platforms (Windows).
  • JRuby: parser errors now include the position (line, column and the message suffix) as well as json_path, matching the C extension.
  • Improved the accuracy of parser error's line, column and snipets in presence of multibyte characters.
  • Fix JSON.load to work correctly when provided a Zlib::GzipReader as IO source.
  • Reject non-ASCII BINARY strings during JSON generation. This was deprecated since a long time and scheduled to be removed for 3.0.

3.0.2 (from changelog)

  • Fix JSON.load_file and JSON.load_file! to load on Ruby 2.7.0 through 2.7.2, which cannot parse a leading parameter before ....

3.0.1 (from changelog)

  • Restore the limit positional argument of JSON.dump.

3.0.0

With the removal of the insecure create_additions option, JSON.load and JSON.dump are now safe to use. Them being unsafe by default caused multiple security vulnerabilites in the past.

If you did depend on create_additions, the recommended migration is to implement a custom serializer using JSON::Coder.

All the mutable default options, such as JSON.load_default_options have been removed. They were preventing Ractor compatiblity, and causing bug in libraries using JSON expecting the default behavior. JSON methods now always behave the same unless monkey patched.

All methods options are now either keyword arguments or checked like keyword arguments, meaning unknown options such as typos raise ArgumentError.

Duplicated keys are now rejected by default.

JavaScript comments in documents are no longer supported by default.

Numerous rarely used aliases have been removed.

  • Add JSON::ParserError#json_path to locate parse errors in the document as a JSONPath-style string (e.g. $.foo[0].bar). For duplicate key errors it points at the duplicated key itself.
  • Fix the parser to also reject lone trailing UTF-16 surrogates (\uDCxx with no leading partner), symmetric to the leading-surrogate case. The Java parser already rejected these; this closes the CRuby/JRuby parity gap.
  • JSON.load defaults are now safe to use.
  • All unknown options will now cause an ArgumentError rather than to be ignored.
  • The allow_comments parsing option now defaults to false.
  • The allow_duplicate_key option now defaults to false, for both parsing and generating JSON.
  • Removed the limit positional argument of JSON.dump.
  • Removed the escape_slash alias of script_safe.
  • Removed Kernel#j and Kernel#jj.
  • Removed JSON.load_default_options.
  • Removed JSON.unsafe_load_default_options.
  • Removed JSON.dump_default_options.
  • Removed JSON::State#[] and JSON::State#[]=.
  • Removed JSON.unparse.
  • Removed JSON.fast_generate.
  • Removed JSON.fast_unparse.
  • Removed JSON.pretty_unparse.
  • Removed JSON.restore.
  • Removed JSON::PRETTY_STATE_PROTOTYPE.
  • Removed the insecure create_additions option.
  • Removed JSON::GenericObject.

Full Changelog: v2.21.2...v3.0.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ parallel (indirect, 1.27.0 → 1.28.0) · Repo · Changelog

Commits

See the full diff on Github. The new version differs by 5 commits:

↗️ regexp_parser (indirect, 2.11.3 → 2.13.1) · Repo · Changelog

Release Notes

2.13.1 (from changelog)

Fixed

  • support lone \p expressions and scan them as escaped literal (#111)
    • match Ruby's behavior, which only warns for \p without a curly bracket
    • thanks to Jason Barnabe for the report

2.13.0 (from changelog)

Added

  • greatly improved scanning, lexing, and parsing performance
    • ~5x for a single-expression patterns, ~2x for a 500-expression pattern
  • improved performance of #each_expression and #traverse
  • greatly improved performance when comparing parse results (via #==)
  • improved scanner error messages for invalid patterns, e.g. '\xZ'

Fixed

  • SystemStackError when parsing or traversing very deeply nested trees (#109)
  • minor memory leak when accepting arbitrary user input as syntax version (#109)
  • #match_length now respects the quantifier of backrefs and subexp calls (#107)
  • #match_length now handles backref/subexp call multiplexing (#107)
  • thanks to Oskar Eichler for reporting these

2.12.0 (from changelog)

Added

  • support for new unicode properties of Ruby 4.0.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 19 commits:

↗️ rubocop-ast (indirect, 1.46.0 → 1.50.0) · Repo · Changelog

Release Notes

1.50.0 (from changelog)

Bug fixes

  • #412: Fix Node#argument? returning true for receivers that are structurally equal to an argument (e.g. the receiver in foo.bar(foo)). (@bbatsov)
  • #401: Avoid intermediate array allocations in HashNode#each_key/each_value. (@bbatsov)
  • #409: Fix Node#chained? and MethodDispatchNode#block_literal? returning true for nodes that are merely structurally equal to the receiver or send node (e.g. the argument in foo.bar(foo)). (@bbatsov)
  • #407: Fix the blockless form of the deprecated each_when, each_in_pattern, each_condition, and each_branch methods, which returned an unusable Enumerator. (@bbatsov)
  • #401: Fix force_encoding being a no-op for frozen string inputs. (@bbatsov)
  • #408: Fix ProcessedSource#preceding_line returning the last line of the file for tokens on the first line. (@bbatsov)

Changes

  • #411: Speed up filtered node traversals (each_descendant(:send) etc.) by not allocating an array per visited node, and add the non-splatting Node#type_in? predicate. (@bbatsov)
  • #404: Improve parser_prism performance by building tokens only when they are first accessed. (@bbatsov)
  • #408: Memoize ProcessedSource#checksum and skip the token sort when the tokens are already in order. (@bbatsov)
  • #410: Reduce allocations in keyword? and the method-name predicates (predicate_method?, bang_method?, etc.). (@bbatsov)
  • #405: Use Prism by default when analyzing Ruby 3.3 code. (@bbatsov)

1.49.1 (from changelog)

Bug fixes

  • #399: Fix unification variables not persisting in any-order nodes. (@marcandre)

1.49.0

New features

  • #394: Support Ruby 4.1 (experimental). (@koic)

1.48.0

New features

  • #391: Support Ruby 4.0 (experimental). (@koic)

1.47.1 (from changelog)

Bug fixes

  • #386: Fix parsing of node patterns that match against the empty string. (@earloapin)

1.47.0 (from changelog)

New features

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 68 commits:

↗️ unicode-display_width (indirect, 3.2.0 → 3.3.0) · Repo · Changelog

Release Notes

3.3.0 (from changelog)

  • Unicode 18.0
  • Fix bug that emoji handling could not be deactivated when using config object
  • Fix edge case to not modify string when failing parsing binary input as UTF-8

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 15 commits:

↗️ unicode-emoji (indirect, 4.2.0 → 4.3.0) · Repo · Changelog

Release Notes

4.3.0 (from changelog)

  • Unicode / Emoji 18.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 14 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu Bot added the depfu Automatic gem updates label Oct 14, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

depfu Automatic gem updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants