Test ruby feat

This commit is contained in:
Aoran Zeng 2024-08-16 21:06:44 +08:00
parent ad9599a612
commit b6cf0dedee
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 24 additions and 4 deletions

View File

@ -376,7 +376,9 @@ get_target (const char *input, TargetOp code, char *option)
}
else if (TargetOp_List_Source==code)
{
chsrc_info (xy_strjoin (3, "下方 code 列,可用于指定使用某源,请使用 chsrc set ", input, " <code>\n"));
say (to_boldblue(xy_strjoin (3, "指定使用某源,请使用 chsrc set ", input, " <code>\n")));
say (to_boldgreen("Available Sources: \n"));
// chsrc_info (xy_strjoin (3, "下方 code 列,可用于指定使用某源,请使用 chsrc set ", input, " <code>\n"));
printf (" %-14s%-35s%-43s ", "code", "镜像站简写", "换源URL"); puts ("镜像站名称");
puts ("--------- -------------- ----------------------------------------------- ---------------------");
cli_print_target_available_sources (target->sources, target->sources_n);

View File

@ -92,8 +92,8 @@ pl_ruby_setsrc (char *option)
chsrc_run (cmd, RunOpt_No_Last_New_Line);
chsrc_say_lastly (&source, chsrc_type);
// puts ("");
// chsrc_note2 ("维护者提醒您: Ruby的镜像源目前仅有 腾讯软件源RubyChina,华为开源镜像站 实现正确");
// chsrc_note2 ("Ruby的镜像源目前仅有 腾讯软件源RubyChina 实现正确");
// chsrc_note2 ("而其它如Tuna,Bfsu,Ali目前都实现的有问题请勿使用");
}
@ -103,4 +103,22 @@ pl_ruby_resetsrc (char *option)
pl_ruby_setsrc (ChsrcTypeReset);
}
def_target_full(pl_ruby);
FeatInfo
pl_ruby_feat (char *option)
{
FeatInfo fi = {0};
fi.can_get = true;
fi.can_reset = true;
fi.locally = "gem 不支持; bundler 支持 (From v0.1.6)";
fi.can_english = false;
fi.can_user_define = true;
fi.note = "华为开源镜像站提供的源可能存在问题";
return fi;
}
def_target_gsrf(pl_ruby);