The OpenSSL verify_callback isn't supported on jruby [1], and behaves in
somewhat surprising ways on OS X due to Apple monkey patching OpenSSL.
We probably want to move in the direction of just passing through the
OpenSSL exceptions anyway.
[1] https://github.com/jruby/jruby/issues/597Fixes: #165
See also: #168, e03e5e6c
Move SSL options into their own hash so we can handle defaults in a more
sane way. This also makes it much clearer to the user what's happening
when defaults are used for SSL parameters.
Fixes#139, #255
SSL verification will not be performed if `:verify_ssl` is falsy or a
constant like `OpenSSL::SSL::VERIFY_NONE` that disables verification.
Validate that cookie names and values don't flagrantly violate RFC 6265
by containing things like control characters or ';'. This will help
prevent users from accidentally breaking boundaries of cookies or the
cookie header.
If you really want to send scary characters, you can set the Cookie
header directly.
It isn't appropriate to call CGI.unescape on cookie values: any URI
encoding performed by servers on cookies should remain that way to avoid
sending invalid characters in the Cookie request HTTP header. (e.g. If
you send a cookie containing '%0A', it should send those three octets,
not a newline character.)
Fixes#89
* Put unit and integration specs into separate subdirectories
* Consolidate all requires of 'webmock/rspec' into spec_helper.rb
* Use WebMock.{disable!,enable!} for specs calling live server