listen 2.8.3 → 2.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -3
- data/README.md +5 -1
- data/lib/listen/adapter.rb +1 -1
- data/lib/listen/silencer.rb +14 -0
- data/lib/listen/version.rb +1 -1
- data/spec/lib/listen/silencer_spec.rb +15 -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: 12793c4773ab97a1c6dae6b24118a9dd6cdb65c5
|
4
|
+
data.tar.gz: 40934da6856ee4f074b7487bbf9b733d7c352c71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df21cae8514eecb194d12f3a01adb142bbc60bd8548b41821292c951607b54d73ff36b8b9590978afabbcfb0fe17f9e2d0155727cbfc8923eba7a65c177b8237
|
7
|
+
data.tar.gz: b10c7d7068c590686d3d2081960b2145484b9aea2ef4143b5b73df2a0bd37bdf0a403ea764963446af44a63e01b3e82de74a341df2c3123c711253829db36712
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -168,7 +168,7 @@ debug: true # Enable Celluloid logger
|
|
168
168
|
# default: false
|
169
169
|
|
170
170
|
polling_fallback_message: 'custom message' # Set a custom polling fallback message (or disable it with false)
|
171
|
-
# default: "Listen will be polling for changes. Learn more at https://github.com/guard/listen#
|
171
|
+
# default: "Listen will be polling for changes. Learn more at https://github.com/guard/listen#listen-adapters."
|
172
172
|
```
|
173
173
|
|
174
174
|
Also, setting the environment variable `LISTEN_GEM_DEBUGGING=1` does the same as `debug: true` above.
|
@@ -222,6 +222,10 @@ end
|
|
222
222
|
|
223
223
|
```
|
224
224
|
|
225
|
+
### Getting the [polling fallback message](#options)?
|
226
|
+
|
227
|
+
Please visit the [installation section of the Listen WIKI](https://github.com/guard/listen/wiki#installation) for more information and options for potential fixes.
|
228
|
+
|
225
229
|
### Issues and troubleshooting
|
226
230
|
|
227
231
|
*NOTE: without providing the output after setting the `LISTEN_GEM_DEBUGGING=1` environment variable, it can be almost impossible to guess why listen is not working as expected.*
|
data/lib/listen/adapter.rb
CHANGED
@@ -9,7 +9,7 @@ module Listen
|
|
9
9
|
module Adapter
|
10
10
|
OPTIMIZED_ADAPTERS = [Darwin, Linux, BSD, Windows]
|
11
11
|
POLLING_FALLBACK_MESSAGE = 'Listen will be polling for changes.'\
|
12
|
-
'Learn more at https://github.com/guard/listen#
|
12
|
+
'Learn more at https://github.com/guard/listen#listen-adapters.'
|
13
13
|
|
14
14
|
def self.select(options = {})
|
15
15
|
_log :debug, 'Adapter: considering TCP ...'
|
data/lib/listen/silencer.rb
CHANGED
@@ -32,6 +32,20 @@ module Listen
|
|
32
32
|
| \.swpx
|
33
33
|
| ^4913
|
34
34
|
|
35
|
+
# Sed temporary files - but without actual words, like 'sedatives'
|
36
|
+
| (?:^
|
37
|
+
sed
|
38
|
+
|
39
|
+
(?:
|
40
|
+
[a-zA-Z0-9]{0}[A-Z]{1}[a-zA-Z0-9]{5} |
|
41
|
+
[a-zA-Z0-9]{1}[A-Z]{1}[a-zA-Z0-9]{4} |
|
42
|
+
[a-zA-Z0-9]{2}[A-Z]{1}[a-zA-Z0-9]{3} |
|
43
|
+
[a-zA-Z0-9]{3}[A-Z]{1}[a-zA-Z0-9]{2} |
|
44
|
+
[a-zA-Z0-9]{4}[A-Z]{1}[a-zA-Z0-9]{1} |
|
45
|
+
[a-zA-Z0-9]{5}[A-Z]{1}[a-zA-Z0-9]{0}
|
46
|
+
)
|
47
|
+
)
|
48
|
+
|
35
49
|
# other files
|
36
50
|
| \.DS_Store
|
37
51
|
| \.tmp
|
data/lib/listen/version.rb
CHANGED
@@ -34,11 +34,25 @@ describe Listen::Silencer do
|
|
34
34
|
# Vim swap files
|
35
35
|
ignored += %w(foo.swp foo.swx foo.swpx 4913)
|
36
36
|
|
37
|
+
# sed temp files
|
38
|
+
ignored += %w(sedq7eVAR sed86w1kB)
|
39
|
+
|
37
40
|
ignored.each do |path|
|
38
41
|
it { should_not accept(:file, path) }
|
39
42
|
end
|
40
43
|
|
41
|
-
%w(
|
44
|
+
%w(
|
45
|
+
foo.tmpl file.new file54321.new a.swf 14913 49131
|
46
|
+
|
47
|
+
sed_ABCDE
|
48
|
+
sedabcdefg
|
49
|
+
.sedq7eVAR
|
50
|
+
foo.sedq7eVAR
|
51
|
+
sedatives
|
52
|
+
sediments
|
53
|
+
sedan2014
|
54
|
+
|
55
|
+
).each do |path|
|
42
56
|
it { should accept(:file, path) }
|
43
57
|
end
|
44
58
|
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.8.
|
4
|
+
version: 2.8.4
|
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-
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|