Created
January 6, 2011 23:35
-
-
Save nakajima/768851 to your computer and use it in GitHub Desktop.
Release whatever gem exists in whatever directory you're in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| gemspec = Dir['*.gemspec'].first | |
| gemspec || abort("You need to have a gem spec in this directory.") | |
| system("gem build #{gemspec}") | |
| gemfile = Dir['*.gem'].sort.last | |
| system("gem push #{gemfile}") && system("rm #{gemfile}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment