Skip to content

Instantly share code, notes, and snippets.

@DeepNeuralAI
Last active February 28, 2019 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeepNeuralAI/1d4cf6c3961d704b3440624628b14d01 to your computer and use it in GitHub Desktop.
Save DeepNeuralAI/1d4cf6c3961d704b3440624628b14d01 to your computer and use it in GitHub Desktop.
Intro to Gems

Introduction to Gems

What is a Gem?

A gemstone is a piece of mineral crystal which, in cut and polished form, is used to make jewelry or other adornments.

But actually...

From RubyGems.org

The RubyGems software allows you to easily download, install, and use ruby software packages on your system.

The software package is called a “gem” which contains a packaged Ruby application or library.

Gems can be used to extend or modify functionality in Ruby applications.

There's a gem for that....

A way of using another's code that is packaged nicely, that makes your life easier. 

Common Gem Commands

Installation

gem install insertGemHere

Removing gems

gem uninstall insertGemHere

List all installed gems

gem list 

Quick Challenge

I want you to just have a quick play with the gem 'colorize'.

Try this.

  1. Figure out how to install the gem
  2. Play with the gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment