cheatsheets/rubygems.md

22 lines
619 B
Markdown

---
title: Rubygems
layout: default
---
gem build *.gemspec # Build a gem
gem install *.gem # Install locally
gem push *.gem # Upload to rubygems.org
gem yank foogem -v 0.0.1 # Take it back
gem owner foogem -a rico@ricostacruz.com
gem list # List local gems
gem which rake # Point to where lib/rake.rb is
gem search -r rails # [remote] Search for gems
# https://github.com/fnando/gem-open
gem open foogem
GEM_EDITOR="vim" gem open foogem
cd $(basename `gem which rake`) # Go to a gem's path