build_gem.sh in jarbler-0.1.2 vs build_gem.sh in jarbler-0.1.3
- old
+ new
@@ -1,6 +1,10 @@
-# Steps for creating gem
+# Steps for creating gem in local environment
+
+# remove existing gem file
+rm -f jarbler-*.gem
+
rake test
if [ $? -ne 0 ]; then
echo "Tests failed."
exit 1
fi
@@ -9,10 +13,10 @@
if [ $? -ne 0 ]; then
echo "Gem build failed."
exit 1
fi
-gem install jarbler-0.1.0.gem
+gem install `ls jarbler-*.gem`
if [ $? -ne 0 ]; then
echo "Gem install failed."
exit 1
fi