Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (14 sloc) 0.382 kb
#!/usr/bin/env bash
gem="$1"
info=`gem list -d "$gem" | grep "Installed at"`
if [ -z "$info" ]; then
echo "There is no gem $gem installed"
exit 1
fi
version=`echo $info | awk '{print $3}' | sed "s/[():]//g"`
path=`echo $info | awk '{print $4}'`
gem_path="$path/gems/$gem-$version"
if [ ! -d "$gem_path" ]; then
echo "Warning: this is not a directory"
fi
echo $gem_path
Jump to Line
Something went wrong with that request. Please try again.