Skip to content

Commit

Permalink
Fix "sameAs" link (if github:://user/repo is used in "Remotes:") (rop…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrustl authored and maelle committed Dec 3, 2018
1 parent 46c4a7a commit 47db9a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ Authors@R:
person(given = "Sebastian",
family = "Meyer",
role = "ctb",
comment = c(ORCID = "0000-0002-1791-9449")))
comment = c(ORCID = "0000-0002-1791-9449")),
person(given = "Michael",
family = "Rustler",
role = "ctb",
comment = c(ORCID = "0000-0003-0647-7726"))
)
Description: The 'Codemeta' Project defines a 'JSON-LD' format for describing
software metadata, as detailed at <https://codemeta.github.io>. This package
provides utilities to generate, parse, and modify 'codemeta.json' files
Expand Down
3 changes: 2 additions & 1 deletion R/parse_depends.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ format_depend <- function(package, version, remote_provider){
}

if(remote_provider != ""){
dep$sameAs <- paste0("https://github.com/", remote_provider)
dep$sameAs <- paste0("https://github.com/",
stringr::str_remove(remote_provider, "github::"))
}

return(dep)
Expand Down

0 comments on commit 47db9a8

Please sign in to comment.