Sha256: 3f697c04814ab6f4c819949797a53b660929d8c106939d99241191aa827b3521

Contents?: true

Size: 1.18 KB

Versions: 361

Compression:

Stored size: 1.18 KB

Contents

#!/bin/bash --login
usage() {
  echo "USAGE: ${0} '<full name>' <email address> '<git commit comments>'"
  exit 1
}

if (( $# == 3 )); then
  # Default Strategy is to merge codebase
  git config pull.rebase false
  git config commit.gpgsign true
  git pull
  git add . --all
  echo 'Updating Gems to Latest Versions in Gemfile...'
  ./find_latest_gem_versions_per_Gemfile.sh
  pwn_autoinc_version

  # Tag for every 100 commits (i.e. 0.1.100, 0.1.200, etc)
  tag_this_version_bool=`ruby -r 'pwn' -e 'if (PWN::VERSION.split(".")[-1].to_i + 1) % 100 == 0; then print true; else print false; end'`
  if [[ $tag_this_version_bool == 'true' ]]; then
    last_tag=$(git tag | tail -n 1)
    git log $last_tag.. --oneline > CHANGELOG_BETWEEN_TAGS.txt
  fi

  git commit -a -S --author="${1} <${2}>" -m "${3}"
  ./update_pwn.sh

  latest_gem=$(ls pkg/*.gem)
  if [[ $latest_gem != "" ]]; then
    echo "Pushing ${latest_gem} to RubyGems.org..."
    rvmsudo gem push $latest_gem --debug
  fi

  if [[ $tag_this_version_bool == 'true' ]]; then
    this_version=`ruby -r 'pwn' -e 'print PWN::VERSION'`
    echo "Tagging: ${this_version}"
    git tag $this_version
    git push origin $this_version
  fi
else
  usage
fi

Version data entries

361 entries across 361 versions & 1 rubygems

Version Path
pwn-0.4.823 git_commit_test_reinit_gem.sh
pwn-0.4.822 git_commit_test_reinit_gem.sh
pwn-0.4.821 git_commit_test_reinit_gem.sh
pwn-0.4.820 git_commit_test_reinit_gem.sh
pwn-0.4.819 git_commit_test_reinit_gem.sh
pwn-0.4.818 git_commit_test_reinit_gem.sh
pwn-0.4.817 git_commit_test_reinit_gem.sh
pwn-0.4.816 git_commit_test_reinit_gem.sh
pwn-0.4.815 git_commit_test_reinit_gem.sh
pwn-0.4.814 git_commit_test_reinit_gem.sh
pwn-0.4.813 git_commit_test_reinit_gem.sh
pwn-0.4.812 git_commit_test_reinit_gem.sh
pwn-0.4.810 git_commit_test_reinit_gem.sh
pwn-0.4.809 git_commit_test_reinit_gem.sh
pwn-0.4.808 git_commit_test_reinit_gem.sh
pwn-0.4.807 git_commit_test_reinit_gem.sh
pwn-0.4.806 git_commit_test_reinit_gem.sh
pwn-0.4.805 git_commit_test_reinit_gem.sh
pwn-0.4.804 git_commit_test_reinit_gem.sh
pwn-0.4.803 git_commit_test_reinit_gem.sh