Skip to content

Instantly share code, notes, and snippets.

@DamirSvrtan
Last active December 31, 2015 21:29
Show Gist options
  • Save DamirSvrtan/8047418 to your computer and use it in GitHub Desktop.
Save DamirSvrtan/8047418 to your computer and use it in GitHub Desktop.
gem_builder.sh
if [ -z $1 ]; then
GEM_NAME=${PWD##*/}
else
GEM_NAME=$1
fi
GEMSPEC="$GEM_NAME.gemspec"
if [ -f $GEMSPEC ];then
gem build $GEMSPEC
echo "----------------------------"
gem install $GEM_NAME
else
echo "\033[33;31m$GEMSPEC not found"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment