spectator 1.1.a3 → 1.1.a4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/spectator +5 -4
  2. data/lib/spectator/version.rb +1 -1
  3. metadata +3 -3
@@ -38,7 +38,9 @@ end
38
38
 
39
39
  peepr.set_files Dir[File.join(Dir.pwd, '{app,spec,lib,script}/**/*')]
40
40
 
41
- launcher = lambda do |_, file|
41
+
42
+
43
+ $launcher = lambda do |_, file|
42
44
  peepr.rules.each do |(regexp, action)|
43
45
  regexp = Regexp.new(regexp)
44
46
  if file =~ regexp
@@ -48,9 +50,8 @@ launcher = lambda do |_, file|
48
50
  end
49
51
  end
50
52
 
51
-
52
53
  FSSM.monitor(Dir.pwd, '{app,spec,lib,script}/**/*') do
53
- update {|base, relative| launcher(base, relative) }
54
- create {|base, relative| launcher(base, relative) }
54
+ update {|base, relative| $launcher[base, relative] }
55
+ create {|base, relative| $launcher[base, relative] }
55
56
  delete {|base, relative| '''do nothing''' }
56
57
  end
@@ -1,3 +1,3 @@
1
1
  module Spectator
2
- VERSION = '1.1.a3'
2
+ VERSION = '1.1.a4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 155
4
+ hash: 149
5
5
  prerelease: 4
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
9
  - a
10
- - 3
11
- version: 1.1.a3
10
+ - 4
11
+ version: 1.1.a4
12
12
  platform: ruby
13
13
  authors:
14
14
  - Elia