Sha256: 62a8309dcd382395d564119a59695f991449b0060a510ae91a5e5a2c6b323a2a

Contents?: true

Size: 681 Bytes

Versions: 15

Compression:

Stored size: 681 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="$(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

15 entries across 10 versions & 4 rubygems

Version Path
tvd-tvdinner-0.0.8 cookbooks/tvdinner/files/default/jasonx/build-gem
tvd-tvdinner-0.0.6 cookbooks/tvdinner/files/default/jasonx/build-gem
tvd-tvdinner-0.0.5 cookbooks/tvdinner/files/default/jasonx/build-gem
tvd-tvdinner-0.0.4 cookbooks/tvdinner/files/default/jasonx/build-gem
tvd-tvdinner-0.0.3 cookbooks/tvdinner/files/default/jasonx/build-gem
ghp-0.0.2 libexec/build-gem
ghp-0.0.2 libexec/build
opsdb-0.0.1 libexec/build-gem
opsdb-0.0.1 libexec/build
alpha_omega-1.5.15 libexec/build-gem
alpha_omega-1.5.15 libexec/build
alpha_omega-1.5.14 libexec/build-gem
alpha_omega-1.5.14 libexec/build
alpha_omega-1.5.12 libexec/build
alpha_omega-1.5.12 libexec/build-gem