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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c36c878c828e97095cc4497053d1243846ab65e
4
- data.tar.gz: 1a1b6cb5c69ac240031139da5c8799a9fb621370
3
+ metadata.gz: fa8f979865ee9df1416e036a6fc2d79624dee8f4
4
+ data.tar.gz: ee557dc2c27b50d6dcef4a1194396d9f2525467c
5
5
  SHA512:
6
- metadata.gz: a8cc54bd15b9e71184141775941b546acf42103d24f47f1eeaf713ba2d1f3c01fd7fa6e46995415418f84ad532572a41a79dd4966bf36bbdada4c5d562fd6646
7
- data.tar.gz: d0c4813cf6417449bb38687dbcc723993a9b59952a67f6bb6ac58eed65d6bd0d67eebd10910968a291bcfa540097ef81084cddb7af9085ea75b6ec4bdf89f43b
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
@@ -1,5 +1,5 @@
1
1
  require 'thor'
2
- require 'Listen'
2
+ require 'listen'
3
3
 
4
4
  module Listen
5
5
  class CLI < Thor
@@ -1,3 +1,3 @@
1
1
  module Listen
2
- VERSION = '2.6.0'
2
+ VERSION = '2.6.1'
3
3
  end
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.0
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-23 00:00:00.000000000 Z
11
+ date: 2014-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid