push
travis-ci
650 of 650 new or added lines in 30 files covered. (100.0%)
620 of 852 relevant lines covered (72.77%)
6.81 hits per line
|
module Listen |
5✔ |
|
module Adapter |
5✔ |
3 |
|
|
|
class Base |
5✔ |
|
include Celluloid
|
5✔ |
6 |
|
|
7 |
# The default delay between checking for changes.
|
|
|
DEFAULT_LATENCY = 0.1 |
5✔ |
9 |
|
|
|
def self.usable? |
5✔ |
|
raise NotImplementedError
|
2 only ruby-head and 2.0.0 ✔ |
12 |
end
|
|
13 |
|
|
|
def start |
5✔ |
|
raise NotImplementedError
|
× |
16 |
end
|
|
17 |
|
|
|
private |
5✔ |
19 |
|
|
|
def _latency |
5✔ |
|
_listener.options[:latency] || DEFAULT_LATENCY |
4 only ruby-head and 2.0.0 ✔ |
22 |
end
|
|
23 |
|
|
|
def _directories_path |
5✔ |
|
_listener.directories_path |
4 only ruby-head and 2.0.0 ✔ |
26 |
end
|
|
27 |
|
|
|
def _notify_change(path, options) |
5✔ |
|
_change_pool.async.change(path, options) |
2 only ruby-head and 2.0.0 ✔ |
30 |
end
|
|
31 |
|
|
|
def _listener |
5✔ |
|
Actor[:listener] |
8 only ruby-head and 2.0.0 ✔ |
34 |
end
|
|
35 |
|
|
|
def _change_pool |
5✔ |
|
Actor[:change_pool] |
2 only ruby-head and 2.0.0 ✔ |
38 |
end
|
|
39 |
end
|
|
40 |
|
|
41 |
end
|
|
42 |
end
|