From 781357fa6dea9459f9e3c57ce6d5f66c57816293 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Thu, 31 Jul 2025 18:14:55 +0800 Subject: [PATCH] Update CRAN ggplot2 version in docs and tests Changed references of ggplot2 from version 3.4.4 to 3.5.2 in both English and Chinese README files and updated related test cases in cran.test.js to ensure consistency with the latest package version. --- README.en.md | 4 ++-- README.md | 4 ++-- test/cran.test.js | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.en.md b/README.en.md index 7989ac9..c76b56e 100644 --- a/README.en.md +++ b/README.en.md @@ -315,10 +315,10 @@ https://xget.xi-xu.me/rubygems/api/v1/gems/nokogiri.json ```url # CRAN package file original link -https://cran.r-project.org/src/contrib/ggplot2_3.4.4.tar.gz +https://cran.r-project.org/src/contrib/ggplot2_3.5.2.tar.gz # Converted (add cran prefix) -https://xget.xi-xu.me/cran/src/contrib/ggplot2_3.4.4.tar.gz +https://xget.xi-xu.me/cran/src/contrib/ggplot2_3.5.2.tar.gz # CRAN package metadata original link https://cran.r-project.org/web/packages/dplyr/DESCRIPTION diff --git a/README.md b/README.md index 80d4ccc..5bb2a0b 100644 --- a/README.md +++ b/README.md @@ -315,10 +315,10 @@ https://xget.xi-xu.me/rubygems/api/v1/gems/nokogiri.json ```url # CRAN 包文件原始链接 -https://cran.r-project.org/src/contrib/ggplot2_3.4.4.tar.gz +https://cran.r-project.org/src/contrib/ggplot2_3.5.2.tar.gz # 转换后(添加 cran 前缀) -https://xget.xi-xu.me/cran/src/contrib/ggplot2_3.4.4.tar.gz +https://xget.xi-xu.me/cran/src/contrib/ggplot2_3.5.2.tar.gz # CRAN 包元数据原始链接 https://cran.r-project.org/web/packages/dplyr/DESCRIPTION diff --git a/test/cran.test.js b/test/cran.test.js index b2e3b1a..674abc2 100644 --- a/test/cran.test.js +++ b/test/cran.test.js @@ -9,8 +9,8 @@ describe('CRAN Platform Configuration', () => { it('should transform CRAN paths correctly', () => { const testCases = [ { - input: '/cran/src/contrib/ggplot2_3.4.4.tar.gz', - expected: '/src/contrib/ggplot2_3.4.4.tar.gz', + input: '/cran/src/contrib/ggplot2_3.5.2.tar.gz', + expected: '/src/contrib/ggplot2_3.5.2.tar.gz', description: 'package source file' }, { @@ -47,7 +47,7 @@ describe('CRAN Platform Configuration', () => { }); it('should handle paths without platform prefix', () => { - const result = transformPath('/src/contrib/ggplot2_3.4.4.tar.gz', 'cran'); - expect(result).toBe('/src/contrib/ggplot2_3.4.4.tar.gz'); + const result = transformPath('/src/contrib/ggplot2_3.5.2.tar.gz', 'cran'); + expect(result).toBe('/src/contrib/ggplot2_3.5.2.tar.gz'); }); });