Created
November 20, 2015 19:26
-
-
Save peijiehu/11a46581079ccad7ff04 to your computer and use it in GitHub Desktop.
Find gems that depend on a given gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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