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'); }); });