pkgsrc/www/ruby-httpclient/Makefile

22 lines
430 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.4 2011/05/27 07:26:52 obache Exp $
#
DISTNAME= httpclient-2.2.0.2
CATEGORIES= www
MAINTAINER= obache@NetBSD.org
HOMEPAGE= https://github.com/nahi/httpclient
COMMENT= HTTP accessing library for Ruby
LICENSE= ruby-license
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= # none
# error with ruby18
RUBY_BUILD_RDOC= no
RUBY_BUILD_RI= no
Update ruby-httpclient to 2.2.0. switch to use gem. = Changes in 2.2.0 = Apr 8, 2011 - version 2.2.0 * Features * Add HTTPClient#cookies as an alias of #cookie_manager.cookies. * Add res.cookies method. It returns parsed cookie in response header. It's different from client.cookie_manager.cookies. Manager keeps persistent cookies in it. * Add res.headers method which returns a Hash of headers. Hash key and value are both String. Each key has a single value so you can't extract exact value when a message has multiple headers like 'Set-Cookie'. Use header['Set-Cookie'] for that purpose. (It returns an Array always) * Allow keyword style argument for HTTPClient#get, post, etc. Introduced keywords are: :body, :query, and :header. You can write HTTPClient.get(uri, :header => {'X-custom' => '1'}) instead of; HTTPClient.get(uri, nil, {'X-custom' => '1'}) * Add new keyword argument :follow_redirect to get/post. Now you can follow redirection response with passing :follow_redirect => true. * [INCOMPAT] Rename HTTPClient::HTTP::Message#body to #http_body, then add #body as an alias of #content. It's incompatible change though users rarely depends on this method. (I've never seen such a case) Users who are using req.body and/or res.body should follow this change. (req.http_body and res.http_body) * Bug fixes * Reenable keep-alive for chunked response. This feature was disabled by c206b687952e1ad3e20c20e69bdbd1a9cb38609e at 2008-12-09. I should have written a test for keep-alive. Now I added it. Thanks Takahiro Nishimura(@dr_taka_n) for finding this bug. = Changes in 2.1.7 = Mar 22, 2011 - version 2.1.7 * Features * Add MD5-sess auth support. Thanks to wimm-dking. (#47) * Add SNI support. (Server Name Indication of HTTPS connection) (#49) * Add GSSAPI auth support using gssapi gem. Thanks to zenchild. (#50) * NTLM logon to exchange Web Services. [experimental] Thanks to curzonj and mccraigmccraig (#52) * Add HTTPOnly cookie support. Thanks to nbrosnahan. (#55) * Add HTTPClient#socket_local for specifying local binding hostname and port of TCP socket. Thanks to icblenke.
2011-04-15 13:06:51 +02:00
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"