pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ruby-rest-client www/ruby-rest-client: update to 2...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cf6911b43123
branches:  trunk
changeset: 425288:cf6911b43123
user:      taca <taca%pkgsrc.org@localhost>
date:      Fri Mar 20 17:48:25 2020 +0000

description:
www/ruby-rest-client: update to 2.1.0

Update to ruby-rest-client to 2.1.0.


# 2.1.0

- Add a dependency on http-accept for parsing Content-Type charset headers.
  This works around a bad memory leak introduced in MRI Ruby 2.4.0 and fixed in
  Ruby 2.4.2. (#615)
- Use mime/types/columnar from mime-types 2.6.1+, which is leaner in memory
  usage than the older storage model of mime-types. (#393)
- Add `:log` option to individual requests. This allows users to set a log on a
  per-request / per-resource basis instead of the kludgy global log. (#538)
- Log request duration by tracking request start and end times. Make
  `log_response` a method on the Response object, and ensure the `size` method
  works on RawResponse objects. (#126)
  - `# => 200 OK | text/html 1270 bytes, 0.08s`
  - Also add a new `:stream_log_percent` parameter, which is applicable only
    when `:raw_response => true` is set. This causes progress logs to be
    emitted only on every N% (default 10%) of the total download size rather
    than on every chunk.
- Drop custom handling of compression and use built-in Net::HTTP support for
  supported Content-Encodings like gzip and deflate. Don't set any explicit
  `Accept-Encoding` header, rely instead on Net::HTTP defaults. (#597)
  - Note: this changes behavior for compressed responses when using
    `:raw_response => true`. Previously the raw response would not have been
    uncompressed by rest-client, but now Net::HTTP will uncompress it.
- The previous fix to avoid having Netrc username/password override an
  Authorization header was case-sensitive and incomplete. Fix this by
  respecting existing Authorization headers, regardless of letter case. (#550)
- Handle ParamsArray payloads. Previously, rest-client would silently drop a
  ParamsArray passed as the payload. Instead, automatically use
  Payload::Multipart if the ParamsArray contains a file handle, or use
  Payload::UrlEncoded if it doesn't. (#508)
- Gracefully handle Payload objects (Payload::Base or subclasses) that are
  passed as a payload argument. Previously, `Payload.generate` would wrap a
  Payload object in Payload::Streamed, creating a pointlessly nested payload.
  Also add a `closed?` method to Payload objects, and don't error in
  `short_inspect` if `size` returns nil. (#603)
- Test with an image in the public domain to avoid licensing complexity. (#607)

diffstat:

 www/ruby-rest-client/Makefile |  10 ++++++----
 www/ruby-rest-client/PLIST    |  10 ++++++----
 www/ruby-rest-client/distinfo |  10 +++++-----
 3 files changed, 17 insertions(+), 13 deletions(-)

diffs (81 lines):

diff -r 307d2e51d6f2 -r cf6911b43123 www/ruby-rest-client/Makefile
--- a/www/ruby-rest-client/Makefile     Fri Mar 20 17:46:21 2020 +0000
+++ b/www/ruby-rest-client/Makefile     Fri Mar 20 17:48:25 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2019/11/04 22:10:14 rillig Exp $
+# $NetBSD: Makefile,v 1.9 2020/03/20 17:48:25 taca Exp $
 
-DISTNAME=      rest-client-2.0.2
+DISTNAME=      rest-client-2.1.0
 CATEGORIES=    www
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -8,12 +8,14 @@
 COMMENT=       Simple HTTP and REST client for Ruby inspired by Sinatra
 LICENSE=       mit
 
-DEPENDS+=      ${RUBY_PKGPREFIX}-readline>=${RUBY_VERSION}:../../devel/ruby-readline
+DEPENDS+=      ${RUBY_PKGPREFIX}-http-accept>=1.0.2:../../www/ruby-http-cookie
+DEPENDS+=      ${RUBY_PKGPREFIX}-http-cookie>=1.0.2<2:../../www/ruby-http-cookie
 DEPENDS+=      ${RUBY_PKGPREFIX}-mime-types>=3.0<4.0:../../mail/ruby-mime-types
 DEPENDS+=      ${RUBY_PKGPREFIX}-netrc>=0.8<1:../../net/ruby-netrc
-DEPENDS+=      ${RUBY_PKGPREFIX}-http-cookie>=1.0.2<2:../../www/ruby-http-cookie
 
 RUBYGEM_OPTIONS+=      --format-executable
+OVERRIDE_GEMSPEC+=     http-accept>=1.0.2
+
 
 .include "../../lang/ruby/gem.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 307d2e51d6f2 -r cf6911b43123 www/ruby-rest-client/PLIST
--- a/www/ruby-rest-client/PLIST        Fri Mar 20 17:46:21 2020 +0000
+++ b/www/ruby-rest-client/PLIST        Fri Mar 20 17:48:25 2020 +0000
@@ -1,8 +1,10 @@
-@comment $NetBSD: PLIST,v 1.3 2016/10/18 16:08:35 taca Exp $
+@comment $NetBSD: PLIST,v 1.4 2020/03/20 17:48:25 taca Exp $
 bin/restclient${RUBY_SUFFIX}
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/.gitignore
+${GEM_LIBDIR}/.mailmap
 ${GEM_LIBDIR}/.rspec
+${GEM_LIBDIR}/.rubocop
 ${GEM_LIBDIR}/.rubocop-disables.yml
 ${GEM_LIBDIR}/.rubocop.yml
 ${GEM_LIBDIR}/.travis.yml
@@ -31,10 +33,11 @@
 ${GEM_LIBDIR}/lib/restclient/windows/root_certs.rb
 ${GEM_LIBDIR}/rest-client.gemspec
 ${GEM_LIBDIR}/rest-client.windows.gemspec
+${GEM_LIBDIR}/spec/ISS.jpg
 ${GEM_LIBDIR}/spec/helpers.rb
 ${GEM_LIBDIR}/spec/integration/_lib.rb
-${GEM_LIBDIR}/spec/integration/capath_digicert/244b5494.0
-${GEM_LIBDIR}/spec/integration/capath_digicert/81b9768f.0
+${GEM_LIBDIR}/spec/integration/capath_digicert/3513523f.0
+${GEM_LIBDIR}/spec/integration/capath_digicert/399e7759.0
 ${GEM_LIBDIR}/spec/integration/capath_digicert/README
 ${GEM_LIBDIR}/spec/integration/capath_digicert/digicert.crt
 ${GEM_LIBDIR}/spec/integration/capath_verisign/415660c1.0
@@ -50,7 +53,6 @@
 ${GEM_LIBDIR}/spec/unit/_lib.rb
 ${GEM_LIBDIR}/spec/unit/abstract_response_spec.rb
 ${GEM_LIBDIR}/spec/unit/exceptions_spec.rb
-${GEM_LIBDIR}/spec/unit/master_shake.jpg
 ${GEM_LIBDIR}/spec/unit/params_array_spec.rb
 ${GEM_LIBDIR}/spec/unit/payload_spec.rb
 ${GEM_LIBDIR}/spec/unit/raw_response_spec.rb
diff -r 307d2e51d6f2 -r cf6911b43123 www/ruby-rest-client/distinfo
--- a/www/ruby-rest-client/distinfo     Fri Mar 20 17:46:21 2020 +0000
+++ b/www/ruby-rest-client/distinfo     Fri Mar 20 17:48:25 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.7 2017/06/05 15:35:29 taca Exp $
+$NetBSD: distinfo,v 1.8 2020/03/20 17:48:25 taca Exp $
 
-SHA1 (rest-client-2.0.2.gem) = 0ebc3f0b1c1097b6f3baea7d8d50103ea694bb0b
-RMD160 (rest-client-2.0.2.gem) = 1d9f730a20ab3ae8d939e7bdf2bc733e711ba925
-SHA512 (rest-client-2.0.2.gem) = c132518a9ff0029e79826cf90de442b01f6f422b464e04914947c2f757cb7046b96c915f0248a82172f7980519fa9fe5f7bcb9dcfe28889abc62dbb48cee1030
-Size (rest-client-2.0.2.gem) = 149504 bytes
+SHA1 (rest-client-2.1.0.gem) = 169e6f1d6a55ae58e066ec37ec899eef14fde9a4
+RMD160 (rest-client-2.1.0.gem) = f4f04bfe2e2b16379a8022ea18ce546e74ab0a8c
+SHA512 (rest-client-2.1.0.gem) = fe5d44409dfe607566b4c0324441d9a3981776699027bfbc92283b1cd425f204211fc872593cb0784e0ca7a5e061e98793540eedfeb1891d9a8afd53a5ce01de
+Size (rest-client-2.1.0.gem) = 147456 bytes



Home | Main Index | Thread Index | Old Index