From 7d36c8fb77320920e94b21954d8b8298a286a3fa Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Sat, 16 Mar 2024 11:05:07 -0400 Subject: [PATCH] Change reference to Sexp object More modern versions of sexp_processor need to be supported. --- lib/churn/location_mapping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/churn/location_mapping.rb b/lib/churn/location_mapping.rb index 91305c1..ec0828b 100644 --- a/lib/churn/location_mapping.rb +++ b/lib/churn/location_mapping.rb @@ -30,7 +30,7 @@ def process_class(exp) start_line = exp.line last_line = deep_last_line(exp) name = name if name.is_a?(Symbol) - name = name.values.value if name.is_a?(Sexp) #deals with cases like class Test::Unit::TestCase + name = name.to_a.last if name.is_a?(Sexp) #deals with cases like class Test::Unit::TestCase @current_class = name @klasses_collection[name.to_s] = [] unless @klasses_collection.include?(name) @klasses_collection[name.to_s] << (start_line..last_line)