Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (26 sloc) 0.728 kb
# Run me with:
#
# $ watchr gem.watchr
# --------------------------------------------------
# Convenience Methods
# --------------------------------------------------
def build(gemspec)
system "gem build %s" % gemspec
FileUtils.mv Dir['watchr-*.gem'], 'pkg/'
puts
end
# --------------------------------------------------
# Watchr Rules
# --------------------------------------------------
watch( '^watchr.gemspec$' ) { |m| build m[0] }
# --------------------------------------------------
# Signal Handling
# --------------------------------------------------
# Ctrl-\
Signal.trap('QUIT') do
puts " --- Building Gem ---\n\n"
build 'watchr.gemspec'
end
# Ctrl-C
Signal.trap('INT') { abort("\n") }
# vim:ft=ruby
Jump to Line
Something went wrong with that request. Please try again.