Created
November 16, 2021 09:32
-
-
Save krin-san/a2eb05a469be7590975096252f597e4e to your computer and use it in GitHub Desktop.
List gems without reverse dependencies
This file contains hidden or 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
#!/bin/bash | |
# Provides list of gems that have nothing depending on them | |
for target in $(gem list -l --no-verbose | cut -d ' ' -f 1); do | |
if [ "$(gem dependency -lr $target | wc -l)" -eq 2 ]; then | |
echo "$target" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment