rubocop-fourshark 0.8.5 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b6d31dcd7f72bdcf6f8cc44ca8315d8fd4388c54352be392fcf3b13160ed690
4
- data.tar.gz: d399855a3ce34a564f243a741d34fc76c368cfeb2922f0c4f41f7d8020d0b89e
3
+ metadata.gz: 1bdc31121f34ef40cca25af1bc804caafecc8b8f58fd2996457cd01d82b98502
4
+ data.tar.gz: 26bbc30201fe22eef3477a20ce1eaf7016ee020a1ed93f53134429654da4a11d
5
5
  SHA512:
6
- metadata.gz: cb034ef690e144cbb51853a88e987059f697a4c434317e66da75cc6aee3002074aa7501ed2642382582feb1f4de3906bf05fd1b005cf02fd4df36255bfa7ce65
7
- data.tar.gz: ece127b0287704f962886699502445783f2ad3eac3354aa9628bd62dd30f3a97710ea37a98db39e173d16c202088747af1a8ca0acfa1d6e992221d7639d09864
6
+ metadata.gz: ce23cde85c85d07932802b8bc89aa7c48f047cd274f59ff7d8c32b5e5e490e4bc46f118bb0e6216796cc774f9dc7c687bc464d33ac59361885a8bab2dd865edb
7
+ data.tar.gz: 616ed09b7f636b5cc4931894d86063a62b9e7357cf35802dee67f6d4a2c77ab8523131519ced29806cb6e1bd862ce8771931401411b3b1e0d59ebe6fabc5b575
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.8.6] - 2026-08-08
2
+
3
+ ### Fixed
4
+
5
+ - `Style/DisallowDelegate` — a chained receiver carrying an own state argument is no longer flagged
6
+
1
7
  ## [0.8.5] - 2026-08-07
2
8
 
3
9
  ### Changed
@@ -212,11 +212,14 @@ module RuboCop
212
212
  mixes_in_enumerable?(body)
213
213
  end
214
214
 
215
- # Remove Middle Man on a message chain IS the caller navigating, so an
216
- # argument riding along does not earn the exemption.
215
+ # A body that passes the object's own state is composing, not forwarding:
216
+ # it collapses `owner.collaborator.message(owner.state)` into
217
+ # `owner.message`, so the method hides the passing of a parameter the
218
+ # object itself holds. How far the collaborator sits is not part of that
219
+ # judgement — depth changes the path to the collaborator, never who the
220
+ # answer is about. A body that passes nothing, or passes a parameter the
221
+ # caller handed in, composes nothing and stays an offense at any depth.
217
222
  def composes_own_state?(body)
218
- return false if call_with_receiver?(body.receiver)
219
-
220
223
  body.arguments.any? { |argument| own_state?(argument, body.receiver) }
221
224
  end
222
225
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Fourshark
5
- VERSION = '0.8.5'
5
+ VERSION = '0.8.6'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-fourshark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Ribeiro