Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for nested sitemaps #12

Merged
merged 4 commits into from
Apr 25, 2016

Conversation

alexmuller
Copy link
Contributor

Hi! I've ended up rejigging a bit here, I hope that's ok. There's probably better ways of doing this but I believe this works!

There's more detail in the commit messages.

Rather than having to download files over the network we can stub
Typhoeus so that the tests work without an internet connection.
Rescuing all exceptions makes it quite hard to figure out the intended
purpose of the code and could mask more serious problems.
This will be helpful when we support sitemapindex.
I've defaulted this option to false to maintain the current behaviour.
This is limited to one level for now so that we don't do infinite
recursing of sitemaps.
@benbalter
Copy link
Owner

This looks great. Thanks @alexmuller!

@benbalter benbalter merged commit bb3c8ae into benbalter:master Apr 25, 2016
@alexmuller alexmuller deleted the add-support-nested-sitemaps branch April 26, 2016 18:05
@alexmuller
Copy link
Contributor Author

Thank you very much! Would you mind pushing a release of this to RubyGems? I'd love to give it a go in https://github.com/alphagov/govuk_seed_crawler/.

@benbalter
Copy link
Owner

Done: https://github.com/benbalter/sitemap-parser/releases/tag/v0.3.0

And thanks for tidying up the tests! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants