Menu

gitpiper

Rubygems Cheat Sheet in May 2023

Last Updated: 16 May 2023

README.md

Building and publishing

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

Querying

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

Opening a gem

# https://github.com/fnando/gem-open
gem open foogem
GEM_EDITOR="vim" gem open foogem

Changing to a directory

cd $(basename `gem which rake`)  # Go to a gem's path

338+ more cheat sheets for you in May 2023

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2023 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️