Skip to content

Instantly share code, notes, and snippets.

@defunkt
Created June 4, 2010 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save defunkt/425186 to your computer and use it in GitHub Desktop.
Save defunkt/425186 to your computer and use it in GitHub Desktop.
Builds and publishes a RubyGem.
#!/bin/sh -e
# Usage: gem-publish resque.gemspec
# Builds and publishes a RubyGem.
GEM=`gem build $1 2> /dev/null | grep File: | sed -e 's/File://'`
gem push $GEM
rm $GEM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment