diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 8f010b5..afa264e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,11 +1,5 @@ blank_issues_enabled: true contact_links: - - name: ✏️ 协作更新镜像源可用状态 - url: https://github.com/RubyMetric/chsrc/wiki - about: 作为该语言的资深用户、该软件的专家、镜像站维护人员等,你总是对镜像站和源的可用状态拥有一手信息 - - name: ❤️ 感谢 chsrc - url: https://github.com/RubyMetric/chsrc/discussions/categories/%E6%84%9F%E8%B0%A2-chsrc - about: chsrc 是否帮助到了你? - name: 🚀 赞赏支持 chsrc url: https://github.com/ccmywish/support-my-oss-work - about: 通过经济支持帮助作者更好的开发和维护 chsrc + about: chsrc 是否帮助到了你?帮助作者更好的开发和维护 chsrc diff --git a/src/chsrc-main.c b/src/chsrc-main.c index 305d60f..5a49fc7 100644 --- a/src/chsrc-main.c +++ b/src/chsrc-main.c @@ -36,14 +36,14 @@ * chsrc: Change Source —— 全平台通用命令行换源工具 * ------------------------------------------------------------*/ -#define Chsrc_Version "0.2.1.4-dev1" +#define Chsrc_Version "0.2.1.5-dev1" #define Chsrc_Release_Date "2025/07/12" #define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc" #define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc" #include "framework/core.c" -#include "recipe/lang/Ruby.c" +#include "recipe/lang/Ruby/Ruby.c" #include "recipe/lang/Python/common.h" #include "recipe/lang/Python/pip.c" diff --git a/src/recipe/lang/Ruby/README.md b/src/recipe/lang/Ruby/README.md new file mode 100644 index 0000000..8882e9c --- /dev/null +++ b/src/recipe/lang/Ruby/README.md @@ -0,0 +1,11 @@ +# Ruby 换源问题 + +https://github.com/ustclug/discussions/issues/438 + + +- 清华、北京外国语: 不可用,原因是: 实现不足 https://github.com/tuna/issues/issues/374 + +- 腾讯: 不可用,原因是: 缺乏 `versions` 文件 +- 阿里: 不可用,原因是: 缺乏 `versions` 文件 + +- 华为: 不可用,原因是:版本太过老旧,应该是没有同步 diff --git a/src/recipe/lang/Ruby.c b/src/recipe/lang/Ruby/Ruby.c similarity index 81% rename from src/recipe/lang/Ruby.c rename to src/recipe/lang/Ruby/Ruby.c index 7449f28..3504b33 100644 --- a/src/recipe/lang/Ruby.c +++ b/src/recipe/lang/Ruby/Ruby.c @@ -5,7 +5,7 @@ * Contributors : Nil Null * | * Created On : <2023-08-29> - * Last Modified : <2025-07-11> + * Last Modified : <2025-07-14> * ------------------------------------------------------------*/ static SourceProvider_t pl_ruby_upstream = @@ -23,24 +23,20 @@ static MirrorSite_t RubyChina = /** * @update 2024-12-18 - * @sync https://github.com/RubyMetric/chsrc/wiki/Ruby-MirrorSite - * @sync https://github.com/RubyMetric/chsrc/discussions/62 - * - * @note 曾经的问题 https://ruby-china.org/topics/43331 */ static Source_t pl_ruby_sources[] = { - {&pl_ruby_upstream, "https://rubygems.org"}, - {&RubyChina, "https://gems.ruby-china.com/"}, - {&Ustc, "https://mirrors.ustc.edu.cn/rubygems/"} + {&pl_ruby_upstream, "https://rubygems.org", NULL}, + {&RubyChina, "https://gems.ruby-china.com/", NULL}, + {&Ustc, "https://mirrors.ustc.edu.cn/rubygems/", NULL} - // {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rubygems/"}, - // {&Bfsu, "https://mirrors.bfsu.edu.cn/rubygems/"}, + // {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rubygems/", NULL}, + // {&Bfsu, "https://mirrors.bfsu.edu.cn/rubygems/", NULL}, - // {&Tencent, "https://mirrors.tencent.com/rubygems/"}, - // {&Tencent_Intra, "https://mirrors.tencentyun.com/rubygems/"}, - // {&Ali, "https://mirrors.aliyun.com/rubygems/"}, - // {&Huawei, "https://mirrors.huaweicloud.com/repository/rubygems/"}, + // {&Tencent, "https://mirrors.tencent.com/rubygems/", NULL}, + // {&Tencent_Intra, "https://mirrors.tencentyun.com/rubygems/", NULL}, + // {&Ali, "https://mirrors.aliyun.com/rubygems/", NULL}, + // {&Huawei, "https://mirrors.huaweicloud.com/repository/rubygems/", NULL}, }; def_sources_n(pl_ruby);