listen 0.5.3 → 3.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +1 -186
  3. data/CONTRIBUTING.md +45 -0
  4. data/{LICENSE → LICENSE.txt} +3 -1
  5. data/README.md +332 -181
  6. data/bin/listen +11 -0
  7. data/lib/listen/adapter/base.rb +129 -0
  8. data/lib/listen/adapter/bsd.rb +107 -0
  9. data/lib/listen/adapter/config.rb +25 -0
  10. data/lib/listen/adapter/darwin.rb +77 -0
  11. data/lib/listen/adapter/linux.rb +108 -0
  12. data/lib/listen/adapter/polling.rb +40 -0
  13. data/lib/listen/adapter/windows.rb +96 -0
  14. data/lib/listen/adapter.rb +32 -201
  15. data/lib/listen/backend.rb +40 -0
  16. data/lib/listen/change.rb +69 -0
  17. data/lib/listen/cli.rb +65 -0
  18. data/lib/listen/directory.rb +93 -0
  19. data/lib/listen/error.rb +11 -0
  20. data/lib/listen/event/config.rb +40 -0
  21. data/lib/listen/event/loop.rb +94 -0
  22. data/lib/listen/event/processor.rb +126 -0
  23. data/lib/listen/event/queue.rb +54 -0
  24. data/lib/listen/file.rb +95 -0
  25. data/lib/listen/fsm.rb +133 -0
  26. data/lib/listen/listener/config.rb +41 -0
  27. data/lib/listen/listener.rb +93 -160
  28. data/lib/listen/logger.rb +36 -0
  29. data/lib/listen/monotonic_time.rb +27 -0
  30. data/lib/listen/options.rb +26 -0
  31. data/lib/listen/queue_optimizer.rb +129 -0
  32. data/lib/listen/record/entry.rb +66 -0
  33. data/lib/listen/record/symlink_detector.rb +41 -0
  34. data/lib/listen/record.rb +123 -0
  35. data/lib/listen/silencer/controller.rb +50 -0
  36. data/lib/listen/silencer.rb +106 -0
  37. data/lib/listen/thread.rb +54 -0
  38. data/lib/listen/version.rb +3 -1
  39. data/lib/listen.rb +40 -32
  40. metadata +87 -38
  41. data/lib/listen/adapters/darwin.rb +0 -85
  42. data/lib/listen/adapters/linux.rb +0 -113
  43. data/lib/listen/adapters/polling.rb +0 -67
  44. data/lib/listen/adapters/windows.rb +0 -87
  45. data/lib/listen/dependency_manager.rb +0 -126
  46. data/lib/listen/directory_record.rb +0 -344
  47. data/lib/listen/multi_listener.rb +0 -121
  48. data/lib/listen/turnstile.rb +0 -28
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 800a9d0af997cb48bc330b0aeaecdcb39b53e9bdeb2dbed6c08fd03b237a3d36
4
+ data.tar.gz: 5caa12c52d09e7447d0f1b43fddadf03e4e33ae4c611bd0ed7d367e3cd3a280b
5
+ SHA512:
6
+ metadata.gz: 8fa9b8758f30b8ececde07ca321a23fb02c9cfbec59e587011b1598d297f8a0a451728fb394e0bc1fa182e7ef40e4598bfa82b035bdccc29f6375b5df95dda6f
7
+ data.tar.gz: 8b94d5ab7085f27382cfca52d32ff8717c3d17f14ed3632a96853e8e4bcd2174bbc8f5f8f0ff3709f739b13c440fb87a82540bb0ae784395896fb0513837895a
data/CHANGELOG.md CHANGED
@@ -1,186 +1 @@
1
- ## 0.5.3 - October 3, 2012
2
-
3
- ### Bug fixes
4
-
5
- - [#65] Fix ruby warning in adapter.rb. (fixed by [@vongruenigen][])
6
- - [#64] ENXIO raised when hashing UNIX domain socket file. (fixed by [@sunaku][])
7
-
8
- ## 0.5.2 - Septemper 23, 2012
9
-
10
- ### Bug fix
11
-
12
- - [#62] Fix double change callback with polling adapter. (fixed by [@thibaudgg][])
13
-
14
- ## 0.5.1 - Septemper 18, 2012
15
-
16
- ### Bug fix
17
-
18
- - [#61] Fix a synchronisation bug that caused constant fallback to polling. (fixed by [@Maher4Ever][])
19
-
20
- ## 0.5.0 - Septemper 1, 2012
21
-
22
- ### New features
23
-
24
- - Add a dependency manager to handle platform-specific gems. So there is no need anymore to install
25
- extra gems which will never be used on the user system. ([@Maher4Ever][])
26
- - Add a manual reporting mode to the adapters. ([@Maher4Ever][])
27
-
28
- ### Improvements
29
-
30
- - [#28] Enhance the speed of detecting changes on Windows by using the [WDM][] library. ([@Maher4Ever][])
31
-
32
- ## 0.4.7 - June 27, 2012
33
-
34
- ### Bug fixes
35
-
36
- - Increase latency to 0.25, to avoid useless polling fallback. (fixed by [@thibaudgg][])
37
- - Change watched inotify events, to avoid duplication callback. (fixed by [@thibaudgg][])
38
- - [#41](https://github.com/guard/listen/issues/41) Use lstat instead of stat when calculating mtime. (fixed by [@ebroder][])
39
-
40
- ## 0.4.6 - June 20, 2012
41
-
42
- ### Bug fix
43
-
44
- - [#39](https://github.com/guard/listen/issues/39) Fix digest race condition. (fixed by [@dkubb][])
45
-
46
- ## 0.4.5 - June 13, 2012
47
-
48
- ### Bug fix
49
-
50
- - [#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][])
51
-
52
- ## 0.4.4 - June 8, 2012
53
-
54
- ### Bug fixes
55
-
56
- - ~~[#39](https://github.com/guard/listen/issues/39) Non-existing path insertion bug. (reported by [@textgoeshere][], fixed by [@thibaudgg][])~~
57
- - Fix relative path for directories containing special characters. (reported by [@napcs][], fixed by [@netzpirat][])
58
-
59
- ## 0.4.3 - June 6, 2012
60
-
61
- ### Bug fixes
62
-
63
- - [#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][])
64
- - [#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][])
65
-
66
- ### Improvements
67
-
68
- - Add `#relative_paths` method to listeners. ([@Maher4Ever][])
69
- - Add `#started?` query-method to adapters. ([@Maher4Ever][])
70
- - Dynamically detect the mtime precision used on a system. ([@Maher4Ever][] with help from [@nex3][])
71
-
72
- ## 0.4.2 - May 1, 2012
73
-
74
- ### Bug fixes
75
-
76
- - [#21](https://github.com/guard/listen/issues/21) Issues when listening to changes in relative paths. (reported by [@akerbos][], fixed by [@Maher4Ever][])
77
- - [#27](https://github.com/guard/listen/issues/27) Wrong reports for files modifications. (reported by [@cobychapple][], fixed by [@Maher4Ever][])
78
- - Fix segmentation fault when profiling on Windows. ([@Maher4Ever][])
79
- - Fix redundant watchers on Windows. ([@Maher4Ever][])
80
-
81
- ### Improvements
82
-
83
- - [#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][])
84
- - Speed improvement when listening to changes in directories with ignored paths. ([@Maher4Ever][])
85
- - Added `.rbx` and `.svn` to ignored directories. ([@Maher4Ever][])
86
-
87
- ## 0.4.1 - April 15, 2012
88
-
89
- ### Bug fix
90
-
91
- - [#18](https://github.com/guard/listen/issues/18) Listener crashes when removing directories with nested paths. (reported by [@daemonza][], fixed by [@Maher4Ever][])
92
-
93
- ## 0.4.0 - April 9, 2012
94
-
95
- ### New features
96
-
97
- - Add `wait_for_callback` method to all adapters. ([@Maher4Ever][])
98
- - Add `Listen::MultiListener` class to listen to multiple directories at once. ([@Maher4Ever][])
99
- - Allow passing multiple directories to the `Listen.to` method. ([@Maher4Ever][])
100
- - Add `blocking` option to `Listen#start` which can be used to disable blocking the current thread upon starting. ([@Maher4Ever][])
101
- - Use absolute-paths in callbacks by default instead of relative-paths. ([@Maher4Ever][])
102
- - Add `relative_paths` option to `Listen::Listener` to retain the old functionality. ([@Maher4Ever][])
103
-
104
- ### Improvements
105
-
106
- - Encapsulate thread spawning in the linux-adapter. ([@Maher4Ever][])
107
- - Encapsulate thread spawning in the darwin-adapter. ([@Maher4Ever][] with [@scottdavis][] help)
108
- - Encapsulate thread spawning in the windows-adapter. ([@Maher4Ever][])
109
- - Fix linux-adapter bug where Listen would report file-modification events on the parent-directory. ([@Maher4Ever][])
110
-
111
- ### Change
112
-
113
- - Remove `wait_until_listening` as adapters doesn't need to run inside threads anymore ([@Maher4Ever][])
114
-
115
- ## 0.3.3 - March 6, 2012
116
-
117
- ### Improvement
118
-
119
- - Improve pause/unpause. ([@thibaudgg][])
120
-
121
- ## 0.3.2 - March 4, 2012
122
-
123
- ### New feature
124
-
125
- - Add pause/unpause listener's methods. ([@thibaudgg][])
126
-
127
- ## 0.3.1 - February 22, 2012
128
-
129
- ### Bug fix
130
-
131
- - [#9](https://github.com/guard/listen/issues/9) Ignore doesn't seem to work. (reported by [@markiz][], fixed by [@thibaudgg][])
132
-
133
- ## 0.3.0 - February 21, 2012
134
-
135
- ### New features
136
-
137
- - Add automatic fallback to polling if system adapter doesn't work (like a DropBox folder). ([@thibaudgg][])
138
- - Add latency and force_polling options. ([@Maher4Ever][])
139
-
140
- ## 0.2.0 - February 13, 2012
141
-
142
- ### New features
143
-
144
- - Add checksum comparaison support for detecting consecutive file modifications made during the same second. ([@thibaudgg][])
145
- - Add rb-fchange support. ([@thibaudgg][])
146
- - Add rb-inotify support. ([@thibaudgg][] with [@Maher4Ever][] help)
147
- - Add rb-fsevent support. ([@thibaudgg][])
148
- - Add non-recursive diff with multiple directories support. ([@thibaudgg][])
149
- - Ignore .DS_Store by default. ([@thibaudgg][])
150
-
151
- ## 0.1.0 - January 28, 2012
152
-
153
- - First version with only a polling adapter and basic features set (ignore & filter). ([@thibaudgg][])
154
-
155
- <!--- The following link definition list is generated by PimpMyChangelog --->
156
- [#9]: https://github.com/guard/listen/issues/9
157
- [#17]: https://github.com/guard/listen/issues/17
158
- [#18]: https://github.com/guard/listen/issues/18
159
- [#21]: https://github.com/guard/listen/issues/21
160
- [#24]: https://github.com/guard/listen/issues/24
161
- [#27]: https://github.com/guard/listen/issues/27
162
- [#28]: https://github.com/guard/listen/issues/28
163
- [#32]: https://github.com/guard/listen/issues/32
164
- [#41]: https://github.com/guard/listen/issues/41
165
- [#61]: https://github.com/guard/listen/issues/61
166
- [#62]: https://github.com/guard/listen/issues/62
167
- [#64]: https://github.com/guard/listen/issues/64
168
- [#65]: https://github.com/guard/listen/issues/65
169
- [@Maher4Ever]: https://github.com/Maher4Ever
170
- [@dkubb]: https://github.com/dkubb
171
- [@ebroder]: https://github.com/ebroder
172
- [@akerbos]: https://github.com/akerbos
173
- [@cobychapple]: https://github.com/cobychapple
174
- [@daemonza]: https://github.com/daemonza
175
- [@fny]: https://github.com/fny
176
- [@markiz]: https://github.com/markiz
177
- [@napcs]: https://github.com/napcs
178
- [@netzpirat]: https://github.com/netzpirat
179
- [@nex3]: https://github.com/nex3
180
- [@rymai]: https://github.com/rymai
181
- [@scottdavis]: https://github.com/scottdavis
182
- [@sunaku]: https://github.com/sunaku
183
- [@textgoeshere]: https://github.com/textgoeshere
184
- [@thibaudgg]: https://github.com/thibaudgg
185
- [@vongruenigen]: https://github.com/vongruenigen
186
- [WDM]: https://github.com/Maher4Ever/wdm
1
+ # Moved to [GitHub releases](https://github.com/guard/listen/releases) page.
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,45 @@
1
+ Contribute to Listen
2
+ ===================
3
+
4
+ File an issue
5
+ -------------
6
+
7
+ If you haven't already, first see [TROUBLESHOOTING](https://github.com/guard/listen/blob/master/README.md#Issues-and-Troubleshooting) for known issues, solutions and workarounds.
8
+
9
+ You can report bugs and feature requests to [GitHub Issues](https://github.com/guard/listen/issues).
10
+
11
+ **Please don't ask question in the issue tracker**, instead ask them in our
12
+ [Google group](http://groups.google.com/group/guard-dev) or on `#guard` (irc.freenode.net).
13
+
14
+ Try to figure out where the issue belongs to: Is it an issue with Listen itself or with Guard?
15
+
16
+
17
+ **It's most likely that your bug gets resolved faster if you provide as much information as possible!**
18
+
19
+ The MOST useful information is debugging output from Listen (`LISTEN_GEM_DEBUGGING=1`) - see [TROUBLESHOOTING](https://github.com/guard/listen/blob/master/README.md#Issues-and-Troubleshooting) for details.
20
+
21
+
22
+ Development
23
+ -----------
24
+
25
+ * Documentation hosted at [RubyDoc](http://rubydoc.info/github/guard/listen/master/frames).
26
+ * Source hosted at [GitHub](https://github.com/guard/listen).
27
+
28
+ Pull requests are very welcome! Please try to follow these simple rules if applicable:
29
+
30
+ * Please create a topic branch for every separate change you make.
31
+ * Make sure your patches are well tested. All specs run with `rake spec` must pass.
32
+ * Update the [Yard](http://yardoc.org/) documentation.
33
+ * Update the [README](https://github.com/guard/listen/blob/master/README.md).
34
+ * Please **do not change** the version number.
35
+
36
+ The title of your PR will automatically be included in the release notes for the next version of the gem. A maintainer can add one of the following GitHub labels to the PR to automatically categorize it when the release notes are generated:
37
+
38
+ - ⚠️ Breaking
39
+ - ✨ Feature
40
+ - 🐛 Bug Fix
41
+ - 📚 Docs
42
+ - 🏠 Housekeeping
43
+
44
+ For questions please join us in our [Google group](http://groups.google.com/group/guard-dev) or on
45
+ `#guard` (irc.freenode.net).
@@ -1,4 +1,6 @@
1
- Copyright (c) 2012 Thibaud Guillaume-Gentil
1
+ Copyright (c) 2013 Thibaud Guillaume-Gentil
2
+
3
+ MIT License
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining
4
6
  a copy of this software and associated documentation files (the