Fri Mar 20 17:48:26 2020 UTC ()
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)


(taca)
diff -r1.8 -r1.9 pkgsrc/www/ruby-rest-client/Makefile
diff -r1.3 -r1.4 pkgsrc/www/ruby-rest-client/PLIST
diff -r1.7 -r1.8 pkgsrc/www/ruby-rest-client/distinfo

cvs diff -r1.8 -r1.9 pkgsrc/www/ruby-rest-client/Makefile (expand / switch to unified diff)

--- pkgsrc/www/ruby-rest-client/Makefile 2019/11/04 22:10:14 1.8
+++ pkgsrc/www/ruby-rest-client/Makefile 2020/03/20 17:48:25 1.9
@@ -1,19 +1,21 @@ @@ -1,19 +1,21 @@
1# $NetBSD: Makefile,v 1.8 2019/11/04 22:10:14 rillig Exp $ 1# $NetBSD: Makefile,v 1.9 2020/03/20 17:48:25 taca Exp $
2 2
3DISTNAME= rest-client-2.0.2 3DISTNAME= rest-client-2.1.0
4CATEGORIES= www 4CATEGORIES= www
5 5
6MAINTAINER= pkgsrc-users@NetBSD.org 6MAINTAINER= pkgsrc-users@NetBSD.org
7HOMEPAGE= https://github.com/rest-client/rest-client 7HOMEPAGE= https://github.com/rest-client/rest-client
8COMMENT= Simple HTTP and REST client for Ruby inspired by Sinatra 8COMMENT= Simple HTTP and REST client for Ruby inspired by Sinatra
9LICENSE= mit 9LICENSE= mit
10 10
11DEPENDS+= ${RUBY_PKGPREFIX}-readline>=${RUBY_VERSION}:../../devel/ruby-readline 11DEPENDS+= ${RUBY_PKGPREFIX}-http-accept>=1.0.2:../../www/ruby-http-cookie
 12DEPENDS+= ${RUBY_PKGPREFIX}-http-cookie>=1.0.2<2:../../www/ruby-http-cookie
12DEPENDS+= ${RUBY_PKGPREFIX}-mime-types>=3.0<4.0:../../mail/ruby-mime-types 13DEPENDS+= ${RUBY_PKGPREFIX}-mime-types>=3.0<4.0:../../mail/ruby-mime-types
13DEPENDS+= ${RUBY_PKGPREFIX}-netrc>=0.8<1:../../net/ruby-netrc 14DEPENDS+= ${RUBY_PKGPREFIX}-netrc>=0.8<1:../../net/ruby-netrc
14DEPENDS+= ${RUBY_PKGPREFIX}-http-cookie>=1.0.2<2:../../www/ruby-http-cookie 
15 15
16RUBYGEM_OPTIONS+= --format-executable 16RUBYGEM_OPTIONS+= --format-executable
 17OVERRIDE_GEMSPEC+= http-accept>=1.0.2
 18
17 19
18.include "../../lang/ruby/gem.mk" 20.include "../../lang/ruby/gem.mk"
19.include "../../mk/bsd.pkg.mk" 21.include "../../mk/bsd.pkg.mk"

cvs diff -r1.3 -r1.4 pkgsrc/www/ruby-rest-client/PLIST (expand / switch to unified diff)

--- pkgsrc/www/ruby-rest-client/PLIST 2016/10/18 16:08:35 1.3
+++ pkgsrc/www/ruby-rest-client/PLIST 2020/03/20 17:48:25 1.4
@@ -1,18 +1,20 @@ @@ -1,18 +1,20 @@
1@comment $NetBSD: PLIST,v 1.3 2016/10/18 16:08:35 taca Exp $ 1@comment $NetBSD: PLIST,v 1.4 2020/03/20 17:48:25 taca Exp $
2bin/restclient${RUBY_SUFFIX} 2bin/restclient${RUBY_SUFFIX}
3${GEM_HOME}/cache/${GEM_NAME}.gem 3${GEM_HOME}/cache/${GEM_NAME}.gem
4${GEM_LIBDIR}/.gitignore 4${GEM_LIBDIR}/.gitignore
 5${GEM_LIBDIR}/.mailmap
5${GEM_LIBDIR}/.rspec 6${GEM_LIBDIR}/.rspec
 7${GEM_LIBDIR}/.rubocop
