From 158ec7df2b64f26eabc10df4b5f3fbcf36e25e3b Mon Sep 17 00:00:00 2001 From: bigeagle Date: Thu, 18 Aug 2016 14:22:30 +0800 Subject: [PATCH] new mirrors --- Gemfile | 2 +- _config.yml | 2 +- _posts/help/2016-08-18-rubygems.md | 19 +++++++++++++++++++ _posts/news/2016-08-18-bunch-of-news.md | 19 +++++++++++++++++++ robots.txt | 1 + 5 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 _posts/help/2016-08-18-rubygems.md create mode 100644 _posts/news/2016-08-18-bunch-of-news.md diff --git a/Gemfile b/Gemfile index 50dfb08..b0db21e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,3 @@ -source 'https://ruby.taobao.org' +source 'https://mirrors.tuna.tsinghua.edu.cn/rubygems/' gem 'github-pages' gem 'jekyll-babel' diff --git a/_config.yml b/_config.yml index 2534392..e05ce9d 100644 --- a/_config.yml +++ b/_config.yml @@ -30,4 +30,4 @@ gems: exclude: [Gemfile, Gemfile.lock, README.md, gen_robot.sh] # Content Related -new_mirrors: [virtualbox, dell, manjaro-cd, grafana, jenkins, influxdata, mysql, parrot] +new_mirrors: [virtualbox, dell, manjaro-cd, grafana, jenkins, influxdata, mysql, parrot, rubygems] diff --git a/_posts/help/2016-08-18-rubygems.md b/_posts/help/2016-08-18-rubygems.md new file mode 100644 index 0000000..cfcbece --- /dev/null +++ b/_posts/help/2016-08-18-rubygems.md @@ -0,0 +1,19 @@ +--- +category: help +layout: help +mirrorid: rubygems +--- + +# Ruby Gems 镜像使用帮助 + +使用以下命令替换 gems 默认源 + +```bash +# 添加 TUNA 源并移除默认源 +gems sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/ +# 列出已有源 +gem sources -l +# 应该只有 TUNA 一个 +``` + +或者,编辑 `~/.gemrc`,将 `https://mirrors.tuna.tsinghua.edu.cn/rubygems/` 加到 `sources` 字段。 diff --git a/_posts/news/2016-08-18-bunch-of-news.md b/_posts/news/2016-08-18-bunch-of-news.md new file mode 100644 index 0000000..384155e --- /dev/null +++ b/_posts/news/2016-08-18-bunch-of-news.md @@ -0,0 +1,19 @@ +--- +category: news +layout: news +title: "新增一系列镜像" +author: Justin Wong +--- + +新学期开始啦,暑假我们没闲着,新增了以下一大票镜像~ + +- VirtualBox: 著名开源虚拟机软件 [使用帮助](/help/virtualbox/) +- Dell 服务器管理工具 +- grafana: 数据可视化工具 +- jenkins: 持续集成工具 +- influxdata: 由 Telegraf, InfluxDB, Chronograf, Kapacitor 组成的 TICK 开源时间序列工具栈 +- mysql: 常用开源数据库 +- parrot: 基于 Debian 的安全操作系统 +- rubygems: Ruby 包仓库 + +祝大家新学期取得新成绩 diff --git a/robots.txt b/robots.txt index 0b3c5f2..73df8c5 100644 --- a/robots.txt +++ b/robots.txt @@ -83,6 +83,7 @@ Disallow: /remi Disallow: /repo-ck Disallow: /repoforge Disallow: /rpmfusion +Disallow: /rubygems Disallow: /sagemath Disallow: /slackware Disallow: /termux