git clone https://github.com/pxlpnk/rubygems-proxy.git cd rubygems-proxy bundle install --without development test rackup
In your Gemfile let the source point to: source 'http://gems.example.com'
The proxy will redirect to rubygems.org to resolve the dependencies.
The gems and gemspecs that are then requested are downloaded to cache/
and served from there.