Skip to content

Instantly share code, notes, and snippets.

@jtescher
Created March 21, 2013 23:54
Show Gist options
  • Save jtescher/5217899 to your computer and use it in GitHub Desktop.
Save jtescher/5217899 to your computer and use it in GitHub Desktop.
Determine outdated gems without listing dependencies of dependencies
#!/bin/bash
bundle outdated | awk '{print($2)}' | while read line
do
if grep -q "gem '$line'" Gemfile; then
echo $line
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment