bonethug 0.0.54.3 → 0.0.54.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bonethug/version.rb +2 -2
- data/lib/bonethug/watcher.rb +3 -1
- metadata +1 -1
data/lib/bonethug/version.rb
CHANGED
data/lib/bonethug/watcher.rb
CHANGED
@@ -10,6 +10,7 @@ require 'fileutils'
|
|
10
10
|
require 'find'
|
11
11
|
require 'digest/md5'
|
12
12
|
require 'yaml'
|
13
|
+
require 'rbconfig'
|
13
14
|
|
14
15
|
module Bonethug
|
15
16
|
|
@@ -108,7 +109,8 @@ module Bonethug
|
|
108
109
|
end
|
109
110
|
|
110
111
|
puts 'Starting Watch Daemon...'
|
111
|
-
|
112
|
+
poll = RbConfig::CONFIG['target_os'] =~ /mswin|mingw|cygwin/i ? '--force-polling' : ''
|
113
|
+
exec 'bundle exec guard --debug ' + poll + ' --guardfile "' + target + '/.bonethug/Guardfile"'
|
112
114
|
|
113
115
|
end
|
114
116
|
|