listen 0.4.5 → 0.4.6

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.
@@ -1,22 +1,28 @@
1
+ ## 0.4.6 - June 20, 2012
2
+
3
+ ### Bug fix
4
+
5
+ - [#39](https://github.com/guard/listen/issues/39) Fix digest race condition. (fixed by [@dkubb][])
6
+
1
7
  ## 0.4.5 - June 13, 2012
2
8
 
3
- ### Bug fixes
9
+ ### Bug fix
4
10
 
5
- - [#39](https://github.com/guard/listen/issues/39). Rescue Errno::ENOENT when path inserted doesn't exist. (reported by [@textgoeshere][], fixed by [@thibaudgg][])
11
+ - [#39](https://github.com/guard/listen/issues/39) Rescue Errno::ENOENT when path inserted doesn't exist. (reported by [@textgoeshere][], fixed by [@thibaudgg][] and [@rymai][])
6
12
 
7
13
  ## 0.4.4 - June 8, 2012
8
14
 
9
15
  ### Bug fixes
10
16
 
11
- - [#39](https://github.com/guard/listen/issues/39). Unexisting path insertion bug. (reported by [@textgoeshere][], fixed by [@thibaudgg][])
17
+ - ~~[#39](https://github.com/guard/listen/issues/39) Non-existing path insertion bug. (reported by [@textgoeshere][], fixed by [@thibaudgg][])~~
12
18
  - Fix relative path for directories containing special characters. (reported by [@napcs][], fixed by [@netzpirat][])
13
19
 
14
20
  ## 0.4.3 - June 6, 2012
15
21
 
16
22
  ### Bug fixes
17
23
 
18
- - [#24](https://github.com/guard/listen/issues/24): Fail gracefully when the inotify limit is not enough for Listen to function. (reported by [@daemonza][], fixed by [@Maher4Ever][])
19
- - [#32](https://github.com/guard/listen/issues/32): Fix a crash when trying to calculate the checksum of unreadable files. (reported by [@nex3][], fixed by [@Maher4Ever][])
24
+ - [#24](https://github.com/guard/listen/issues/24) Fail gracefully when the inotify limit is not enough for Listen to function. (reported by [@daemonza][], fixed by [@Maher4Ever][])
25
+ - [#32](https://github.com/guard/listen/issues/32) Fix a crash when trying to calculate the checksum of unreadable files. (reported by [@nex3][], fixed by [@Maher4Ever][])
20
26
 
21
27
  ### Improvements
22
28
 
@@ -28,22 +34,22 @@
28
34
 
29
35
  ### Bug fixes
30
36
 
31
- - [#21](https://github.com/guard/listen/issues/21): Issues when listening to changes in relative paths. (reported by [@akerbos][], fixed by [@Maher4Ever][])
32
- - [#27](https://github.com/guard/listen/issues/27): Wrong reports for files modifications. (reported by [@cobychapple][], fixed by [@Maher4Ever][])
37
+ - [#21](https://github.com/guard/listen/issues/21) Issues when listening to changes in relative paths. (reported by [@akerbos][], fixed by [@Maher4Ever][])
38
+ - [#27](https://github.com/guard/listen/issues/27) Wrong reports for files modifications. (reported by [@cobychapple][], fixed by [@Maher4Ever][])
33
39
  - Fix segmentation fault when profiling on Windows. ([@Maher4Ever][])
34
40
  - Fix redundant watchers on Windows. ([@Maher4Ever][])
35
41
 
36
42
  ### Improvements
37
43
 
38
- - [#17](https://github.com/guard/listen/issues/17): Use regexp-patterns with the `ignore` method instead of supplying paths. (reported by [@fny][], added by [@Maher4Ever][])
44
+ - [#17](https://github.com/guard/listen/issues/17) Use regexp-patterns with the `ignore` method instead of supplying paths. (reported by [@fny][], added by [@Maher4Ever][])
39
45
  - Speed improvement when listening to changes in directories with ignored paths. ([@Maher4Ever][])
40
46
  - Added `.rbx` and `.svn` to ignored directories. ([@Maher4Ever][])
41
47
 
42
48
  ## 0.4.1 - April 15, 2012
43
49
 
44
- ### Bug fixes
50
+ ### Bug fix
45
51
 
46
- - [#18]((https://github.com/guard/listen/issues/18): Listener crashes when removing directories with nested paths. (reported by [@daemonza][], fixed by [@Maher4Ever][])
52
+ - [#18](https://github.com/guard/listen/issues/18) Listener crashes when removing directories with nested paths. (reported by [@daemonza][], fixed by [@Maher4Ever][])
47
53
 
48
54
  ## 0.4.0 - April 9, 2012
49
55
 
@@ -63,19 +69,19 @@
63
69
  - Encapsulate thread spawning in the windows-adapter. ([@Maher4Ever][])
64
70
  - Fix linux-adapter bug where Listen would report file-modification events on the parent-directory. ([@Maher4Ever][])
65
71
 
66
- ### Removals
72
+ ### Change
67
73
 
68
74
  - Remove `wait_until_listening` as adapters doesn't need to run inside threads anymore ([@Maher4Ever][])
69
75
 
70
76
  ## 0.3.3 - March 6, 2012
71
77
 
72
- ### Improvements
78
+ ### Improvement
73
79
 
74
80
  - Improve pause/unpause. ([@thibaudgg][])
75
81
 
76
82
  ## 0.3.2 - March 4, 2012
77
83
 
78
- ### New features
84
+ ### New feature
79
85
 
80
86
  - Add pause/unpause listener's methods. ([@thibaudgg][])
81
87
 
@@ -83,7 +89,7 @@
83
89
 
84
90
  ### Bug fix
85
91
 
86
- - [#9](https://github.com/guard/listen/issues/9): Ignore doesn't seem to work. (reported by [@markiz][], fixed by [@thibaudgg][])
92
+ - [#9](https://github.com/guard/listen/issues/9) Ignore doesn't seem to work. (reported by [@markiz][], fixed by [@thibaudgg][])
87
93
 
88
94
  ## 0.3.0 - February 21, 2012
89
95
 
@@ -107,14 +113,26 @@
107
113
 
108
114
  - First version with only a polling adapter and basic features set (ignore & filter). ([@thibaudgg][])
109
115
 
110
- [@markiz]: https://github.com/markiz
111
- [@thibaudgg]: https://github.com/thibaudgg
116
+ <!--- The following link definition list is generated by PimpMyChangelog --->
117
+ [#9]: https://github.com/guard/listen/issues/9
118
+ [#17]: https://github.com/guard/listen/issues/17
119
+ [#18]: https://github.com/guard/listen/issues/18
120
+ [#21]: https://github.com/guard/listen/issues/21
121
+ [#24]: https://github.com/guard/listen/issues/24
122
+ [#27]: https://github.com/guard/listen/issues/27
123
+ [#32]: https://github.com/guard/listen/issues/32
124
+ [#39]: https://github.com/guard/listen/issues/39
112
125
  [@Maher4Ever]: https://github.com/Maher4Ever
113
- [@daemonza]: https://github.com/daemonza
126
+ [@dkubb]: https://github.com/dkubb
114
127
  [@akerbos]: https://github.com/akerbos
115
- [@fny]: https://github.com/fny
116
128
  [@cobychapple]: https://github.com/cobychapple
129
+ [@daemonza]: https://github.com/daemonza
130
+ [@fny]: https://github.com/fny
131
+ [@markiz]: https://github.com/markiz
117
132
  [@napcs]: https://github.com/napcs
118
133
  [@netzpirat]: https://github.com/netzpirat
119
134
  [@nex3]: https://github.com/nex3
135
+ [@rymai]: https://github.com/rymai
136
+ [@scottdavis]: https://github.com/scottdavis
120
137
  [@textgoeshere]: https://github.com/textgoeshere
138
+ [@thibaudgg]: https://github.com/thibaudgg
@@ -253,13 +253,11 @@ module Listen
253
253
  def content_modified?(path)
254
254
  sha1_checksum = Digest::SHA1.file(path).to_s
255
255
  return false if @sha1_checksums[path] == sha1_checksum
256
-
257
- had_no_checksum = @sha1_checksums[path].nil?
258
- @sha1_checksums[path] = sha1_checksum
259
-
260
- had_no_checksum ? false : true
261
- rescue Errno::EACCES # unreadble file
256
+ @sha1_checksums.key?(path)
257
+ rescue Errno::EACCES, Errno::ENOENT
262
258
  false
259
+ ensure
260
+ @sha1_checksums[path] = sha1_checksum if sha1_checksum
263
261
  end
264
262
 
265
263
  # Traverses the base directory looking for paths that should
@@ -1,3 +1,3 @@
1
1
  module Listen
2
- VERSION = '0.4.5'
2
+ VERSION = '0.4.6'
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.5
4
+ version: 0.4.6
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-13 00:00:00.000000000 Z
13
+ date: 2012-06-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rb-fsevent