#!/bin/bash cp oneaccess.gemspec oneaccess.gemspec.backup sed -i.bak s/0.0.0/$1/g oneaccess.gemspec sed -i.bak s/2001-01-01/`date +%Y-%m-%d`/g oneaccess.gemspec gem build oneaccess.gemspec mv oneaccess.gemspec.backup oneaccess.gemspec gem push oneaccess-$1.gem git tag -a v$1 -m "Release v$1" git push origin --tags