What is the difference between ruby ​​gemstones and brew formulas?

What are the main differences between ruby ​​gemstones and brew formulas?

It is not very clear what is used when. Sometimes I see gems set using brew, and this is a bit confusing.

+7
ruby ruby-on-rails homebrew gem
source share
2 answers

RubyGems and Homebrew are package managers. RubyGems was created to set up gems, while Homebrew is a more general tool that can create, install, and manage various software packages, including gems.

Homebrew is tied to Mac OS X, while RubyGems runs on multiple platforms.

The best advice? Do what the book / textbook you are following tells you to do and let your preferences evolve over time until you have enough experience to know what you want. All of this, as has been said, it looks like you're going to work in Rails, so you're going to use bundler, not RubyGems or Homebrew.

+9
source share

We need to step back and understand how ruby ​​processes gems in general.
He can either select them from the system directory, or from a local directory for each user or a local directory for each project.
You will work with ruby ​​stones no matter what you do.
homebrew has the ability to set gems at the system level based on a formula.
The gem can also set gems, and it can do it in any of these places.
bundler can install packages and gems and the dependencies necessary for them.

run the gem environment if you want to see where Ruby is going to collect gems (maybe you have several places)

Follow @MarsAtomic's tips and do whatever the tutorial tells you. After that, go to the satellite, which under the cover controls the gems for you.

+3
source share

All Articles