Skip to content

Commit

Permalink
Upkeep 2023-10 (#72)
Browse files Browse the repository at this point in the history
* Email update
* Package is now superseded
* `usethis::use_mit_license()`
* Add R version requirement
* `usethis::use_tidy_github_actions()`
  • Loading branch information
hadley committed Oct 31, 2023
1 parent 764da9f commit 147de29
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 9 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
^\.github$
^codecov\.yml$
^CRAN-SUBMISSION$
^LICENSE\.md$
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
shell: Rscript {0}

Expand Down
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Authors@R: c(
person("Noam", "Finkelstein", role = "aut"),
person("Lukasz", "Bartnik", role = "aut"),
person("Jim", "Hester", role = "aut"),
person("Hadley", "Wickham", , "hadley@rstudio.com", role = c("aut", "cre"))
person("Hadley", "Wickham", , "hadley@posit.co", role = c("aut", "cre"))
)
Description: The two main functionalities of this package are creating
mock objects (functions) and selectively intercepting calls to a given
Expand All @@ -16,6 +16,8 @@ Description: The two main functionalities of this package are creating
License: MIT + file LICENSE
URL: https://github.com/r-lib/mockery
BugReports: https://github.com/r-lib/mockery/issues
Depends:
R (>= 3.6)
Imports:
testthat
Suggests:
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2016
COPYRIGHT HOLDER: Noam Finkelstein, Lukasz Bartnik
YEAR: 2023
COPYRIGHT HOLDER: mockery authors
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2023 mockery authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# mockery
<!-- badges: start -->
[![Lifecycle: superseded](https://img.shields.io/badge/lifecycle-superseded-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html#superseded)
[![CRAN version](http://www.r-pkg.org/badges/version/mockery)](https://CRAN.r-project.org/package=mockery)
[![R-CMD-check](https://github.com/r-lib/mockery/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-lib/mockery/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/r-lib/mockery/branch/main/graph/badge.svg)](https://app.codecov.io/gh/r-lib/mockery?branch=main)
<!-- badges: end -->

A mocking library for R.

This package is superseded and we no longer recommend that you use it for new tests.
We instead recommend `testthat::local_mocked_bindings()`.

### Installation

To install the latest CRAN release:
Expand All @@ -18,11 +22,8 @@ install.packages('mockery')
To install directly from the source code in this GitHub repository:

```R
# If you don't have devtools installed yet:
install.packages('devtools')

# Then:
devtools::install_github('r-lib/mockery')
# install.packages('pak')
pak::pak('r-lib/mockery')
```

### Testing
Expand Down

0 comments on commit 147de29

Please sign in to comment.