Skip to content

Instantly share code, notes, and snippets.

@komiya-atsushi
Created September 7, 2012 02:47
Show Gist options
  • Save komiya-atsushi/3662679 to your computer and use it in GitHub Desktop.
Save komiya-atsushi/3662679 to your computer and use it in GitHub Desktop.
production.cf.rubygems.org から .gem ファイルをダウンロードする gem コマンドのラッパー (シェルスクリプト)
#!/bin/bash
ORIGINAL_SOURCE=http://rubygems.org/
MIRROR_SOURCE=http://production.cf.rubygems.org/
gem sources -r $ORIGINAL_SOURCE
gem sources -a $MIRROR_SOURCE
gem $*
gem sources -r $MIRROR_SOURCE
gem sources -a $ORIGINAL_SOURCE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment