errplane 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/specs.watchr DELETED
@@ -1,22 +0,0 @@
1
- watch( '^lib/errplane.rb' ) { build "rake spec" }
2
- watch( '^lib/errplane/(.*)\.rb' ) { |m| build "rake spec" }
3
- watch( '^spec/spec_helper\.rb' ) { |m| build "rake spec" }
4
- watch( '^spec/unit/(.*)_spec\.rb' ) { |m| build "rake spec" }
5
- watch( '^spec/integration/(.*)_spec\.rb' ) { |m| build "rake spec" }
6
-
7
- # Signal.trap('QUIT') { build specs } # Ctrl-\
8
- Signal.trap('QUIT') { puts; build "rake spec" } # Ctrl-\
9
- Signal.trap('INT' ) { abort("\n") } # Ctrl-C
10
-
11
- def build(*paths)
12
- run "bundle exec #{paths.flatten.join(' ')}"
13
- end
14
-
15
- def specs
16
- Dir['spec/**/spec_*.rb'] - ['spec/spec_helper.rb']
17
- end
18
-
19
- def run( cmd )
20
- puts "Running `#{cmd}'"
21
- system cmd
22
- end