listen 2.1.0 → 2.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b358ff4d6b7a68de70fe803dfc173fe5b8c52ed8
4
- data.tar.gz: 59d00886af43fd6d7ee5c72d9cbdd865713ee041
3
+ metadata.gz: 61e8af1cad08697d602ec3d9286720a5c360aeec
4
+ data.tar.gz: 2ea72828155d539a39f14ff9b39886fd260eeaf8
5
5
  SHA512:
6
- metadata.gz: 36e89ba4d2df71211e6ece83b8f27384273a4c68b8efa85a0adf751d486f0a2579a5d0480c2e0022a0534ae44f52361d09477cce0619daf7e58e1d8fad8e8ad6
7
- data.tar.gz: b1414149c17f0cd68af1d9c5ed181d0d477095cb6cf6719c3cbd0f2e1d32221fd2729df3c171cbe3340188eb3f2b42d8d68ed3aa22199945651678b5d4a3a16c
6
+ metadata.gz: 6f94289f01b8afe38c36ff6fa59464520401905b28613beaebb5cf386c73448fac96272824dcc5610030d5ef65c206e1ff56d1e88712537a756bbb65db9d722e
7
+ data.tar.gz: 0183cd55cf11e77c8cc27758f739557371a508a5ec4dcac058e2f24c03e8f437fd61ea5758a0c2e79eda73548b20b7a6c931252eb5fc9d6c279a8437c3ba7f98
data/.travis.yml CHANGED
@@ -4,15 +4,11 @@ rvm:
4
4
  - 1.9.3
5
5
  - 2.0.0
6
6
  - jruby-19mode
7
- - jruby-head
8
7
  - rbx-19mode
9
- - rbx-head
10
8
  matrix:
11
9
  allow_failures:
12
10
  - rvm: jruby-19mode
13
- - rvm: jruby-head
14
11
  - rvm: rbx-19mode
15
- - rvm: rbx-head
16
12
  notifications:
17
13
  recipients:
18
14
  - thibaud@thibaud.me
data/README.md CHANGED
@@ -11,9 +11,11 @@ The Listen gem listens to file modifications and notifies you about the changes.
11
11
  * Detects file modification, addition and removal.
12
12
  * Allows supplying regexp-patterns to ignore paths for better results.
13
13
  * File content checksum comparison for modifications made under the same second (OS X only).
14
- * Tested on MRI Ruby environments (1.9+ only) via [Travis CI](https://travis-ci.org/guard/listen), JRuby and Rubinius should work with polling.
14
+ * Tested on MRI Ruby environments (1.9+ only) via [Travis CI](https://travis-ci.org/guard/listen),
15
15
 
16
- Please note that Windows and *BSD adapter aren't continuously and automaticaly tested.
16
+ Please note that:
17
+ - Specs suite on JRuby and Rubinius aren't reliable on Travis CI, but should work.
18
+ - Windows and *BSD adapter aren't continuously and automaticaly tested.
17
19
 
18
20
  ## Pending features
19
21
 
@@ -34,7 +34,7 @@ module Listen
34
34
  return if options[:polling_fallback_message] == false
35
35
 
36
36
  warning = options.fetch(:polling_fallback_message, POLLING_FALLBACK_MESSAGE)
37
- Kernel.warn "[Listen warning]:\n#{warning.gsub(/^(.*)/, ' \1')}"
37
+ Kernel.warn "[Listen warning]:\n #{warning}"
38
38
  end
39
39
  end
40
40
  end
@@ -32,7 +32,7 @@ module Listen
32
32
 
33
33
  def start
34
34
  worker = _init_worker
35
- worker.poll
35
+ Thread.new { worker.poll }
36
36
  end
37
37
 
38
38
  private
@@ -16,7 +16,7 @@ module Listen
16
16
 
17
17
  def start
18
18
  worker = _init_worker
19
- worker.run
19
+ Thread.new { worker.run }
20
20
  end
21
21
 
22
22
  private
@@ -31,7 +31,7 @@ module Listen
31
31
 
32
32
  def start
33
33
  worker = _init_worker
34
- worker.run
34
+ Thread.new { worker.run }
35
35
  rescue Errno::ENOSPC
36
36
  abort(INOTIFY_LIMIT_MESSAGE)
37
37
  end
@@ -14,7 +14,7 @@ module Listen
14
14
  end
15
15
 
16
16
  def start
17
- _poll_directories
17
+ Thread.new { _poll_directories }
18
18
  end
19
19
 
20
20
  private
@@ -25,7 +25,7 @@ module Listen
25
25
 
26
26
  def start
27
27
  worker = _init_worker
28
- worker.run!
28
+ Thread.new { worker.run! }
29
29
  end
30
30
 
31
31
  private
@@ -137,7 +137,7 @@ module Listen
137
137
  sleep 0.1
138
138
  end
139
139
 
140
- _terminate_celluloid_actors
140
+ _terminate_actors
141
141
  exit
142
142
  rescue => ex
143
143
  Kernel.warn "[Listen warning]: Change block raised an exception: #{$!}"
@@ -153,8 +153,8 @@ module Listen
153
153
  changes.each { |_, v| v.uniq! }
154
154
  end
155
155
 
156
- def _terminate_celluloid_actors
157
- Celluloid::Actor.kill(Celluloid::Actor[:listen_adapter])
156
+ def _terminate_actors
157
+ Celluloid::Actor[:listen_adapter].terminate
158
158
  Celluloid::Actor[:listen_silencer].terminate
159
159
  Celluloid::Actor[:listen_change_pool].terminate
160
160
  Celluloid::Actor[:listen_record].terminate
@@ -1,3 +1,3 @@
1
1
  module Listen
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.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.1.0
4
+ version: 2.1.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: 2013-10-13 00:00:00.000000000 Z
11
+ date: 2013-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid