Giter VIP home page Giter VIP logo

Comments (6)

forging2012 avatar forging2012 commented on June 2, 2024

如何使用?

请尽可能用比较新的 RubyGems 版本,建议 2.6.x 以上。

$ gem update --system # 这里请翻墙一下
$ gem -v
2.6.3
$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
$ gem sources -l
https://gems.ruby-china.org

确保只有 gems.ruby-china.org

如果你使用 Gemfile 和 Bundle (例如:Rails 项目)

你可以用 Bundler 的 Gem 源代码镜像命令。

$ bundle config mirror.https://rubygems.org https://gems.ruby-china.org
这样你不用改你的 Gemfile 的 source。

source 'https://rubygems.org/'
gem 'rails', '4.2.5'
...

from ruby.taobao.org.

cnhappier avatar cnhappier commented on June 2, 2024

证书一样有问题?

Error fetching https://gems.ruby-china.org:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: ce
rtificate verify failed (https://gems.ruby-china.org/specs.4.8.gz)

from ruby.taobao.org.

lzhr avatar lzhr commented on June 2, 2024

@cnhappier http://mirrors.aliyun.com/rubygems/

from ruby.taobao.org.

wahyd4 avatar wahyd4 commented on June 2, 2024

@lzhr 👍 mirrors.aliyun.com 的速度也很快,希望不会一段时间后又不能使用了。

from ruby.taobao.org.

qx avatar qx commented on June 2, 2024

ruby-china那个镜像不稳定,大部分时候也不快

from ruby.taobao.org.

jony4 avatar jony4 commented on June 2, 2024

证书一样有问题?

$ gem source -a https://gems.ruby-china.org --remove https://rubygems.org/ -V
Getting SRV record failed: DNS result has no information for _rubygems._tcp.gems.ruby-china.org
Error fetching https://gems.ruby-china.org:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://gems.ruby-china.org/specs.4.8.gz)

from ruby.taobao.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.