Skip to content

Commit ffb4616

Browse files
authored
Merge pull request #19 from ThinkR-open/fix-markdown-time
Increase minimal pandoc version
2 parents 5e0d7f9 + f3e2665 commit ffb4616

8 files changed

+18
-11
lines changed

Diff for: DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: gitdown
22
Title: Turn Your Git Commit Messages into a HTML Book
3-
Version: 0.1.5
3+
Version: 0.1.6
44
Authors@R: c(
55
person("Sébastien", "Rochette", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-1565-9313")),

Diff for: NEWS.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# gitdown 0.1.6
2+
3+
* Ask for Pandoc > 2.0 as for new {rmarkdown}
4+
* Use 'main' branch as default for the repository example
5+
* Fix unit test for new 'rmarkdown' version
6+
* Fix unit test for date-time check due to changing timezone
7+
18
# gitdown 0.1.5
29

310
* Change unit tests

Diff for: R/get_info_files.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ present_files <- function(repo = ".", path = "R",
175175
#'
176176
#' # Creates vignette
177177
#' repo <- fake_repo(as.package = TRUE)
178-
#' if (rmarkdown::pandoc_available("1.12.3")) {
178+
#' if (rmarkdown::pandoc_available("2.0.0")) {
179179
#' create_vignette_last_modif(repo, path = "R")
180180
#' }
181181

@@ -198,7 +198,7 @@ create_vignette_last_modif <- function(repo = ".", path = "R",
198198
#' @examples
199199
#' # update vignette
200200
#' repo <- fake_repo(as.package = TRUE)
201-
#' if (rmarkdown::pandoc_available("1.12.3")) {
201+
#' if (rmarkdown::pandoc_available("2.0.0")) {
202202
#' update_vignette_last_modif(repo, path = "R")
203203
#' rmarkdown::render(file.path(repo, "vignettes", "modification_files.Rmd"))
204204
#' }

Diff for: R/git_down.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#'
2727
#' @examples
2828
#' repo <- fake_repo()
29-
#' if (rmarkdown::pandoc_available("1.12.3")) {
29+
#' if (rmarkdown::pandoc_available("2.0.0")) {
3030
#' res <- git_down(repo, pattern = c("Tickets" = "ticket[[:digit:]]+", "Issues" = "#[[:digit:]]+"),
3131
#' open = FALSE)
3232
#' }
@@ -38,7 +38,7 @@
3838
#' pattern.table <- data.frame(number = c("#2", "#1"),
3939
#' title = c("#2 A second issue to illustrate a blog post",
4040
#' "#1 An example of issue"))
41-
#' if (rmarkdown::pandoc_available("1.12.3")) {
41+
#' if (rmarkdown::pandoc_available("2.0.0")) {
4242
#' res <- git_down(repo, pattern = c("Issues" = "#[[:digit:]]+"),
4343
#' pattern.table = pattern.table, open = FALSE)
4444
#' }

Diff for: man/create_vignette_last_modif.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: man/git_down.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: tests/testthat/test-get_info_files.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ test_that("present_files error", {
5959
})
6060

6161
# create_vignette_last_modif ----
62-
if (rmarkdown::pandoc_available("1.12.3")) {
62+
if (rmarkdown::pandoc_available("2.0.0")) {
6363
create_vignette_last_modif(repo_pkg)
6464
# browseURL(repo_pkg)
6565

Diff for: tests/testthat/test-git_down.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (rmarkdown::pandoc_available("1.12.3")) {
1+
if (rmarkdown::pandoc_available("2.0.0")) {
22
library(withr)
33

44
repo_input <- tempfile(pattern = "git2r-")

0 commit comments

Comments
 (0)