Skip to content

Instantly share code, notes, and snippets.

@peijiehu
Created November 20, 2015 19:26
Show Gist options
  • Save peijiehu/11a46581079ccad7ff04 to your computer and use it in GitHub Desktop.
Save peijiehu/11a46581079ccad7ff04 to your computer and use it in GitHub Desktop.
Find gems that depend on a given gem
# Two ways:
# 1. Print out dependencies of all gems, then search for the 'given gem'
gem list | egrep '^.*[ ]' -o | gem dependency
# 2. Look inside Gemfile.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment