This repository was archived by the owner on Nov 5, 2026. It is now read-only.
Repository navigation
Releases
Releases · Fingertips/nap
v1.2.0
- Removes
support/cacert.pemand no longer sets their own CA file for the HTTP request. - Reversed
tls_verify:andverify_ssl:options to be true by default instead of false.
If you're actually using Nap in production code, you probably should stop at this point. Read the code and copy the 12 lines of net/http you need into your own code.
To keep most of the current behavior you can change the options to disable tls_verify, comme ça:
response = REST.get(
'https://example.com',
{},
{ tls_verify: false }
)Full Changelog: v1.1.1...v1.2.0
Modernize codebase and more sensible TLS defaults
- Removes
support/cacert.pemand no longer sets their own CA file for the HTTP request. - Reversed
tls_verify:andverify_ssl:options to be true by default instead of false.
If you're actually using Nap in production code, you probably should stop at this point. Read the code and copy the 12 lines of net/http you need into your own code.
To keep most of the current behavior you can change the options to disable tls_verify, comme ça:
response = REST.get(
'https://example.com',
{},
{ tls_verify: false }
)Update CA bundle
Finally free
- A REST::Request now forwards the entity body for all HTTP verbs.
SMTM
Exception groups
- Added various exception constants which allow you to rescue a group of exceptions at once.
See the README for a quick introduction to these exceptions.
v0.7.0
- Added support for advanced configuration of the Net::HTTP object through a block.
- Verified support for Ruby 2.1.
- Stop throwing exceptions when trying to request a URI without a path (e.g. http://example.com).
Patch support
- Added support for PATCH requests (thanks to Eloy Duran)