macbre/analyze-css — pull request #35 by plasticine (2014-01-20 08:00:13+00:00)
Title: Add 'ignore-ssl-errors' flag.

Hi — love `analyze-css` and really want to be able to use it with phantomas. :)

I struck a hurdle though as the server I want to run tests against has in invalid self-signed SSL cert.

Currently analyze-css will explode with `Error: HTTP request failed: Error: SELF_SIGNED_CERT_IN_CHAIN` trying to fetch content from this server.

This PR adds an `--ignore-ssl-errors` bool flag that will allow for getting content from servers that have busted SSL certs. It makes a few changes to option passing in the main executable, and changes the `request` method in the runner to take an object instead of just a URL as a string.

### Phantomas integration

I would love to add a follow-on PR for phantomas that will pass down along the `--ignore-ssl-errors` option from phantomas into analyze-css, however I’m not sure if this is the right thing to do (seems to make most sense?), and also not sure how you want to handle the version locking between the two (assuming this PR is accepted and a release made).

Cheers! :)