Sha256: 24558fd2fbf6f05b99137cc971f84391a64f794e741c9cba8c8e86c538f5029b

Contents?: true

Size: 695 Bytes

Versions: 13

Compression:

Stored size: 695 Bytes

Contents

#!/bin/bash

#/ NAME
#/     build-gem -- upload the latest (timestamp) rubygem to rubygems.org
#/
#/ SYNOPSIS
#/     build gem -n gem_name

# figure out the project root under which bin, lib live
shome="$(unset CDPATH; cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"

# load a jason bourne library
source "$shome/libexec/_jason"

# define command line options:
DEFINE_string 'name' "$(basename "$shome")" 'name of gem' 'n'

# entry point
function main {
  local pth_gemspec="$shome/$FLAGS_name.gemspec"
  if [[ ! -e "$pth_gemspec" ]]; then
    logger_fatal "could not find gemspec $pth_gemspec"
    exit 1
  fi

  cd "$shome"
  gem build "$pth_gemspec"
}

require sub "$BASH_SOURCE" "$@"

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
alox-0.0.7 libexec/build-gem
alox-0.0.6 libexec/build-gem
alox-0.0.5 libexec/build-gem
alox-0.0.4 libexec/build-gem
alox-0.0.3 libexec/build-gem
alox-0.0.1 libexec/build-gem
tvd-tvdinner-0.0.16 cookbooks/tvdinner/files/default/jasonx/build-gem
tvd-tvdinner-0.0.15 cookbooks/tvdinner/files/default/jasonx/build-gem
tvd-tvdinner-0.0.14 cookbooks/tvdinner/files/default/jasonx/build-gem
tvd-tvdinner-0.0.13 cookbooks/tvdinner/files/default/jasonx/build-gem
tvd-tvdinner-0.0.12 cookbooks/tvdinner/files/default/jasonx/build-gem
tvd-tvdinner-0.0.11 cookbooks/tvdinner/files/default/jasonx/build-gem
tvd-tvdinner-0.0.9 cookbooks/tvdinner/files/default/jasonx/build-gem