sportngin / brew-gem

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

[Question] how does this differ from normal gem installation #74

Closed supersaiyansubtlety closed 2 years ago

supersaiyansubtlety commented 2 years ago

I'm new to installing gems, so I may be missing something obvious.

How does installing a gem via brew gem differ from installing it via gem?

DannyBen commented 2 years ago

If you have a fairly recent Ruby version installed, then installing with gem install is better, as it is Ruby's native package manager, and this homebrew package actually does that under the hood:

https://github.com/sportngin/brew-gem/blob/2730c8b9cca03743255dd32d8c0aa0215cdf3c8f/lib/brew/gem/formula.rb.erb#L72-L77

I believe that brew-gem is solving problems for two kinds of users:

  1. Mac users who are used to using brew to install anything and just want the quickest way to install something
  2. Mac users who dont have a recent enough Ruby version
supersaiyansubtlety commented 2 years ago

I see, thanks