6${GEM_LIBDIR}/.rubocop-disables.yml 8${GEM_LIBDIR}/.rubocop-disables.yml
7${GEM_LIBDIR}/.rubocop.yml 9${GEM_LIBDIR}/.rubocop.yml
8${GEM_LIBDIR}/.travis.yml 10${GEM_LIBDIR}/.travis.yml
9${GEM_LIBDIR}/AUTHORS 11${GEM_LIBDIR}/AUTHORS
10${GEM_LIBDIR}/Gemfile 12${GEM_LIBDIR}/Gemfile
11${GEM_LIBDIR}/LICENSE 13${GEM_LIBDIR}/LICENSE
12${GEM_LIBDIR}/README.md 14${GEM_LIBDIR}/README.md
13${GEM_LIBDIR}/Rakefile 15${GEM_LIBDIR}/Rakefile
14${GEM_LIBDIR}/bin/restclient 16${GEM_LIBDIR}/bin/restclient
15${GEM_LIBDIR}/history.md 17${GEM_LIBDIR}/history.md
16${GEM_LIBDIR}/lib/rest-client.rb 18${GEM_LIBDIR}/lib/rest-client.rb
17${GEM_LIBDIR}/lib/rest_client.rb 19${GEM_LIBDIR}/lib/rest_client.rb
18${GEM_LIBDIR}/lib/restclient.rb 20${GEM_LIBDIR}/lib/restclient.rb
@@ -21,44 +23,44 @@ ${GEM_LIBDIR}/lib/restclient/exceptions. @@ -21,44 +23,44 @@ ${GEM_LIBDIR}/lib/restclient/exceptions.
21${GEM_LIBDIR}/lib/restclient/params_array.rb 23${GEM_LIBDIR}/lib/restclient/params_array.rb
22${GEM_LIBDIR}/lib/restclient/payload.rb 24${GEM_LIBDIR}/lib/restclient/payload.rb
23${GEM_LIBDIR}/lib/restclient/platform.rb 25${GEM_LIBDIR}/lib/restclient/platform.rb
24${GEM_LIBDIR}/lib/restclient/raw_response.rb 26${GEM_LIBDIR}/lib/restclient/raw_response.rb
25${GEM_LIBDIR}/lib/restclient/request.rb 27${GEM_LIBDIR}/lib/restclient/request.rb
26${GEM_LIBDIR}/lib/restclient/resource.rb 28${GEM_LIBDIR}/lib/restclient/resource.rb
27${GEM_LIBDIR}/lib/restclient/response.rb 29${GEM_LIBDIR}/lib/restclient/response.rb
28${GEM_LIBDIR}/lib/restclient/utils.rb 30${GEM_LIBDIR}/lib/restclient/utils.rb
29${GEM_LIBDIR}/lib/restclient/version.rb 31${GEM_LIBDIR}/lib/restclient/version.rb
30${GEM_LIBDIR}/lib/restclient/windows.rb 32${GEM_LIBDIR}/lib/restclient/windows.rb
31${GEM_LIBDIR}/lib/restclient/windows/root_certs.rb 33${GEM_LIBDIR}/lib/restclient/windows/root_certs.rb
32${GEM_LIBDIR}/rest-client.gemspec 34${GEM_LIBDIR}/rest-client.gemspec
33${GEM_LIBDIR}/rest-client.windows.gemspec 35${GEM_LIBDIR}/rest-client.windows.gemspec
 36${GEM_LIBDIR}/spec/ISS.jpg
