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

i need a way to know the status of the scrape, and if it failed, why. #16

Merged

Conversation

rromanchuk
Copy link
Contributor

Might be better just to raise, not sure, feel free to refactor :)

…Might be better just to raise, not sure, feel free to refactor :)
@rromanchuk
Copy link
Contributor Author

i can add some tests this week

@jaimeiniesta
Copy link
Owner

@rromanchuk this would be great. I just released 1.9.1 and it includes the ability to set a timeout, so the scraping doesn't wait forever.

In your specs, if you want to simulate a TimeoutException, just set a very low timeout, like:

MetaInspector.new('example.com', 0.0000000001).title

@jaimeiniesta jaimeiniesta merged commit e947aae into jaimeiniesta:master Jul 22, 2012
@jaimeiniesta
Copy link
Owner

@rromanchuk I've released metainspector 1.9.3, which merges your additions. I've fixed what was broken.

Tell me if this works for you, and if it doesn't, just send me a pull request, you know :)

Thanks!

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.

None yet

2 participants