Sat Jun 17 12:17:14 2023 UTC ()
(www/R-gargle) Updated 1.4.0 to 1.5.0

# gargle 1.5.0

* gargle's existing unexported `secret_*()` functions are deprecated, in favor
  of new, exported `secret_*()` functions that are built on or inlined from
  httr2. The `vignette("managing-tokens-securely")` is updated to reflect the
  new, recommended strategy for encrypting secrets.
  - `secret_encrypt_json()` / `secret_decrypt_json()` are new gargle-specific
    functions.
  - `secret_write_rds()` / `secret_read_rds()`, `secret_make_key()`, and
    `secret_had_key()` are basically copies of their httr2 counterparts.
  - Legacy functions to move away from: `secret_pw_name()`, `secret_pw_gen()`,
    `secret_pw_exists()`, `secret_pw_get()`, `secret_can_decypt()`,
    `secret_read()`, `secret_write()`.
  - The new approach makes it much easier to use gargle functions to encrypt and
    decrypt credentials in a project that is *not* necessarily an R package.

* The transition from OAuth "app" to OAuth "client" is fully enacted now. This
  process tarted in v1.3.0, when the `"gargle_oauth_client"` class was
  introduced, to support the new pseudo-OOB auth flow. The deprecations are
  implemented to preserve backwards compatibility for some time. In this
  release, function, argument, and field names are all updated to the "client"
  terminology:

  - `init_AuthState(client =)` instead of `init_AuthState(app =)`
  - `AuthState$client` instead of `AuthState$app`
  - `AuthState$set_client()` instead of `AuthState$set_app()`
  - `gargle2.0_token(client =)` instead of `gargle2.0_token(app =)`
  - `credentials_user_oauth2(client =)` instead of
    `credentials_user_oauth2(app =)`

  A new `vignette("oauth-client-not-app")` explains how a wrapper package should
  adapt.

* When the `"gargle_verbosity"` option is set to `"debug"`, there are
  more debugging messages around user credentials. Specifically, more
  information is available on the email, OAuth client, and scopes,
  with the goal of better understanding why a cached token is (or is
  not) being used.

* `check_is_service_account()` is a new function for use in wrapper
  packages to throw a more informative error when a user provides JSON
  for an OAuth client to an argument that is expecting JSON for a
  service account.

* `response_process()` has improved handling of responses that
  represent an HTTP error with HTML content (as opposed to the
  expected and preferred JSON) (#254).

* `response_process(call = caller_env())` is a new argument that is
  passed along to various helpers, which can improve error reporting
  for user-facing functions that call `response_process()` (#255).


(mef)
diff -r1.4 -r1.5 pkgsrc/www/R-gargle/Makefile
diff -r1.2 -r1.3 pkgsrc/www/R-gargle/distinfo

cvs diff -r1.4 -r1.5 pkgsrc/www/R-gargle/Makefile (expand / switch to unified diff)

--- pkgsrc/www/R-gargle/Makefile 2023/06/15 07:03:56 1.4
+++ pkgsrc/www/R-gargle/Makefile 2023/06/17 12:17:14 1.5
@@ -1,17 +1,17 @@ @@ -1,17 +1,17 @@
1# $NetBSD: Makefile,v 1.4 2023/06/15 07:03:56 mef Exp $ 1# $NetBSD: Makefile,v 1.5 2023/06/17 12:17:14 mef Exp $
2 2
3R_PKGNAME= gargle 3R_PKGNAME= gargle
4R_PKGVER= 1.4.0 4R_PKGVER= 1.5.0
5CATEGORIES= www 5CATEGORIES= www
6 6
7MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
8COMMENT= Utilities for Working with Google APIs 8COMMENT= Utilities for Working with Google APIs
9LICENSE= mit # + file LICENSE 9LICENSE= mit # + file LICENSE
10 10
11DEPENDS+= R-cli>=3.0.0:../../devel/R-cli 11DEPENDS+= R-cli>=3.0.0:../../devel/R-cli
12DEPENDS+= R-fs>=1.3.1:../../devel/R-fs 12DEPENDS+= R-fs>=1.3.1:../../devel/R-fs
13DEPENDS+= R-glue>=1.3.0:../../devel/R-glue 13DEPENDS+= R-glue>=1.3.0:../../devel/R-glue
14DEPENDS+= R-jsonlite>=1.8.0:../../textproc/R-jsonlite 14DEPENDS+= R-jsonlite>=1.8.0:../../textproc/R-jsonlite
15DEPENDS+= R-httr>=1.4.0:../../www/R-httr 15DEPENDS+= R-httr>=1.4.0:../../www/R-httr
16DEPENDS+= R-lifecycle-[0-9]*:../../devel/R-lifecycle 16DEPENDS+= R-lifecycle-[0-9]*:../../devel/R-lifecycle
17DEPENDS+= R-rappdirs>=0.3.3:../../devel/R-rappdirs 17DEPENDS+= R-rappdirs>=0.3.3:../../devel/R-rappdirs

cvs diff -r1.2 -r1.3 pkgsrc/www/R-gargle/distinfo (expand / switch to unified diff)

--- pkgsrc/www/R-gargle/distinfo 2023/06/11 15:15:44 1.2
+++ pkgsrc/www/R-gargle/distinfo 2023/06/17 12:17:14 1.3
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.2 2023/06/11 15:15:44 mef Exp $ 1$NetBSD: distinfo,v 1.3 2023/06/17 12:17:14 mef Exp $
2 2
3BLAKE2s (R/gargle_1.4.0.tar.gz) = a7a7d4e61c0422952fd973abcaf64025f6e27ce78e23de72d4c9fd8d3d13ba51 3BLAKE2s (R/gargle_1.5.0.tar.gz) = efbd7712d3e4f9833025f848f6f09aca3462aae58a5d515a6fdd8fae579a56eb
4SHA512 (R/gargle_1.4.0.tar.gz) = 27c1a956e5c64df11c738c5848a76684c4320823a23c9df1de39414f5be59fe0f035ce2219885781cf63ce60f0ff4dc7a6cda6e427d0fbaec6930754df8f228e 4SHA512 (R/gargle_1.5.0.tar.gz) = 63c49186bb96da76bcdcc38a5bb034d26b7ba56c103fb8cbc8c6217559136cde62f8b02aa8af3f6186cf54de5cafc1a028e78ff5682c5c82e062208bfc0844a6
5Size (R/gargle_1.4.0.tar.gz) = 597755 bytes 5Size (R/gargle_1.5.0.tar.gz) = 626311 bytes