Sha256: e79fb5b883cea2200f22373f7b1a149a415086fb0034aaa5c7d96743036327db

Contents?: true

Size: 771 Bytes

Versions: 8

Compression:

Stored size: 771 Bytes

Contents

# Run me with:
#
#   $ watchr gem.watchr
#
# Manifest file can be automatically generated with:
# 
#   $ cat .git/hooks/post-commit
#   #!bin/sh
#   git ls-files > Manifest
#

# --------------------------------------------------
# Helpers
# --------------------------------------------------
def build
  system "rake -s gem"; puts
end

# --------------------------------------------------
# Watchr Rules
# --------------------------------------------------
watch( '^Rakefile$' ) { build }
watch( '^Manifest$' ) { build }

# --------------------------------------------------
# Signal Handling
# --------------------------------------------------
# Ctrl-\
Signal.trap('QUIT') do
  puts " --- Building Gem ---\n\n"
  build
end

# Ctrl-C
Signal.trap('INT') { abort("\n") }

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
nanotest-0.9.4.1 gem.watchr
nanotest-0.9.4 gem.watchr
nanotest-0.9.3 gem.watchr
nanotest_spec-0.9 gem.watchr
nanotest-0.9.2 gem.watchr
nanocontexts-0.9 gem.watchr
nanotest-0.9.1 gem.watchr
nanotest-0.9 gem.watchr