Up to [cvs.NetBSD.org] / pkgsrc / www / ruby-patron
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
www/ruby-patron: update to 1.1.0 0.14.0 (2026-10-27) * Expose libcurl's transfer timings (name lookup, connect, TLS, first byte, total) as Response#timings * Add ssl_cert, ssl_cert_type, ssl_key and ssl_key_password for presenting a client certificate (mutual TLS). Thanks @lenage for the original contribution in #165 * Raise Patron::ClientCertificateError when the client certificate or its key can't be used * Accept a Pathname for cacert * Fix a request whose options fail to apply (for example an option of the wrong type) leaking its headers and open files into the next request on the same Session * Fix the request body being read from freed memory when upload_data is not a String (its #to_s result was not kept alive during the transfer) * Fix multipart field names and values pointing at temporary Strings, and binary multipart values being cut at the first NUL byte * Fix an exception raised inside progress_callback (including Timeout.timeout and Thread#raise) unwinding through libcurl; it is now re-raised after the transfer is aborted * Raise Patron::Error when a second thread uses a Session that is already performing a request, instead of corrupting both requests * Fix the progress callback being declared with size_t arguments where libcurl passes curl_off_t * Accept download_byte_limit above 2 GiB, and Floats for dns_cache_timeout, low_speed_time and low_speed_limit * Fix Session#unescape cutting the result at a %00, and raise instead of crashing when libcurl fails to escape or unescape * Reject file paths containing NUL bytes for cookie files, debug output and uploads * Raise NoMemoryError instead of crashing later when libcurl cannot allocate a Session's handles * Register the exception classes the extension looks up at load time with the GC, so heap compaction (GC.compact, GC.auto_compact) cannot move them out from under rb_raise 1.0.0 (2026-10-29) 1.1.0 (2026-11-04) Changes are too many to write here, please refer <https://github.com/toland/patron/blob/999f0acf77c8e9a19533a9caa89071758a78dfce/CHANGELOG.md> in detail.
www/ruby-patron: update to 0.13.4 0.13.4 (2025-02-27) * Format README a bit better using code fences * Depend explicitly on base64 for running tests * Remove C code used for Ruby support below < 2.4 (GVL unlock etc.) and drop support for these versions * In tests, close Tempfiles before allowing libcurl to use them (cookie jar) * Fix incorrect ptr type in uses of curl_easy_escape / _unescape * Define methods on Session as private instance methods from C instead of privatising them from Ruby * Speed up the /slow endpoint test * Remove use of curl_easy_reset. This should fix the bug with sessions resetting each other's state during session_free
www/ruby-patron: update to 0.13.3 Update ruby-patron to 0.13.3. ### 0.13.3 * Fix a number of specs that were failing due to use of threads ### 0.13.2 * Eagerly initialize libCURL handle when creating the Session instance instead of initializing it lazily * Remove special treatment of `Session#reset` and make it the same as `Session#interrupt`
www/ruby-patron: update to 0.12.1 ### 0.12.1 * Ensure HTTP2 response headers/status lines are correctly handled ### 0.12.0 * Replace StringScanner in HeaderParser with StringIO, fix Webmock regression when the headers string would not have an empty CRLF-terminated line at the end - which would cause the parser to return a nil. * Added `Session#dns_cache_timeout` as a config option for CURLOPT_DNS_CACHE_TIMEOUT ### 0.11.1 * Make sure StringScanner is available to HeaderParser. ### 0.11.0 * Added `Session#progress_callback` which accepts a callable object, which can be used to report session progress during request execution. * Fixed parsing of response headers when multiple responses are involved (redirect chains and HTTP proxies) ### 0.10.0 * Added `Session#low_speed_time` and `Session#low_speed_limit`. When used, they will force libCURL to raise a timeout if a certain speed limit is not met performing the request. These can be used for better timeout handling. These are available in all libCURL versions. See https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_TIME.html and https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_LIMIT.html
Update ruby-patron to 0.8.0. ### 0.8.0 * Add `Response#inspectable_body`, `Response#decoded_body`. `decoded_body` will atempt to decode the HTTP response into your internal encoding, using the charset header that the server has provided. Note that this operation may fail - if the server said that the body is in a certain encoding, but this is then overridden with, say, `meta` elements in the HTML Patron is _not_ going to parse the HTML to figure out how to decode. ### 0.7.0 * Allow Ruby File objects to be passed as `data` to `Session#put`, `Sesion#post` etc. ### 0.6.5 * Prevent libCURL from doing requests to non-HTTP/HTTPS URLs, and from following redirects to such URLs ### 0.6.4 * Set the default User-Agent string, since some sites require it (like the Github API). * Add Response#ok? and Response#error? for cleaner branching on the returned Response objects * Explain a segfault with SSL in forked processes on OSX, document the way to avoid the issue * Fix segfault when attempting multiple post requests with multipart (#119) ### 0.6.3 * Fix timeout when uploading a body using all verbs except POST * Add PATCH HTTP verb support * Populate the curl state object from the reader methods of `Request` ### 0.6.1 * Fix compilation on older versions of libCURL * Fix cookie jar files not being saved after request * Reformat the gem documentation to YARD, document a few behaviors ### 0.6.0 * Add `Patron::Session#automatic_content_encoding` for automatic deflate handling via `Accept`/`Content-Encoding` ### 0.5.1 * Allow customizing the class used for the response (now uses `Session#response_class` to determine the class at runtime) * Do not fail body decoding if the charset name set in the header is invalid
Update ruby-patronto 0.4.20. * fix base url concatenation * Adds instantiation settings via block or hash. Fixes .downcase being called on symbols. Cleaned up Cleans up hash setter. Adds block support Adds tests for hash and block instantiation Undoes string fix for patron/request.rb to keep with scope. * Handle two failing specs One is failing due to no OS support for SSLv2. This is reasonable, so I just removed SSLv2 from the list of SSL versions to test. This doesn't change the meaning of the test at all. I could not find the root cause of the other spec failure, though I suspect it is a setup problem. I have disabled the spec for now and will revisit it later on. * Add doc comment * Add a way to get the Request object * Revert request action to be a symbol, but still allow upcase and downcase strings.
Add ${GEM_EXTSDIR}/gem.build_complete for new rubygems and updated ruby.
Add GEM_EXTSDIR support.
Update ruby-patron to 0.4.18. Exact changes are unknown.
* Remove .require_paths from PLIST * Bump PKGREVISION.
Update www/ruby-patron package to 0.4.15. Compact changes are not available but some ruby19 related improvement. Please refer detail: https://github.com/toland/patron/commits/master
Update www/ruby-patron package to 0.4.14. Changes are unknown.
Update ruby-patron pacakge to 0.4.11. * Added URL encoding when an action is a POST.
Update ruby-patron package to 0.4.10. 0.4.10. * buffer size option. * Added mutipart post.
Update www/ruby-patron to 0.4.8. * Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk. * Remove default value of GEM_BUILD. * Ajust new ruby package's framework. Changes are unknown.
Import ruby18-patron-0.4.4 as www/ruby-patron. Patron is a Ruby HTTP client library based on libcurl. It does not try to expose the full "power" (read complexity) of libcurl but instead tries to provide a sane API while taking advantage of libcurl under the hood.
Initial revision