File tree 2 files changed +15
-3
lines changed
lib/mutant/matcher/method
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change
1
+ # v0.12.5 unreleased
2
+
3
+ * [ #1458 ] ( https://github.com/mbj/mutant/pull/1458 )
4
+
5
+ Fix zombifier on memoized methods (only relevant for mutant developers).
6
+
1
7
# v0.12.4 2024-06-30
2
8
3
- * [ #1455 ] ( https://github.com/mbj/mutant/pull/1454 )
9
+ * [ #1455 ] ( https://github.com/mbj/mutant/pull/1455 )
4
10
5
11
Fix parsing of empty rspec descriptions
6
12
7
13
# v0.12.3 2024-06-10
8
14
9
- * [ #1452 ] ( https://github.com/mbj/mutant/pull/1451 )
15
+ * [ #1453 ] ( https://github.com/mbj/mutant/pull/1453 )
10
16
11
17
Remove support for EOL Ruby-3.0.
18
+
19
+ * [ #1450 ] ( https://github.com/mbj/mutant/pull/1450 )
12
20
Remove another invalid mutation to super().
13
21
14
22
# v0.12.2 2024-06-09
Original file line number Diff line number Diff line change @@ -30,8 +30,12 @@ def self.new(scope:, target_method:)
30
30
end
31
31
# rubocop:enable Metrics/MethodLength
32
32
33
+ TARGET_MEMOIZER = ::Mutant ::Adamantium
34
+
35
+ private_constant ( *constants ( false ) )
36
+
33
37
def self . memoized_method? ( scope , method_name )
34
- scope . raw < Adamantium && scope . raw . memoized? ( method_name )
38
+ scope . raw < TARGET_MEMOIZER && scope . raw . memoized? ( method_name )
35
39
end
36
40
private_class_method :memoized_method?
37
41
You can’t perform that action at this time.
0 commit comments