Skip to content

Commit

Permalink
updates to community.r-multiverse.org
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Jun 21, 2024
1 parent 9df94df commit 73dc870
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: multiverse.internals
Title: Internal Infrastructure for R-multiverse
Description: R-multiverse requires this internal internal infrastructure
package to automate contribution reviews and populate universes.
Version: 0.2.2.9000
Version: 0.2.3
License: MIT + file LICENSE
URL: https://github.com/r-multiverse/multiverse.internals
BugReports: https://github.com/r-multiverse/multiverse.internals/issues
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# multiverse.internals 0.2.2.9000 (development)
# multiverse.internals 0.2.3

* Updates R-Multiverse repository to `community.r-multiverse.org`.
* Makes `meta_checks()` and `meta_packages()` robust to trailing slashes in the supplied URL.

# multiverse.internals 0.2.2
Expand Down
4 changes: 2 additions & 2 deletions R/meta_checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
#' @return A data frame with one row per package and columns with
#' package check results.
#' @param repo Character of length 1, URL of the package repository.
#' R-multiverse uses `"https://multiverse.r-multiverse.org"`.
#' R-multiverse uses `"https://community.r-multiverse.org"`.
#' @examples
#' meta_checks(repo = "https://wlandau.r-universe.dev")
meta_checks <- function(repo = "https://multiverse.r-multiverse.org") {
meta_checks <- function(repo = "https://community.r-multiverse.org") {
fields <- c(
"_buildurl",
"_linuxdevel",
Expand Down
2 changes: 1 addition & 1 deletion R/meta_packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @inheritParams meta_checks
#' @examples
#' meta_packages(repo = "https://wlandau.r-universe.dev")
meta_packages <- function(repo = "https://multiverse.r-multiverse.org") {
meta_packages <- function(repo = "https://community.r-multiverse.org") {
fields <- c("Version", "Remotes", "RemoteSha")
listing <- file.path(
trim_url(repo),
Expand Down
2 changes: 1 addition & 1 deletion R/record_issues.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#' print(readLines(file.path(output, package)))
#' }
record_issues <- function(
repo = "https://multiverse.r-multiverse.org",
repo = "https://community.r-multiverse.org",
versions = "versions.json",
output = "issues",
mock = NULL,
Expand Down
6 changes: 3 additions & 3 deletions R/record_versions.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' @param current A data frame of current versions and hashes of packages
#' in `repo`. This argument is exposed for testing only.
#' @examples
#' # R-multiverse uses https://multiverse.r-multiverse.org as the repo.
#' # R-multiverse uses https://community.r-multiverse.org as the repo.
#' repo <- "https://wlandau.r-universe.dev" # just for testing and examples
#' output <- tempfile()
#' versions <- tempfile()
Expand All @@ -39,7 +39,7 @@
#' readLines(versions)
record_versions <- function(
versions = "versions.json",
repo = "https://multiverse.r-multiverse.org",
repo = "https://community.r-multiverse.org",
current = multiverse.internals::get_current_versions(repo = repo)
) {
if (!file.exists(versions)) {
Expand All @@ -59,7 +59,7 @@ record_versions <- function(
#' @return A data frame of packages with their current versions and hashes.
#' @inheritParams record_versions
get_current_versions <- function(
repo = "https://multiverse.r-multiverse.org"
repo = "https://community.r-multiverse.org"
) {
meta <- meta_packages(repo = repo)
meta <- meta[, c("package", "version", "remotesha")]
Expand Down
4 changes: 2 additions & 2 deletions man/get_current_versions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/meta_checks.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/meta_packages.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/record_issues.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/record_versions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/review_pull_request.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/review_pull_requests.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/testthat/helper-mock.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# dput(meta_checks(repo = "https://multiverse.r-multiverse.org")) # nolint
# dput(meta_checks(repo = "https://community.r-multiverse.org")) # nolint
mock_meta_checks <- structure(
list(
package = c(
Expand Down Expand Up @@ -108,7 +108,7 @@ mock_meta_checks <- structure(
row.names = c(NA, 21L)
)

# dput(meta_packages(repo = "https://multiverse.r-multiverse.org")) # nolint
# dput(meta_packages(repo = "https://community.r-multiverse.org")) # nolint
mock_meta_packages <- structure(
list(
"_id" = c(
Expand Down

0 comments on commit 73dc870

Please sign in to comment.