Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the default gems of Mac OSX 10.11?

I tried to study Ruby on Rails and followed a tutorial. However, I think I missed a part and I can't proceed to the next step in the tutorial, so I plan to uninstall things, including the gems I installed, and start all over again.

I installed Ruby using Homebrew, because people say it's best not to mess with the Ruby that comes with macOS. Then, I uninstalled it again using brew uninstall ruby.

After doing that, I ran gem list and this came out:

*** LOCAL GEMS ***

- bigdecimal (1.2.0)
- builder (3.2.2)
- CFPropertyList (2.2.8)
- io-console (0.4.2)
- json (1.7.7)
- libxml-ruby (2.6.0)
- minitest (4.3.2)
- nokogiri (1.5.6)
- psych (2.0.0)
- rake (0.9.6)
- rdoc (4.0.0)
- sqlite3 (1.3.7)
- test-unit (2.0.0.0)
- thor (0.19.1)

What are the gems (if any) that come with macOS system Ruby?

like image 424
Rogen Nualda Esteron Avatar asked Feb 09 '16 06:02

Rogen Nualda Esteron


People also ask

Where are gems installed Macos?

By default, binaries installed by gem will be placed into: /usr/local/lib/ruby/gems/3.1.

What is RubyGems on Mac?

RubyGems are the ready-made software libraries that make development easy and fun in Ruby. Most Ruby projects use at least a few gems. If you use the Mac system Ruby, running gem install will try to save gems to the system Ruby directory /Library/Ruby/Gems/2.6. 0 .

How do I remove RubyGems from my Mac?

Uninstall Ruby on Mac with rbenv For rbenv, use rbenv versions to see which versions you have installed. Use the uninstall command to remove a version. This will remove any gems associated with the version as well. If you want to reinstall Ruby, see Install Ruby on Mac for recommendations of newer version managers.


2 Answers

My fresh El Capitan gives:

*** LOCAL GEMS ***

bigdecimal (1.2.0)
CFPropertyList (2.2.8)
io-console (0.4.2)
json (1.7.7)
libxml-ruby (2.6.0)
minitest (4.3.2)
nokogiri (1.5.6)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
sqlite3 (1.3.7)
test-unit (2.0.0.0)

which is the same as @jsejcksn mentioned. For macOS 10.13.6 (High Sierra) and 10.14.5 (Mojave) the list is

*** LOCAL GEMS ***

bigdecimal (1.2.8)
CFPropertyList (2.2.8)
did_you_mean (1.0.0)
io-console (0.4.5)
json (1.8.3.1)
libxml-ruby (2.9.0)
minitest (5.8.5)
net-telnet (0.1.1)
nokogiri (1.5.6)
power_assert (0.2.6)
psych (2.1.0.1)
rake (10.4.2)
rdoc (4.2.1)
sqlite3 (1.3.11)
test-unit (3.1.5)
like image 175
Franklin Yu Avatar answered Oct 12 '22 23:10

Franklin Yu


As addendum, for anybody else wondering what the current default Gems on macOS 10.13.3 are:

*** LOCAL GEMS ***

bigdecimal (1.2.8)
CFPropertyList (2.2.8)
did_you_mean (1.0.0)
io-console (0.4.5)
json (1.8.3)
libxml-ruby (2.9.0)
minitest (5.8.5)
net-telnet (0.1.1)
nokogiri (1.5.6)
power_assert (0.2.6)
psych (2.1.0)
rake (10.4.2)
rdoc (4.2.1)
sqlite3 (1.3.11)
test-unit (3.1.5)

Shipped gem version is 2.5.2.

like image 27
Frederik Winkelsdorf Avatar answered Oct 13 '22 00:10

Frederik Winkelsdorf