listen 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/listen.rb +8 -0
- data/lib/listen/cli.rb +1 -1
- data/lib/listen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa8f979865ee9df1416e036a6fc2d79624dee8f4
|
4
|
+
data.tar.gz: ee557dc2c27b50d6dcef4a1194396d9f2525467c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76aca75686991d97307b26be669e6b94b89440f87a1698eb9b1508b036fd16db3cfff30cd3fe96616ad935fe858e3d9cc68c7c45606263ba8e083171dd5f5528
|
7
|
+
data.tar.gz: 27575706c841bc47f8cd32fb40b413fbc211e60291a06a06b1aa36d1e3325608acc42898bb1cf3891e34ea5916456dc305e673286b5066bf5acc7817a4b4daec
|
data/lib/listen.rb
CHANGED
@@ -20,6 +20,7 @@ module Listen
|
|
20
20
|
# @return [Listen::Listener] the listener
|
21
21
|
#
|
22
22
|
def to(*args, &block)
|
23
|
+
boot_celluloid
|
23
24
|
@stopping = false
|
24
25
|
options = args.last.is_a?(Hash) ? args.last : {}
|
25
26
|
if target = options.delete(:forward_to)
|
@@ -33,6 +34,7 @@ module Listen
|
|
33
34
|
#
|
34
35
|
def stop
|
35
36
|
@stopping = true
|
37
|
+
Celluloid.shutdown
|
36
38
|
end
|
37
39
|
|
38
40
|
# Listens to file system modifications broadcast over TCP.
|
@@ -50,6 +52,12 @@ module Listen
|
|
50
52
|
TCP::Listener.new(target, :recipient, *args, &block)
|
51
53
|
end
|
52
54
|
|
55
|
+
private
|
56
|
+
|
57
|
+
def boot_celluloid
|
58
|
+
Celluloid.boot unless Celluloid.running?
|
59
|
+
end
|
60
|
+
|
53
61
|
end
|
54
62
|
|
55
63
|
end
|
data/lib/listen/cli.rb
CHANGED
data/lib/listen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: listen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibaud Guillaume-Gentil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|