sportngin / brew-gem

Install gems as homebrew formulas
MIT License
195 stars 21 forks source link

Fix homebrew ruby bin location. #59

Closed pingortle closed 5 years ago

pingortle commented 5 years ago

Problem I ran into an issue where homebrew ruby is not linked into the location brew-gem expects which breaks the resulting bin stubs installed by brew-gem.

Solution Instead of hard coding a path in the homebrew prefix, query the ruby brew formula for its bin path. This fixes situations where homebrew ruby is desired but the ruby formula is not linked to the homebrew prefix path.

nicksieger commented 5 years ago

Great solution! Will take a look and merge soon. Thanks for the contribution!