Michael Kessler
ca7b059c66
Fix wrong wording.
2011-09-28 15:16:19 +02:00
Michael Kessler
5325cbdea1
Refactor listener specs.
...
- Introduce `listen_to`, `fixture` and `watch` spec helpers.
- Added docs to spec helper.
- Better separation of fixture setup/teardown and the actual expectation.
- Make line match within 120 characters.
2011-09-28 15:06:33 +02:00
Michael Kessler
b64b7882f7
Refactor massive execute_supervised_task_for_all_guards method.
...
- Renamed some Guard methods to be shorter and more consistent.
- Extract methods from execute_supervised_task_for_all_guards for less complexity.
- Added more specs for extracted methods.
- Added more docs on how marking of deleted/moved files works.
- Refactor Guard to be unaware of the :watch_all_modifications options for simplicity.
2011-09-28 12:42:09 +02:00
Darren Pearce
67882bcceb
Merge branch 'master' of git://github.com/guard/guard
...
Conflicts:
lib/guard.rb
2011-09-26 12:22:02 -06:00
Michael Kessler
e9eaa39e4d
Remove Travis debug output.
2011-09-24 12:14:59 +02:00
Michael Kessler
1571292ba7
Make spec sleep time a float.
2011-09-24 11:35:53 +02:00
Michael Kessler
5de287ba95
Make the sleep time for listener specs configurable.
2011-09-24 11:09:32 +02:00
Rémy Coutable
41ada16595
Allow more complex conditions when searching for guards
2011-09-23 00:39:27 +02:00
Rémy Coutable
1cd669bf60
Refactor & fix specs
2011-09-23 00:22:44 +02:00
Rémy Coutable
12fcf15a95
New smart accessors for guards and groups
2011-09-23 00:21:30 +02:00
Rémy Coutable
ed97336c7d
New Group class
2011-09-23 00:20:35 +02:00
Rémy Coutable
4c1cf825e5
Merge branch 'master' into guard_dependencies
...
Conflicts:
lib/guard.rb
lib/guard/dsl.rb
man/guard
man/guard.html
2011-09-22 22:44:15 +02:00
Darren Pearce
ec463a271b
Merge branch 'master' of git://github.com/guard/guard
...
Conflicts:
lib/guard/listener.rb
2011-09-21 17:14:09 -06:00
Darren Pearce
432d4a0991
changed watch deletions option to watch_all_modifiactions, Merge branch 'master' of git://github.com/guard/guard
...
Conflicts:
lib/guard.rb
lib/guard/cli.rb
lib/guard/listener.rb
2011-09-21 17:00:53 -06:00
Michael Kessler
072d5404ee
Merge pull request #137 from hron/guard
...
---
It seems like the new interactor eats input from $stdin even while it is locked. This disallow using tools like ruby-debug or pry in specs or cucumber.
The fix just kills the interactor when it is locked and runs it again when ulocked.
Conflicts:
lib/guard/interactor.rb
2011-09-21 00:34:11 +02:00
Michael Kessler
33b52d2955
Fix guard groups.
2011-09-20 14:26:27 +02:00
Michael Kessler
53802ed355
Add yardoc to listeners.
2011-09-20 13:58:25 +02:00
Rémy Coutable
078d55f13c
Actually halt guards' execution in a group only when the guard's task throw :task_has_failed (not when it returns false).
2011-09-16 01:20:22 +02:00
Rémy Coutable
b1b69924a7
First implementation of #97 "Guard dependencies".
2011-09-16 01:01:58 +02:00
Darren Pearce
34aaed9741
fixed specs to cleanup afterwards
2011-09-13 22:46:56 -06:00
Darren Pearce
b74d09b9d6
Merge remote branch 'upstream/master'
...
Conflicts:
lib/guard.rb
lib/guard/listener.rb
spec/guard/listener_spec.rb
2011-09-13 16:50:24 -06:00
Darren Pearce
423610f22d
moved timestamp hash creation into it's own method add initial specs for watching deleted files and fixed some minor formatting
2011-09-13 16:22:39 -06:00
Michael Kessler
59103ffe09
Use the listener_helpers start/stop.
2011-09-05 10:36:45 +02:00
Michael Kessler
d1c452bc1e
Revert "More Travis tests."
...
This reverts commit bd67a69a8b
.
2011-09-05 10:07:19 +02:00
Michael Kessler
bd67a69a8b
More Travis tests.
2011-09-05 09:42:05 +02:00
Rémy Coutable
96604060ed
Clean Hook code
2011-09-04 18:44:42 +02:00
Rémy Coutable
11495687f4
Merge branch 'master' into hook
...
Conflicts:
Guardfile
lib/guard.rb
lib/guard/dsl.rb
spec/guard/interactor_spec.rb
spec/guard/listeners/darwin_spec.rb
2011-09-04 18:00:29 +02:00
Thibaud Guillaume-Gentil
e1472cb0c4
Make specs pass on jruby & rubinius (Mac OS X)
2011-09-03 22:37:36 +02:00
Thibaud Guillaume-Gentil
ee5468eeeb
Don't kill listener thread on spec
2011-09-03 21:44:09 +02:00
Thibaud Guillaume-Gentil
8b66b71716
Travis test
2011-09-03 21:33:06 +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
905c32dcc9
Add listener spec for chmod modification
2011-09-03 14:15:54 +02:00
Thibaud Guillaume-Gentil
f8b4f45737
Fix spec
2011-09-02 16:22:09 +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
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
Tim Pope
b59d6ac07b
Add a user guard config
...
Users can add additional settings to ~/.guard.rb that augment the
existing Guardfile.
2011-08-31 04:07:42 -04:00
Thibaud Guillaume-Gentil
5de94ccbcb
Merge branch 'master' into stdin
...
Conflicts:
Guardfile
lib/guard.rb
2011-08-30 21:16:30 +02:00
Michael Kessler
0e1564ef3b
Revert "remove growl support completely"
...
This reverts commit 7f87411189
.
2011-08-17 14:27:40 +02:00
Rémy Coutable
652c3d8661
Merge branch 'master' into hook
...
Conflicts:
lib/guard.rb
lib/guard/dsl.rb
spec/guard/dsl_spec.rb
spec/guard_spec.rb
2011-08-17 10:45:20 +02:00
Rémy Coutable
dc2ab97d23
Pass the group in the options hash instead of a new parameter in the Guard::Guard.initialize method!
2011-08-17 10:04:42 +02:00
Rémy Coutable
eb347ee266
Merge branch 'master' into hook
...
Conflicts:
Gemfile
Guardfile
README.markdown
Rakefile
lib/guard.rb
lib/guard/dsl.rb
lib/guard/interactor.rb
lib/guard/listener.rb
lib/guard/ui.rb
lib/guard/watcher.rb
spec/guard/dsl_spec.rb
spec/guard/notifier_spec.rb
2011-08-17 01:34:27 +02:00
Rémy Coutable
dd86402109
Add @groups attributes to keep track of the groups, ordered as in the Guardfile
2011-08-17 00:39:45 +02:00
Rémy Coutable
6f7ce6feb7
On a guard's initialization, pass the group in which it's been declared in the Guardfile, pass group's name on Guard.add_guard and thus in the Dsl
2011-08-17 00:36:02 +02:00
Rémy Coutable
24f0d21f71
Try to reduce specs execution time by providing an option for the "rest delay" before & after starting / stopping the listener.
2011-08-17 00:27:02 +02:00
Rémy Coutable
0b945f10ec
Ensure that scoped groups and group name are symbolized before checking for inclusion.
...
This is useful since Dsl.evaluate_guardfile can be called directly (hence, options are note passed by Thor, which stringify options).
2011-08-17 00:26:03 +02:00
Thibaud Guillaume-Gentil
d6e27fe334
Merge branch 'master' into stdin
...
Conflicts:
Guardfile
2011-08-16 09:08:05 +02:00