Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (31 sloc) 0.771 kb
3150626 @mynyml Initial commit
authored
1 # Run me with:
2 #
3 # $ watchr gem.watchr
4 #
5 # Manifest file can be automatically generated with:
6 #
7 # $ cat .git/hooks/post-commit
8 # #!bin/sh
9 # git ls-files > Manifest
10 #
11
12 # --------------------------------------------------
13 # Helpers
14 # --------------------------------------------------
15 def build
16 system "rake -s gem"; puts
17 end
18
19 # --------------------------------------------------
20 # Watchr Rules
21 # --------------------------------------------------
22 watch( '^Rakefile$' ) { build }
23 watch( '^Manifest$' ) { build }
24
25 # --------------------------------------------------
26 # Signal Handling
27 # --------------------------------------------------
28 # Ctrl-\
29 Signal.trap('QUIT') do
30 puts " --- Building Gem ---\n\n"
31 build
32 end
33
34 # Ctrl-C
35 Signal.trap('INT') { abort("\n") }
36
Something went wrong with that request. Please try again.