Getting seriously good at hacking things together that are somehow cursed but also portable.

Shipping a ruby script through homebrew but can't install gem dependencies system wide?

No problem, we'll put the gem in the cellar and have a tiny shell wrapper script that detects the local gem dir and adds it to GEM_PATH at runtime so they user doesn't need to know that the required gems aren't properly installed.

I tried to use "gem install --user-install" but that's 1000% broken on my rbenv setup, so using "--install-dir" and managing the GEM_PATH seems much saner.

Sign in to participate in the conversation

Mastodon Community of Denmark (MCD) for Danes and other people to talk about Denmark or whatever.