Skip to content

Commit 96f8242

Browse files
committed
udpate news, cran comments, and codemeta.json for next cran push
1 parent b99e0d3 commit 96f8242

File tree

4 files changed

+81
-17
lines changed

4 files changed

+81
-17
lines changed

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Description: Record test suite 'HTTP' requests and replays them during
88
real 'HTTP' responses on disk in 'cassettes'. Subsequent 'HTTP' requests
99
matching any previous requests in the same 'cassette' use a cached
1010
'HTTP' response.
11-
Version: 0.4.2.94
11+
Version: 0.5.0
1212
Authors@R: c(person("Scott", "Chamberlain", role = c("aut", "cre"),
1313
email = "sckott@protonmail.com",
1414
comment = c(ORCID="0000-0003-1444-9135")),
@@ -43,7 +43,6 @@ Suggests:
4343
cli,
4444
curl
4545
RoxygenNote: 7.0.2
46-
Remotes: ropensci/webmockr
4746
X-schema.org-applicationCategory: Web
4847
X-schema.org-keywords: http, https, API, web-services, curl, mock, mocking, http-mocking, testing, testing-tools, tdd
4948
X-schema.org-isPartOf: https://ropensci.org

NEWS.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
vcr 0.5.0
2+
=========
3+
4+
### NEW FEATURES
5+
6+
* new function `check_cassette_names` to use in your `helper-pkgname.R` file in your test suite; it checks for duplicated cassette names only. Any use of `insert_cassette()` (thereby, any use of `use_cassette()`) uses a revamped version of an internal fxn that checks for an improved list of potential problems in cassette names (#116) (#159)
7+
* `use_vcr()` adds gitignore cassette diffs via the addition of a `gitattributes` file (#109)
8+
* `vcr_configure()` overhaul: function no longer has each setting as a parameter; rather, it has an ellipsis (`...`), and internally we check parameters passed in. The documentation (`?vcr_configure`) lists the details for each available parameter. Importantly, each call to `vcr_configure()` now only changes the vcr settings for parameters passed in to the function; to reset all vcr settings, run `vcr_configure_reset()` (#136) (#141)
9+
* `insert_cassette()` and `use_cassette()` now inherit any vcr settings set by `vcr_configure()`; this wasn't happening consistently before. Most default parameter values in `insert_cassette/use_cassette` set to `NULL`, in which case they inherit from whatever values are set by `vcr_configure()`, but can be overriden (#151) (#153)
10+
11+
### MINOR IMPROVEMENTS
12+
13+
* define _serialize_, _cassette_, and _fixture_ in the README (#138) (#139)
14+
* fix `filter_sensitive_data` parameter description in `vcr_configure` docs (#129)
15+
* move higher up in README a brief description of what this package does (#140)
16+
* import `utils::getParseData` so its in namespace (#142)
17+
* better cleanup of some stray test files left on disk (#148)
18+
* `use_vcr()` no longer uses `context()` in example test file (#144)
19+
* improved documentation of functions and environment variables for turning vcr on and off and when to use each of them - documentation mostly in the HTTP Testing book at https://books.ropensci.org/http-testing/lightswitch.html (#131)
20+
* fix a `use_cassette` test (#133)
21+
* Add assertions to `vcr_configure()` when parameters are set by the user to fail early (#156)
22+
23+
### BUG FIXES
24+
25+
* fix for handling of http requests that request image data AND do not write that data to disk; in addition, fix usage of `preserve_exact_body_bytes` when image data is in the response body (#128) thanks @Rekyt
26+
* vcr now should handle request bodies correctly on POST requests (#143)
27+
* Request matching was failing for empty bodies when "body" was one of the matchers (#157) (#161)
28+
* fix to `sensitive_remove()` internal function used when the user sets `filter_sensitive_data` in `vcr_configure()`; when an env var is missing in the `filter_sensitive_data` list, `sensitive_remove()` was causing C stack errors in some cases (#160) thanks @zachary-foster
29+
* fix for recording JSON-encoded bodies; vcr wasn't handling HTTP requests when the user set the body to be encoded as JSON (e.g., `encode="json"` with crul or httr) (#130)
30+
31+
132
vcr 0.4.0
233
=========
334

codemeta.json

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"codeRepository": "https://github.com/ropensci/vcr/",
1111
"issueTracker": "https://github.com/ropensci/vcr/issues",
1212
"license": "https://spdx.org/licenses/MIT",
13-
"version": "0.3.0",
13+
"version": "0.5.0",
1414
"programmingLanguage": {
1515
"@type": "ComputerLanguage",
1616
"name": "R",
17-
"version": "3.6.1",
17+
"version": "3.6.3",
1818
"url": "https://r-project.org"
1919
},
20-
"runtimePlatform": "R version 3.6.1 Patched (2019-07-17 r76848)",
20+
"runtimePlatform": "R version 3.6.3 RC (2020-02-21 r77868)",
2121
"author": [
2222
{
2323
"@type": "Person",
@@ -37,6 +37,19 @@
3737
}
3838
],
3939
"softwareSuggestions": [
40+
{
41+
"@type": "SoftwareApplication",
42+
"identifier": "roxygen2",
43+
"name": "roxygen2",
44+
"version": ">= 7.0.2",
45+
"provider": {
46+
"@id": "https://cran.r-project.org",
47+
"@type": "Organization",
48+
"name": "Comprehensive R Archive Network (CRAN)",
49+
"url": "https://cran.r-project.org"
50+
},
51+
"sameAs": "https://CRAN.R-project.org/package=roxygen2"
52+
},
4053
{
4154
"@type": "SoftwareApplication",
4255
"identifier": "jsonlite",
@@ -120,14 +133,26 @@
120133
"url": "https://cran.r-project.org"
121134
},
122135
"sameAs": "https://CRAN.R-project.org/package=cli"
136+
},
137+
{
138+
"@type": "SoftwareApplication",
139+
"identifier": "curl",
140+
"name": "curl",
141+
"provider": {
142+
"@id": "https://cran.r-project.org",
143+
"@type": "Organization",
144+
"name": "Comprehensive R Archive Network (CRAN)",
145+
"url": "https://cran.r-project.org"
146+
},
147+
"sameAs": "https://CRAN.R-project.org/package=curl"
123148
}
124149
],
125150
"softwareRequirements": [
126151
{
127152
"@type": "SoftwareApplication",
128153
"identifier": "crul",
129154
"name": "crul",
130-
"version": ">= 0.7.0",
155+
"version": ">= 0.8.4",
131156
"provider": {
132157
"@id": "https://cran.r-project.org",
133158
"@type": "Organization",
@@ -152,7 +177,7 @@
152177
"@type": "SoftwareApplication",
153178
"identifier": "webmockr",
154179
"name": "webmockr",
155-
"version": ">= 0.4.0",
180+
"version": ">= 0.6.0",
156181
"provider": {
157182
"@id": "https://cran.r-project.org",
158183
"@type": "Organization",
@@ -225,19 +250,29 @@
225250
"applicationCategory": "Web",
226251
"isPartOf": "https://ropensci.org",
227252
"keywords": ["http", "https", "API", "web-services", "curl", "mock", "mocking", "http-mocking", "testing", "testing-tools", "tdd", "unit-testing", "rstats", "vcr", "r", "r-package"],
228-
"contIntegration": "https://travis-ci.org/ropenscilabs/vcr",
253+
"contIntegration": ["https://travis-ci.org/ropensci/vcr", "https://ci.appveyor.com/project/sckott/vcr", "https://codecov.io/gh/ropensci/vcr"],
229254
"readme": "https://github.com/ropensci/vcr/blob/master/README.md",
230-
"fileSize": "73.897KB",
231-
"relatedLink": "https://ropenscilabs.github.io/http-testing-book/",
255+
"fileSize": "148.962KB",
256+
"relatedLink": [
257+
"https://ropenscilabs.github.io/http-testing-book/",
258+
"https://books.ropensci.org/http-testing/"
259+
],
232260
"releaseNotes": "https://github.com/ropensci/vcr/blob/master/NEWS.md",
233-
"developmentStatus": "http://www.repostatus.org/#wip",
261+
"developmentStatus": "https://www.repostatus.org/#active",
234262
"provider": {
235263
"@id": "https://cran.r-project.org",
236264
"@type": "Organization",
237265
"name": "Comprehensive R Archive Network (CRAN)",
238266
"url": "https://cran.r-project.org"
239267
},
240-
"contributor": {},
268+
"contributor": [
269+
{
270+
"@type": "Person",
271+
"givenName": "Aaron",
272+
"familyName": "Wolen",
273+
"@id": "https://orcid.org/0000-0003-2542-2202"
274+
}
275+
],
241276
"copyrightHolder": {},
242277
"funder": {}
243278
}

cran-comments.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Test environments
22

3-
* local OS X install, R 3.6.1 Patched
4-
* ubuntu 14.04 (on travis-ci), R 3.6.1
3+
* local OS X install, R 3.6.3 RC
4+
* ubuntu 14.04 (on travis-ci), R 3.6.2
55
* win-builder (devel and release)
66

77
## R CMD check results
@@ -10,12 +10,11 @@
1010

1111
## Reverse dependencies
1212

13-
* I have run R CMD check on the 25 reverse dependencies.
14-
(Summary at <https://github.com/ropensci/vcr/blob/master/revdep/README.md>).
13+
* I have run R CMD check on the 28 reverse dependencies. Summary at https://github.com/ropensci/vcr/blob/master/revdep/README.md
1514

1615
--------
1716

18-
This version adds some major features including supporting http requests that write to disk, ignoring certain requests, and turning vcr completely off during a test suite run.
17+
This version makes many improvements to configuration settings, improves documentation, and fixes many bugs.
1918

2019
Thanks very much,
2120
Scott Chamberlain

0 commit comments

Comments
 (0)