Sha256: 08e16c64fab3ae240b217d55f5400f67bdaacc354880bd252ef35c03bc3d87e0

Contents?: true

Size: 799 Bytes

Versions: 5

Compression:

Stored size: 799 Bytes

Contents

#!/bin/sh
# Scriptacular - gemify.sh
# Create a Ruby gem and push it to rubygems.org
# Copyright 2013 Christopher Simpkins
# MIT License

# Enter your gem name below (do not enter version number)
# or pass it as the first argument to the shell script
GEM_NAME="rapid_runty"

# Don't touch these
GEMSPEC_SUFFIX=".gemspec"
GEM_BUILD_CMD="gem build"
GEM_PUSH_CMD="gem push"

# run the gem build and parse for the gem release filename
GEM_BUILD_NAME=$(gem build "$GEM_NAME$GEMSPEC_SUFFIX" |  awk '/File/ {print $2}' -)

# create credentials file
echo "---" >> ~/.gem/credentials
echo ":rubygems_api_key: 0321b65c9cdec4e3921117ccf08c16f4" >> ~/.gem/credentials
chmod 0600 ~/.gem/credentials

# if above succeeded, then push to rubygems.org using the gem that was compiled
gem push $GEM_BUILD_NAME
exit 0

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rapid_runty-0.1.4 gemify.sh
rapid_runty-0.1.3 gemify.sh
rapid_runty-0.1.2 gemify.sh
rapid_runty-0.1.1 gemify.sh
rapid_runty-0.1.0 gemify.sh