lib/trace_location/collector.rb in trace_location-0.10.0 vs lib/trace_location/collector.rb in trace_location-0.11.0
- old
+ new
@@ -24,10 +24,10 @@
caller_path = caller_loc.absolute_path
caller_lineno = caller_loc.lineno
location_cache_key = "#{caller_path}:#{caller_lineno}"
mes = extract_method_from(trace_point)
- next if mes.source_location[0] == '<internal:prelude>'
+ next if mes.source_location[0].match?(/\A(?:<internal:.+>|\(eval\))\z/)
method_source = method_source_cache[mes] ||= remove_indent(mes.source)
case trace_point.event
when :call