Skip to content
Bruno P. Kinoshita edited this page May 17, 2020 · 9 revisions

The best resource for deploying a gem to RubyGems is their guide about it: Publishing your Gem.

Environment set up

If you are using Ubuntu LTS (18.04) you can try the following.

  1. Install rbenv. DigitalOcean has a good tutorial for Ubuntu.
  2. Install stable ruby (at time of writing: 2.7.1)

e.g.

rbenv install 2.7.1 rbenv global 2.7.1

  1. Create symlinks for ruby and gem or add the $HOME/.rbenv/versions/2.7.1/bin directory to your $PATH environment variable.
  2. gem install bundler. This will install the Smashing gem dependencies, and you should be able to use ./bin/smashing to run with the latest modifications.

Useful commands

  • gem list
  • gem instal --user $gem
  • bundle install
  • irb and then require 'smashing'

Clone this wiki locally