add environment support for using brew's ruby installation with brew-gem #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
--homebrew-ruby
flag tobrew-gem
will tell it to use the Ruby as installed by Homebrew (see Allow brew-gem to accept a '--homebrew-ruby' flag that uses /usr/local/bin/ruby instead of /usr/bin/ruby sportngin/brew-gem#29)HOMEBREW_GEM_OPTS
environment variable so users don't need to type--homebrew-ruby
every timeI had some questions here:
brew-file
, but I did my best.--homebrew-ruby
is supported byHOMEBREW_GEM_OPTS
, but I could change this to allow anything. As-is, it's pretty defensive to have it be explicit, and adds edge-case conditionals around the code.brew-pip
...