Sha256: b4b8e5644e6500a441fa39d119f6c9453bd6d7c78f4911710ee2f0146ca37889

Contents?: true

Size: 1.14 KB

Versions: 214

Compression:

Stored size: 1.14 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
  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

  # 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 % 100 == 0; then print true; else print false; end'`
  if [[ $tag_this_version_bool == 'true' ]]; then
    this_version=`ruby -r 'pwn' -e 'print PWN::VERSION'`
    echo "Tagging: ${this_version}"
    git tag $this_version
    last_tag=$(git tag | tail -n 2 | head -n 1)
    this_tag=$(git tag | tail -n 1)
    git log $last_tag...$this_tag --oneline > CHANGELOG_BETWEEN_TAGS.txt
  fi
else
  usage
fi

Version data entries

214 entries across 214 versions & 1 rubygems

Version Path
pwn-0.4.708 git_commit_test_reinit_gem.sh
pwn-0.4.707 git_commit_test_reinit_gem.sh
pwn-0.4.706 git_commit_test_reinit_gem.sh
pwn-0.4.705 git_commit_test_reinit_gem.sh
pwn-0.4.704 git_commit_test_reinit_gem.sh
pwn-0.4.703 git_commit_test_reinit_gem.sh
pwn-0.4.702 git_commit_test_reinit_gem.sh
pwn-0.4.701 git_commit_test_reinit_gem.sh
pwn-0.4.700 git_commit_test_reinit_gem.sh
pwn-0.4.699 git_commit_test_reinit_gem.sh
pwn-0.4.698 git_commit_test_reinit_gem.sh
pwn-0.4.697 git_commit_test_reinit_gem.sh
pwn-0.4.696 git_commit_test_reinit_gem.sh
pwn-0.4.695 git_commit_test_reinit_gem.sh
pwn-0.4.694 git_commit_test_reinit_gem.sh
pwn-0.4.693 git_commit_test_reinit_gem.sh
pwn-0.4.692 git_commit_test_reinit_gem.sh
pwn-0.4.691 git_commit_test_reinit_gem.sh
pwn-0.4.690 git_commit_test_reinit_gem.sh
pwn-0.4.689 git_commit_test_reinit_gem.sh