Thibaud Guillaume-Gentil
41127e2cbf
Only use crime on == timestamp comparison
2011-09-03 14:52:33 +02:00
Thibaud Guillaume-Gentil
5978e875df
Put mtime (maybe ctime is updated on linux when moving a file)
2011-09-03 14:43:25 +02:00
Thibaud Guillaume-Gentil
68efb0d52f
Focus on failed spec
2011-09-03 14:30:15 +02:00
Thibaud Guillaume-Gentil
18cb3471af
Try to debug linux spec on travis
2011-09-03 14:16:32 +02:00
Thibaud Guillaume-Gentil
47be15125b
Skip reactor on test env
...
Update last_event sooner
Use ctime instead of mtime (Rails 3.1 assets pipeline issue)
2011-09-02 16:22:01 +02:00
Thibaud Guillaume-Gentil
c4ddb29fc6
Work on specs
2011-09-01 23:24:45 +02:00
Thibaud Guillaume-Gentil
5c1fb285e8
Merge branch 'master' into stdin
...
Conflicts:
lib/guard/listener.rb
2011-09-01 21:28:03 +02:00
Ian White
d5b4c4ede7
Words for ignore_paths method
2011-09-01 12:43:02 +01:00
Ian White
54773af2b0
Adds ignore_paths to DSL
2011-09-01 12:30:34 +01:00
Ian White
c74c9c9bf9
Add ignore_paths option to listener
2011-09-01 10:19:20 +01:00
Thibaud Guillaume-Gentil
3717179591
Refactor new interactor/listener mechanic now it's
...
look pretty.
Specs still need some love :)
2011-08-30 21:13:51 +02:00
Doug Renn
ee8489fb83
Don't assume watched directory, use value from listener
2011-07-22 11:57:49 -06:00
Rémy Coutable
06be2107af
Dir.glob now ignores files that don't need to be watched
...
By default, we don't watch ., .., .bundle, .git (this is HUGE), log, tmp and vendor (this is also HUGE). Also don't append '/' to the dir given to Guard::Listener#potentially_modified_files, the method now handles it internally.
In my case, Guard::Listener#potentially_modified_files was taking ~56 seconds (in a big Rails project), it takes now... less than 1 second.
Enjoy.
2011-07-21 01:40:40 +02:00
Rémy Coutable
802d134165
Don't add attr_reader and attr_writer when unecessary
...
Rename Guard::Listener#relativate_paths to Guard::Listener#relativize_paths
2011-07-21 01:29:05 +02:00
Rémy Coutable
8a1ca41626
Moved Guard::Listener#update_last_event inside Guard::Listener#modified_files
...
Since the pattern was to always call Guard::Listener#update_last_event after Guard::Listener#modified_files.
2011-07-21 01:25:06 +02:00
Yann Lugrin
043d285894
don't return directories when requesting files
2011-06-20 10:08:32 +02:00
Konstantin Shabanov
668e0f4d85
Use RbConfig instead of obsolete and deprecated Config.
2011-06-16 18:14:51 +07:00
Yann Lugrin
ca7b98099c
Watching dotfile (hidden files under unix) fix #80
2011-06-15 18:02:32 +02:00
Thibaud Guillaume-Gentil
5808a3cf23
Removed merged code commented
2011-06-02 23:58:07 +02:00
Thibaud Guillaume-Gentil
6a77f01645
Merge branch 'master' of https://github.com/niklas/guard into niklas-master
...
Conflicts:
lib/guard/listener.rb
spec/guard/listeners/linux_spec.rb
2011-05-28 17:15:09 +02:00
Thibaud Guillaume-Gentil
1628a1f01d
fix for resolving the digest module (again)
2011-05-28 16:50:16 +02:00
Thibaud Guillaume-Gentil
8f68778927
Only check sha1_checksum when file mtime.to_i == last_event.to_i (so touching file to fire guard is working again)
2011-05-28 16:47:35 +02:00
John Bintz
307d13a517
fix for resolving the digest module
2011-05-23 21:36:51 -04:00
Niklas Hofer
b12769d2bf
can give path and options to Listener.select_and_init
2011-05-15 21:45:30 +02:00
Niklas Hofer
a3cf121111
can disable relativation of paths
2011-05-15 21:45:30 +02:00
Niklas Hofer
2f0870abfc
refactor Polling Listener to catch deleted and moved files
2011-05-15 21:45:30 +02:00
Niklas Hofer
bc740d725f
create shared examples all listeners should behave like
2011-05-15 21:45:30 +02:00
Niklas Hofer
9c44f89a61
can specify directory to listen to, still defaulting to pwd
2011-05-15 21:45:30 +02:00
Thibaud Guillaume-Gentil
0dcf13d77c
- Handled quick file (<1s) modification
...
- Avoid to catch modified files without content modification (sha1 checksum)
(Specs needed)
2011-05-09 09:39:11 +02:00
Thibaud Guillaume-Gentil
f7140f2b1c
Removed commented stuff
2011-05-09 09:36:09 +02:00
slavic
94e04ec7e0
add support for Windows using rb-fchange. Specs fail because of k32WaitForMultipleObjects blocks all threads
2011-04-30 13:38:57 +03:00
Rémy Coutable
9b981f5459
Run guards for new modified files only if any guard match any file (preventing from clearing the screen when no guard will run!).
...
Signed-off-by: Rémy Coutable <remy@jilion.com>
2011-04-16 23:13:29 +02:00
Thibaud Guillaume-Gentil
9772e9d9c8
Replaced Thread (incompatible with inotify) by a whole dir scan after each run_on_changes
2011-01-19 23:05:45 +01:00
Thibaud Guillaume-Gentil
53a79691a5
Kept listener running in thread even when guards plugin are also running.
2010-11-30 21:15:03 +01:00
Thibaud Guillaume-Gentil
3f922a0667
Refactorized listeners support
...
Added polling fallback
Removed sys-uname dependency
2010-10-17 21:42:40 +02:00
Thibaud Guillaume-Gentil
0e4d75eda2
Rescued recent_file? if file isn't exist anymore
...
Closes #1 .
2010-10-07 20:53:29 +02:00
Thibaud Guillaume-Gentil
4d3744ff43
Initial commit
2010-10-03 23:00:33 +02:00