listen 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.4.7 - June 27, 2012
2
+
3
+ ### Bug fixes
4
+
5
+ - Increase latency to 0.25, to avoid useless polling fallback. (fixed by [@thibaudgg][])
6
+ - Change watched inotify events, to avoid duplication callback. (fixed by [@thibaudgg][])
7
+ - [#41](https://github.com/guard/listen/issues/41) Use lstat instead of stat when calculating mtime. (fixed by [@ebroder][])
8
+
1
9
  ## 0.4.6 - June 20, 2012
2
10
 
3
11
  ### Bug fix
@@ -124,6 +132,7 @@
124
132
  [#39]: https://github.com/guard/listen/issues/39
125
133
  [@Maher4Ever]: https://github.com/Maher4Ever
126
134
  [@dkubb]: https://github.com/dkubb
135
+ [@ebroder]: https://github.com/ebroder
127
136
  [@akerbos]: https://github.com/akerbos
128
137
  [@cobychapple]: https://github.com/cobychapple
129
138
  [@daemonza]: https://github.com/daemonza
data/README.md CHANGED
@@ -191,7 +191,7 @@ These options can be set through `Listen.to` params or via methods (see the "Obj
191
191
  # default: See DEFAULT_IGNORED_DIRECTORIES and DEFAULT_IGNORED_EXTENSIONS in Listen::DirectoryRecord
192
192
 
193
193
  :latency => 0.5 # Set the delay (**in seconds**) between checking for changes
194
- # default: 0.1 sec (1.0 sec for polling)
194
+ # default: 0.25 sec (1.0 sec for polling)
195
195
 
196
196
  :relative_paths => true # Enable the use of relative paths in the callback.
197
197
  # default: false
@@ -8,7 +8,7 @@ module Listen
8
8
  attr_accessor :directories, :latency, :paused
9
9
 
10
10
  # The default delay between checking for changes.
11
- DEFAULT_LATENCY = 0.1
11
+ DEFAULT_LATENCY = 0.25
12
12
 
13
13
  # The default warning message when falling back to polling adapter.
14
14
  POLLING_FALLBACK_MESSAGE = "WARNING: Listen has fallen back to polling, learn more at https://github.com/guard/listen#fallback."
@@ -10,7 +10,7 @@ module Listen
10
10
  # @see http://www.tin.org/bin/man.cgi?section=7&topic=inotify
11
11
  # @see https://github.com/nex3/rb-inotify/blob/master/lib/rb-inotify/notifier.rb#L99-L177
12
12
  #
13
- EVENTS = %w[recursive attrib close modify move create delete delete_self move_self]
13
+ EVENTS = %w[recursive attrib create delete move close_write]
14
14
 
15
15
  # The message to show when the limit of inotify watchers is not enough
16
16
  #
@@ -312,7 +312,7 @@ module Listen
312
312
  # @return [Fixnum, Float] the mtime of the file
313
313
  #
314
314
  def mtime_of(file)
315
- File.mtime(file).send(HIGH_PRECISION_SUPPORTED ? :to_f : :to_i)
315
+ File.lstat(file).mtime.send(HIGH_PRECISION_SUPPORTED ? :to_f : :to_i)
316
316
  end
317
317
  end
318
318
  end
@@ -1,3 +1,3 @@
1
1
  module Listen
2
- VERSION = '0.4.6'
2
+ VERSION = '0.4.7'
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.4.6
4
+ version: 0.4.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-06-20 00:00:00.000000000 Z
13
+ date: 2012-06-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rb-fsevent