listen 0.3.0 → 0.3.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.
data/CHANGELOG.md CHANGED
@@ -1,10 +1,20 @@
1
+ ## 0.3.1 - February 22, 2012
2
+
3
+ ### Bug fix
4
+
5
+ - [#9](https://github.com/guard/listen/issues/9): Ignore doesn't seem to work. (reported by [@markiz][], fixed by [@thibaudgg][])
6
+
1
7
  ## 0.3.0 - February 21, 2012
2
8
 
9
+ ### New features
10
+
3
11
  - Add automatic fallback to polling if system adapter doesn't work (like a DropBox folder). ([@thibaudgg][])
4
12
  - Add latency and force_polling options. ([@Maher4Ever][])
5
13
 
6
14
  ## 0.2.0 - February 13, 2012
7
15
 
16
+ ### New features
17
+
8
18
  - Add checksum comparaison support for detecting consecutive file modifications made during the same second. ([@thibaudgg][])
9
19
  - Add rb-fchange support. ([@thibaudgg][])
10
20
  - Add rb-inotify support. ([@thibaudgg][] with [@Maher4Ever][] help)
@@ -16,5 +26,6 @@
16
26
 
17
27
  - First version with only a polling adapter and basic features set (ignore & filter). ([@thibaudgg][])
18
28
 
29
+ [@markiz]: https://github.com/markiz
19
30
  [@thibaudgg]: https://github.com/thibaudgg
20
31
  [@Maher4Ever]: https://github.com/Maher4Ever
@@ -39,7 +39,7 @@ module Listen
39
39
  @block = block
40
40
  @ignored_paths += Array(options.delete(:ignore)) if options[:ignore]
41
41
  @file_filters += Array(options.delete(:filter)) if options[:filter]
42
-
42
+
43
43
  @adapter_options = options
44
44
  end
45
45
 
@@ -115,7 +115,7 @@ module Listen
115
115
  @adapter_options[:force_polling] = value
116
116
  self
117
117
  end
118
-
118
+
119
119
  # Defines a custom polling fallback message of disable it.
120
120
  #
121
121
  # @example Disabling the polling fallback message
@@ -289,12 +289,12 @@ module Listen
289
289
  next if @directory == path
290
290
 
291
291
  if File.directory?(path)
292
- if directory != path && (ignored_path?(path) || (!options[:recursive] && existing_path?(path)))
292
+ if ignored_path?(path) || (directory != path && (!options[:recursive] && existing_path?(path)))
293
293
  Find.prune # Don't look any further into this directory.
294
294
  else
295
295
  insert_path(path)
296
296
  end
297
- elsif !existing_path?(path) && !ignored_path?(path) && filtered_file?(path)
297
+ elsif !ignored_path?(path) && filtered_file?(path) && !existing_path?(path)
298
298
  @changes[:added] << relative_path(path) if File.file?(path)
299
299
  insert_path(path)
300
300
  end
@@ -1,3 +1,3 @@
1
1
  module Listen
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: listen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-21 00:00:00.000000000 Z
12
+ date: 2012-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb-fsevent
16
- requirement: &70190939404480 !ruby/object:Gem::Requirement
16
+ requirement: &70155283627820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70190939404480
24
+ version_requirements: *70155283627820
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rb-inotify
27
- requirement: &70190939403840 !ruby/object:Gem::Requirement
27
+ requirement: &70155283627360 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.8.8
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70190939403840
35
+ version_requirements: *70155283627360
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rb-fchange
38
- requirement: &70190939403220 !ruby/object:Gem::Requirement
38
+ requirement: &70155283626780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.0.5
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70190939403220
46
+ version_requirements: *70155283626780
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70190939402680 !ruby/object:Gem::Requirement
49
+ requirement: &70155283626220 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70190939402680
57
+ version_requirements: *70155283626220
58
58
  description: The Listen gem listens to file modifications and notifies you about the
59
59
  changes. Works everywhere!
60
60
  email: