So....

Previously we could implement `--insecure` in one line, because that was the line that did.  (Well, two, if we could the comment.)  Your version takes 75 lines more.

I suspect that it can be replaced with this:

<pre>
# you can figure out the right alternative to `NONE` for verification mode ;)
http.verify_mode = options[:insecure] ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_LOTS_AND_LOTS
</pre>

Which saves us 75 lines of code. :)