Skip to content

Commit

Permalink
remove debug lines
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Thoreson <[email protected]>
  • Loading branch information
erikthoreson24 committed Mar 11, 2024
1 parent 44c1e8b commit b894118
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/rspec_profiling/example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,9 @@ def verbose_record_event?(event_name)

def ownership_for_file(file_path)
return nil if RspecProfiling.config.magic_comment.empty?
puts "Magic comment: #{RspecProfiling.config.magic_comment}"
ownership_regex = /(^#\s*#{RspecProfiling.config.magic_comment}:\s*)\K(?<#{RspecProfiling.config.magic_comment}>.*$)/.freeze
comments = top_comments_from_file(file_path)
puts "Comments: #{comments}"
puts "REGEX: #{ownership_regex}"
matching_line = comments.detect { |line| line.match?(ownership_regex) }
puts "Matching line: #{matching_line}"
extract_ownership(matching_line, ownership_regex) if matching_line
end

Expand Down

0 comments on commit b894118

Please sign in to comment.