fswatch 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/fswatch.rb +2 -2
  2. data/lib/fswatch/version.rb +1 -1
  3. metadata +8 -8
@@ -13,7 +13,7 @@ module FSWatch
13
13
  print red, "\n\n--- Changed: ", bold, blue, directories.inspect, reset, "\n"
14
14
  if @processPid
15
15
  status = Process.wait(@processPid, Process::WNOHANG)
16
- if status == nil
16
+ if @opts[:kill] && status == nil
17
17
  print red, "!!! Killing #{@processPid}", reset, "\n"
18
18
  Process.kill("KILL", @processPid)
19
19
  end
@@ -43,7 +43,7 @@ A utility for triggering a command on file system change.
43
43
  opt :start, "whether the command should be executed immediately on start", :default => true
44
44
  opt :dir, "the directory to watch", :default => '.'
45
45
  opt :throttle, "only allow one fsevent in the given amount of seconds", :default => 1
46
- opt :kill, "forcibly restart the command if it's still running during an fs trigger", :short => :x
46
+ opt :kill, "forcibly restart the command if it's still running during an fs trigger", :short => :x, :default => false
47
47
  opt :paths, "append the changed paths when calling the command"
48
48
  end
49
49
 
@@ -1,3 +1,3 @@
1
1
  module Fswatch
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fswatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-26 00:00:00.000000000Z
12
+ date: 2012-03-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb-fsevent
16
- requirement: &70131258592000 !ruby/object:Gem::Requirement
16
+ requirement: &70249466709020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70131258592000
24
+ version_requirements: *70249466709020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: trollop
27
- requirement: &70131258591000 !ruby/object:Gem::Requirement
27
+ requirement: &70249466697300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70131258591000
35
+ version_requirements: *70249466697300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: term-ansicolor
38
- requirement: &70131258590140 !ruby/object:Gem::Requirement
38
+ requirement: &70249466696660 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70131258590140
46
+ version_requirements: *70249466696660
47
47
  description: ''
48
48
  email:
49
49
  - wiktor@tumblr.com