Skip to content

Instantly share code, notes, and snippets.

@hyrious
Last active April 22, 2017 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyrious/66202d7a89b92096767227ef7c803e1a to your computer and use it in GitHub Desktop.
Save hyrious/66202d7a89b92096767227ef7c803e1a to your computer and use it in GitHub Desktop.
CMD Script - Setup RubyGem
REM https://github.com/ruby-china/rubygems-mirror/wiki
REM Download cacert.pem here -> http://curl.haxx.se/ca/cacert.pem
setx SSL_CERT_FILE D:\Local\Ruby\lib\cacert.pem
call gem update --system
call gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
call gem install bundler
call bundle config mirror.https://rubygems.org https://gems.ruby-china.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment