Commit graph

12 commits

Author SHA1 Message Date
tsutsui
34d954c04a ruby-http: update to 3.0.0.
pkgsrc changes:
- sort DEPENDS

Upstream changes (from CHANGES.md):

## 3.0.0 (2017-10-01)

* Drop support of Ruby `2.0` and Ruby `2.1`.
  ([@ixti])

* [](https://github.com/httprb/http/pull/410)
  Infer `Host` header upon redirects.
  ([@janko-m])

* [](https://github.com/httprb/http/pull/409)
  Enables request body streaming on any IO object.
  ([@janko-m])

* [](https://github.com/httprb/http/issues/413),
  [](https://github.com/httprb/http/pull/414)
  Fix encoding of body chunks.
  ([@janko-m])

* [](https://github.com/httprb/http/pull/368),
  [](https://github.com/httprb/http/issues/357)
  Fix timeout issue.
  ([@HoneyryderChuck])
2017-12-09 17:53:16 +00:00
tsutsui
b64c9be308 Update ruby-http to 2.2.0.
Upstream changes (from CHANGES.md):

## 2.2.0 (2017-02-03)

* [](https://github.com/httprb/http/pull/375)
  Add support for automatic Gzip/Inflate
  ([@Bonias])

* [](https://github.com/httprb/http/pull/390)
  Add REPORT to the list of valid HTTP verbs
  ([@ixti])


## 2.1.0 (2016-11-08)

* [](https://github.com/httprb/http/issues/370)
  Add Headers#include?
  ([@ixti])

* [](https://github.com/httprb/http/issues/364)
  Add HTTP::Response#connection
  ([@janko-m])

* [](https://github.com/httprb/http/issues/362)
  connect_ssl uses connect_timeout (Closes )
  ([@TiagoCardoso1983])
2017-02-05 01:13:32 +00:00
taca
154f42cd94 Update ruby-http to 2.0.3.
## 2.0.3 (2016-08-03)

* [](https://github.com/httprb/http/issues/365)
  Add `HTTP::Response#content_length`
  ([@janko-m])

* [](https://github.com/httprb/http/issues/335),
  [](https://github.com/httprb/http/pull/360)
  Set `Content-Length: 0` header for `nil` bodies.
  ([@britishtea])


## 2.0.2 (2016-06-24)

* [](https://github.com/httprb/http/pull/353)
  Avoid a dependency cycle between Client and Connection classes.
  ([@jhbabon])


## 2.0.1 (2016-05-12)

* [](https://github.com/httprb/http/pull/341)
  Refactor some string manipulations so they are more performant
  (up to 3-4x faster) and more concise.
  ([@tonyta])

* [](https://github.com/httprb/http/pull/341)
  Always use byte methods when writing/slicing the write buffer.
  ([@zanker])


## 2.0.0 (2016-04-23)

* [](https://github.com/httprb/http/pull/333)
  Fix HTTPS request headline when sent via proxy.
  ([@Connorhd])

* [](https://github.com/httprb/http/pull/331)
  Add `#informational?`, `#success?`, `#redirect?`, `#client_error?` and
  `#server_error?` helpers to `Response::Status`.
  ([@mwitek])

* [](https://github.com/httprb/http/pull/330)
  Support custom CONNECT headers (request/response) during HTTPS proxy requests.
  ([@smudge])

* [](https://github.com/httprb/http/pull/319)
  Drop Ruby 1.9.x support.
  ([@ixti])


## 1.0.4 (2016-03-19)

* [](https://github.com/httprb/http/pull/320)
  Fix timeout regression.
  ([@tarcieri])


## 1.0.3 (2016-03-16)

* [](https://github.com/httprb/http/pull/314)
  Validate charset before forcing encoding.
  ([@kylekyle])

* [](https://github.com/httprb/http/pull/318)
  Remove redundant string allocations upon header names normalization.
  ([@ixti])
2016-10-18 15:27:13 +00:00
tsutsui
bb1cc6c053 Update ruby-http to 1.0.2.
Upstream changes (from CHANGES.md):

## 1.0.2 (2016-01-15)

* [](https://github.com/httprb/http/pull/295):
  Fix redirect following when used with persistent mode.
  ([@ixti])
2016-02-13 15:32:08 +00:00
taca
55c50d8d52 Update ruby-http to 1.0.1.
## 1.0.1 (2015-12-27)

* [](https://github.com/httprb/http/pull/283):
  Use io/wait on supported platforms.
  ([@tarcieri])

## 1.0.0 (2015-12-25)

* [](https://github.com/httprb/http/pull/265/):
  Remove deprecations ([@tarcieri]):
  - HTTP::Chainable#with_follow (use #follow)
  - HTTP::Chainable#with, #with_headers (use #headers)
  - HTTP::Chainable#auth(:basic, ...) (use #basic_auth)
  - HTTP::Chainable#default_headers (use #default_options[:headers])
  - HTTP::Headers#append (use #add)
  - HTTP::Options#[] hash-like API deprecated in favor of explicit methods
  - HTTP::Request#request_header (use #headline)
  - HTTP::Response::STATUS_CODES (use HTTP::Status::REASONS)
  - HTTP::Response::SYMBOL_TO_STATUS_CODE (no replacement)
  - HTTP::Response#status_code (use #status or #code)
  - HTTP::Response::Status#symbolize (use #to_sym)

* [](https://github.com/httprb/http/pull/273/):
  Close connection in case of error during request.
  ([@ixti])

* [](https://github.com/httprb/http/pull/273/):
  High-level exception wrappers for low-level I/O errors.
  ([@ixti])

* [](https://github.com/httprb/http/pull/273/):
  Add encoding option.
  ([@connorhd])

* [](https://github.com/httprb/http/pull/273/):
  Support for disabling Nagle's algorithm with `HTTP.nodelay`.
  ([@nerdrew])

* [](https://github.com/httprb/http/pull/276)
  Use Encoding::BINARY as the default encoding for HTTP::Response::Body.
  ([@tarcieri])

* [](https://github.com/httprb/http/pull/278)
  Use an options hash for HTTP::Request initializer API.
  ([@ixti])

* [](https://github.com/httprb/http/pull/279)
  Send headers and body in one write if possible.
  This avoids a pathological case in Nagle's algorithm.
  ([@tarcieri])

* [](https://github.com/httprb/http/pull/281)
  Remove legacy 'Http' constant alias to 'HTTP'.
  ([@tarcieri])
2016-01-03 08:00:59 +00:00
taca
767f535419 Update ruby-http to 0.9.8.
## 0.9.8 (2015-09-29)

* [](https://github.com/httprb/http/pull/258):
  Fixed global timeout persisting time left across requests when reusing connections.
  ([@zanker][])

## 0.9.7 (2015-09-19)

* [](https://github.com/httprb/http/pull/258):
  Unified strategy for handling exception-based and exceptionless non-blocking
  I/O. Fixes SSL support on JRuby 9000. ([@tarcieri][])


## 0.9.6 (2015-09-06)

* [](https://github.com/httprb/http/pull/254):
  Removed use of an ActiveSupport specific method #present?
  ([@tarcieri][])


## 0.9.5 (2015-09-06)

* [](https://github.com/httprb/http/pull/252):
  Fixed infinite hang/timeout when a request contained more than ~16,363 bytes.
  ([@zanker][])


## 0.9.4 (2015-08-26)

* Fixes regression when body streaming was failing on some URIs.
  See . (@zanker)
* Fixes require timeout statements. See . (@ixti)


## 0.9.3 (2015-08-19)

* Fixed request URI normalization. See . (@ixti)
  - Avoids query component normalization
  - Omits fragment component in headline


## 0.9.2 (2015-08-18)

* Fixed exceptionless NIO EOF handling. (@zanker)


## 0.9.1 (2015-08-14)

* Fix params special-chars escaping. See . (@ixti)


## 0.9.0 (2015-07-23)

* Support for caching removed. See . (@tarcieri)
* JRuby 9000 compatibility
2015-10-04 13:49:30 +00:00
taca
ab0a875b3b Update ruby-http to 0.8.12.
pkgsrc change: allow build on Ruby 2.2.

## 0.8.12 (2015-05-26)

* Fix `HTTP.timeout` API (was loosing previously defined options). (@ixti)


## 0.8.11 (2015-05-22)

* SNI support for HTTPS connections. See . (@tarcieri)
* Use "http.rb" in the User-Agent string. See . (@tarcieri)


## 0.8.10 (2015-05-14)

* Fix cookie headers generation. (@ixti)


## 0.8.9 (2015-05-11)

* Add cookies support. (@ixti)
* Enforce stringified body encoding. See . (@Connorhd)


## 0.8.8 (2015-05-09)

* Fix CONNECT header for proxies. See . (@Connorhd)


## 0.8.7 (2015-05-08)

* Fix `HTTP.timeout` API with options only given. (@ixti)


## 0.8.6 (2015-05-08)

* Reset global timeouts after the request finishes. See . (@zanker)


## 0.8.5 (2015-05-06)

* Add simple timeouts configuration API. See . (@ixti)
* Deprecate `Request#request_header`. Use `Request#headline` instead. (@ixti)


## 0.8.4 (2015-04-23)

* Deprecate `#default_headers` and `#default_headers=`. (@ixti)
* Deprecate chainable methods with `with_` prefix. See . (@ixti)
* Add support of HTTPS connections through proxy. See . (@Connorhd)


## 0.8.3 (2015-04-07)

* Fix request headline. See . (@ixti)
* Remove deprecated `Request#__method__`. (@ixti)


## 0.8.2 (2015-04-06)

* Fix Celluloid::IO compatibility. See . (@ixti)
* Cleanup obsolete code. (@zanker)


## 0.8.1 (2015-04-02)

* Add missing `require "resolv"`. See . (@ixti)
* Add block-form `#persistent` calls. See , . (@ixti)


## 0.8.0 (2015-04-01)

* Properly handle WaitWritable for SSL. See . (@zanker)
* Add support for non-ASCII URis. See . (@ixti)
* Add configurable connection timeouts. See , , . (@zanker)
* Refactor requests redirect following logic. See . (@ixti)
* Support for persistent HTTP connections (@zanker)
* Add caching support. See  and . (@Asmod4n, @pezra)
* Improve servers used in specs boot up. Issue was initially raised up
  by @olegkovalenko. See . (@ixti)
* Reflect FormData rename changes (FormData -> HTTP::FormData). (@ixti)
* `HTTP::Headers` now raises `HTTP::InvalidHeaderNameError` in case of
  (surprise) invalid HTTP header field name (e.g.`"Foo:Bar"`). See .
  (@ixti)
2015-06-11 16:51:04 +00:00
taca
79c74ad6c4 Update ruby-http to 0.7.3, security fix.
## 0.7.3 (2015-03-24)

* SECURITY FIX: http.rb failed to call the #post_connection_check method
  on SSL connections. This method implements hostname verification, and
  without it http.rb was vulnerable to MitM attacks. The problem was
  corrected by calling #post_connection_check (CVE-2015-1828)
2015-03-28 04:32:15 +00:00
taca
4a48a95323 Update ruby-http to 0.7.1.
## 0.7.1 (2015-01-03)

* Gemspec fixups
* Remove superfluous space in HTTP::Response inspection


## 0.7.0 (2015-01-02)

* Fix handling of EOF which caused infinite loop. See ,  and . (@mickm, @ixti)
* Drop Ruby 1.8.7 support. (@ixti)
* Fix default Host header value. See . (@ixti)
* Remove BearerToken authorization header. (@ixti)
* `#auth` sugar now accepts only string value of Authorization header.
  Calling `#auth(:basic, opts)` is deprecated, use `#basic_auth(opts)` instead.
  (@ixti)
* Fix handling of chunked responses without Content-Length header. (@ixti)
* Remove `HTTP::Request#method` and deprecate `HTTP::Request#__method__`
  (@sferik)
* Deprecate `HTTP::Response::STATUS_CODES`,
  use `HTTP::Response::Status::REASONS` instead (@ixti)
* Deprecate `HTTP::Response::SYMBOL_TO_STATUS_CODE` (@ixti)
* Deprecate `HTTP::Response#status_code` (@ixti)
* `HTTP::Response#status` now returns `HTTP::Response::Status`. (@ixti)
* `HTTP::Response#reason` and `HTTP::Response#code` are proxies them
  to corresponding methods of `HTTP::Response#status` (@ixti)
* Rename `HTTP.with_follow` to `HTTP.follow` and mark former one as being
  deprecated (@ixti)
* Delegate `HTTP::Response#readpartial` to `HTTP::Response::Body` (@ixti)


## 0.6.3 (2014-11-14)

* Backported EOF fix from master branch. See . (@ixti)


## 0.6.2 (2014-08-06)

* Fix default Host header value. See . (@ixti)
* Deprecate BearerToken authorization header. (@ixti)
* Fix handling of chunked responses without Content-Length header. (@ixti)
* Rename `HTTP.with_follow` to `HTTP.follow` and mark former one as being
  deprecated (@ixti)
2015-02-05 15:36:01 +00:00
tsutsui
a21bb37c33 Remove extra "@pkgdir lib/ruby/gems/2.0.0/build_info" line.
Something should be adjusted in "make print-PLIST" target?
2014-06-01 16:43:37 +00:00
tsutsui
e01ab80c22 Update ruby-http to 0.6.1.
Changes noted in Changes.md:

0.6.1 (2014-05-07)
------------------

* Fix request `Content-Length` calculation for Unicode (@challengeechallengee)
* Add `Response#flush` (@ixti)
* Fix `Response::Body#readpartial` default size (@hannesg, @ixti)
* Add missing `CRLF` for chunked bodies (@hannesg)
* Fix forgotten CGI require (@ixti)
* Improve README (@tarcieri)

0.6.0 (2014-04-04)
------------------

* Rename `HTTP::Request#method` to `HTTP::Request#verb` (@krainboltgreene)
* Add `HTTP::ResponseBody` class (@tarcieri)
* Change API of response on `HTTP::Client.request` and "friends" (`#get`, `#post`, etc) (@tarcieri)
* Add `HTTP::Response#readpartial` (@tarcieri)
* Add `HTTP::Headers` class (@ixti)
* Fix and improve following redirects (@ixti)
* Add `HTTP::Request#redirect` (@ixti)
* Add `HTTP::Response#content_type` (@ixti)
* Add `HTTP::Response#mime_type` (@ixti)
* Add `HTTP::Response#charset` (@ixti)
* Improve error message upon invalid URI scheme (@ixti)
* Consolidate errors under common `HTTP::Error` namespace (@ixti)
* Add easy way of adding Authorization header (@ixti)
* Fix proxy support (@hundredwatt)
* Fix and improve query params handing (@jwinter)
* Change API of custom MIME type parsers (@ixti)
* Remove `HTTP::Chainable#with_response` (@ixti)
* Remove `HTTP::Response::BodyDelegator` (@ixti)
* Remove `HTTP::Response#parsed_body` (@ixti)
* Bump up input buffer from 4K to 16K (@tarcieri)

(Note version 0.5.1 is a maintenance branch and released after 0.6.1)
2014-06-01 16:36:48 +00:00
obache
a90b5faf86 Import ruby-http-0.5.0 as www/ruby-http.
part of PR pkg/48447

The HTTP Gem is an easy-to-use client library for making requests from Ruby.
It uses a simple method chaining system for building requests, similar to
libraries like JQuery or Python's Requests.
2014-01-17 13:22:51 +00:00