34${GEM_LIBDIR}/spec/helpers.rb 37${GEM_LIBDIR}/spec/helpers.rb
35${GEM_LIBDIR}/spec/integration/_lib.rb 38${GEM_LIBDIR}/spec/integration/_lib.rb
36${GEM_LIBDIR}/spec/integration/capath_digicert/244b5494.0 39${GEM_LIBDIR}/spec/integration/capath_digicert/3513523f.0
37${GEM_LIBDIR}/spec/integration/capath_digicert/81b9768f.0 40${GEM_LIBDIR}/spec/integration/capath_digicert/399e7759.0
38${GEM_LIBDIR}/spec/integration/capath_digicert/README 41${GEM_LIBDIR}/spec/integration/capath_digicert/README
39${GEM_LIBDIR}/spec/integration/capath_digicert/digicert.crt 42${GEM_LIBDIR}/spec/integration/capath_digicert/digicert.crt
40${GEM_LIBDIR}/spec/integration/capath_verisign/415660c1.0 43${GEM_LIBDIR}/spec/integration/capath_verisign/415660c1.0
41${GEM_LIBDIR}/spec/integration/capath_verisign/7651b327.0 44${GEM_LIBDIR}/spec/integration/capath_verisign/7651b327.0
42${GEM_LIBDIR}/spec/integration/capath_verisign/README 45${GEM_LIBDIR}/spec/integration/capath_verisign/README
43${GEM_LIBDIR}/spec/integration/capath_verisign/verisign.crt 46${GEM_LIBDIR}/spec/integration/capath_verisign/verisign.crt
44${GEM_LIBDIR}/spec/integration/certs/digicert.crt 47${GEM_LIBDIR}/spec/integration/certs/digicert.crt
45${GEM_LIBDIR}/spec/integration/certs/verisign.crt 48${GEM_LIBDIR}/spec/integration/certs/verisign.crt
46${GEM_LIBDIR}/spec/integration/httpbin_spec.rb 49${GEM_LIBDIR}/spec/integration/httpbin_spec.rb
47${GEM_LIBDIR}/spec/integration/integration_spec.rb 50${GEM_LIBDIR}/spec/integration/integration_spec.rb
48${GEM_LIBDIR}/spec/integration/request_spec.rb 51${GEM_LIBDIR}/spec/integration/request_spec.rb
49${GEM_LIBDIR}/spec/spec_helper.rb 52${GEM_LIBDIR}/spec/spec_helper.rb
50${GEM_LIBDIR}/spec/unit/_lib.rb 53${GEM_LIBDIR}/spec/unit/_lib.rb
51${GEM_LIBDIR}/spec/unit/abstract_response_spec.rb 54${GEM_LIBDIR}/spec/unit/abstract_response_spec.rb
52${GEM_LIBDIR}/spec/unit/exceptions_spec.rb 55${GEM_LIBDIR}/spec/unit/exceptions_spec.rb
53${GEM_LIBDIR}/spec/unit/master_shake.jpg 
54${GEM_LIBDIR}/spec/unit/params_array_spec.rb 56${GEM_LIBDIR}/spec/unit/params_array_spec.rb
55${GEM_LIBDIR}/spec/unit/payload_spec.rb 57${GEM_LIBDIR}/spec/unit/payload_spec.rb
56${GEM_LIBDIR}/spec/unit/raw_response_spec.rb 58${GEM_LIBDIR}/spec/unit/raw_response_spec.rb
57${GEM_LIBDIR}/spec/unit/request2_spec.rb 59${GEM_LIBDIR}/spec/unit/request2_spec.rb
58${GEM_LIBDIR}/spec/unit/request_spec.rb 60${GEM_LIBDIR}/spec/unit/request_spec.rb
59${GEM_LIBDIR}/spec/unit/resource_spec.rb 61${GEM_LIBDIR}/spec/unit/resource_spec.rb
60${GEM_LIBDIR}/spec/unit/response_spec.rb 62${GEM_LIBDIR}/spec/unit/response_spec.rb
61${GEM_LIBDIR}/spec/unit/restclient_spec.rb 63${GEM_LIBDIR}/spec/unit/restclient_spec.rb
62${GEM_LIBDIR}/spec/unit/utils_spec.rb 64${GEM_LIBDIR}/spec/unit/utils_spec.rb
63${GEM_LIBDIR}/spec/unit/windows/root_certs_spec.rb 65${GEM_LIBDIR}/spec/unit/windows/root_certs_spec.rb
64${GEM_HOME}/specifications/${GEM_NAME}.gemspec 66${GEM_HOME}/specifications/${GEM_NAME}.gemspec

cvs diff -r1.7 -r1.8 pkgsrc/www/ruby-rest-client/distinfo (expand / switch to unified diff)

--- pkgsrc/www/ruby-rest-client/distinfo 2017/06/05 15:35:29 1.7
+++ pkgsrc/www/ruby-rest-client/distinfo 2020/03/20 17:48:25 1.8
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.7 2017/06/05 15:35:29 taca Exp $ 1$NetBSD: distinfo,v 1.8 2020/03/20 17:48:25 taca Exp $
2 2
3SHA1 (rest-client-2.0.2.gem) = 0ebc3f0b1c1097b6f3baea7d8d50103ea694bb0b 3SHA1 (rest-client-2.1.0.gem) = 169e6f1d6a55ae58e066ec37ec899eef14fde9a4
4RMD160 (rest-client-2.0.2.gem) = 1d9f730a20ab3ae8d939e7bdf2bc733e711ba925 4RMD160 (rest-client-2.1.0.gem) = f4f04bfe2e2b16379a8022ea18ce546e74ab0a8c
5SHA512 (rest-client-2.0.2.gem) = c132518a9ff0029e79826cf90de442b01f6f422b464e04914947c2f757cb7046b96c915f0248a82172f7980519fa9fe5f7bcb9dcfe28889abc62dbb48cee1030 5SHA512 (rest-client-2.1.0.gem) = fe5d44409dfe607566b4c0324441d9a3981776699027bfbc92283b1cd425f204211fc872593cb0784e0ca7a5e061e98793540eedfeb1891d9a8afd53a5ce01de
6Size (rest-client-2.0.2.gem) = 149504 bytes 6Size (rest-client-2.1.0.gem) = 147456 bytes