gemstash-mirror(7)

πŸ“¦
version 2.8.2 Β· 2 versions
, in nixpkgs unstable

πŸ’… Using Gemstash as a Mirror

okay so welcome to gemstash-mirror(7), bestie πŸͺžπŸ’– this page is literally about using Gemstash as a mirror, and the vibe check is: if you don’t have control over your Gemfile, or you don’t want to force everyone on your team to go through the Gemstash server, you can use Bundler mirroring to bundle against your Gemstash server. periodt ✨

For each source in your Gemfile, add a mirror pointing to your Gemstash server:

$ bundle config mirror.http://rubygems.org http://localhost:9292
$ bundle config mirror.https://my.gem-source.local http://localhost:9292/upstream/$(ruby -rcgi -e 'puts CGI.escape("https://my.gem-source.local")')

From now on, bundler will fetch gems from those sources via your Gemstash server. slay 🫢πŸ”₯

✨ Simpler Gemstash Mirrors

this feature requires Bundler to be at least version 1.11.0, no cap πŸ’€

if you are using Bundler version 1.11.0 or greater, the mirroring becomes a bit easier:

$ bundle config mirror.http://rubygems.org http://localhost:9292
$ bundle config mirror.https://my.gem-source.local http://localhost:9292

Bundler will then send headers to Gemstash to indicate the correct upstream. iconic behavior tbh πŸ‘‘πŸŒˆ


cute little sign-off: this was gemstash-mirror(7), dated October 25, 2015 πŸ’– bye bestie πŸŽ€

πŸ“¦ where this page comes from