(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).diff -r1.4 -r1.5 pkgsrc/www/R-gargle/Makefile
(mef)
@@ -1,28 +1,28 @@ | @@ -1,28 +1,28 @@ | |||
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 | |||
3 | R_PKGNAME= gargle | 3 | R_PKGNAME= gargle | |
4 | R_PKGVER= 1.4.0 | 4 | R_PKGVER= 1.5.0 | |
5 | CATEGORIES= www | 5 | CATEGORIES= www | |
6 | 6 | |||
7 | MAINTAINER= pkgsrc-users@NetBSD.org | 7 | MAINTAINER= pkgsrc-users@NetBSD.org | |
8 | COMMENT= Utilities for Working with Google APIs | 8 | COMMENT= Utilities for Working with Google APIs | |
9 | LICENSE= mit # + file LICENSE | 9 | LICENSE= mit # + file LICENSE | |
10 | 10 | |||
11 | DEPENDS+= R-cli>=3.0.0:../../devel/R-cli | 11 | DEPENDS+= R-cli>=3.0.0:../../devel/R-cli | |
12 | DEPENDS+= R-fs>=1.3.1:../../devel/R-fs | 12 | DEPENDS+= R-fs>=1.3.1:../../devel/R-fs | |
13 | DEPENDS+= R-glue>=1.3.0:../../devel/R-glue | 13 | DEPENDS+= R-glue>=1.3.0:../../devel/R-glue | |
14 | DEPENDS+= R-jsonlite>=1.8.0:../../textproc/R-jsonlite | 14 | DEPENDS+= R-jsonlite>=1.8.0:../../textproc/R-jsonlite | |
15 | DEPENDS+= R-httr>=1.4.0:../../www/R-httr | 15 | DEPENDS+= R-httr>=1.4.0:../../www/R-httr | |
16 | DEPENDS+= R-lifecycle-[0-9]*:../../devel/R-lifecycle | 16 | DEPENDS+= R-lifecycle-[0-9]*:../../devel/R-lifecycle | |
17 | DEPENDS+= R-rappdirs>=0.3.3:../../devel/R-rappdirs | 17 | DEPENDS+= R-rappdirs>=0.3.3:../../devel/R-rappdirs | |
18 | DEPENDS+= R-rlang>=0.4.9:../../devel/R-rlang | 18 | DEPENDS+= R-rlang>=0.4.9:../../devel/R-rlang | |
19 | DEPENDS+= R-rstudioapi>=0.13:../../math/R-rstudioapi | 19 | DEPENDS+= R-rstudioapi>=0.13:../../math/R-rstudioapi | |
20 | DEPENDS+= R-withr>=2.4.2:../../devel/R-withr | 20 | DEPENDS+= R-withr>=2.4.2:../../devel/R-withr | |
21 | 21 | |||
22 | # Packages suggested but not available: | 22 | # Packages suggested but not available: | |
23 | # 'aws.ec2metadata', 'aws.signature', 'mockr', 'sodium' | 23 | # 'aws.ec2metadata', 'aws.signature', 'mockr', 'sodium' | |
24 | 24 | |||
25 | USE_LANGUAGES= # none | 25 | USE_LANGUAGES= # none | |
26 | 26 | |||
27 | .include "../../math/R/Makefile.extension" | 27 | .include "../../math/R/Makefile.extension" | |
28 | .include "../../mk/bsd.pkg.mk" | 28 | .include "../../mk/bsd.pkg.mk" |
@@ -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 | |||
3 | BLAKE2s (R/gargle_1.4.0.tar.gz) = a7a7d4e61c0422952fd973abcaf64025f6e27ce78e23de72d4c9fd8d3d13ba51 | 3 | BLAKE2s (R/gargle_1.5.0.tar.gz) = efbd7712d3e4f9833025f848f6f09aca3462aae58a5d515a6fdd8fae579a56eb | |
4 | SHA512 (R/gargle_1.4.0.tar.gz) = 27c1a956e5c64df11c738c5848a76684c4320823a23c9df1de39414f5be59fe0f035ce2219885781cf63ce60f0ff4dc7a6cda6e427d0fbaec6930754df8f228e | 4 | SHA512 (R/gargle_1.5.0.tar.gz) = 63c49186bb96da76bcdcc38a5bb034d26b7ba56c103fb8cbc8c6217559136cde62f8b02aa8af3f6186cf54de5cafc1a028e78ff5682c5c82e062208bfc0844a6 | |
5 | Size (R/gargle_1.4.0.tar.gz) = 597755 bytes | 5 | Size (R/gargle_1.5.0.tar.gz) = 626311 bytes |