Skip to content

Conversation

@gildesmarais
Copy link
Member

Summary

  • normalize article URLs during cleanup so semantically equivalent variants deduplicate correctly
  • compute comparison-ready normalized URLs directly in Html2rss::Url via Addressable normalization and drop the extra helper module
  • cover URL normalization behaviours with targeted specs

Testing

  • bundle exec rspec spec/lib/html2rss/auto_source/cleanup_spec.rb spec/lib/html2rss/url_spec.rb
  • bundle exec rubocop
  • bundle exec reek

https://chatgpt.com/codex/tasks/task_e_68ef40c2ba24832dab408f1f47b5231c

#
# @return [String] the normalized representation used for comparison
def normalized_for_comparison
@normalized_url
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@normalized_url
@normalized_url ||= build_normalized_uri(@uri).to_s.delete_suffix('/').freeze

@gildesmarais gildesmarais marked this pull request as draft October 15, 2025 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants