Rémy Coutable
910856362e
Merge pull request #150 from f1sherman/use_mutex_instead_of_lock
...
fix issue where interator thread was continuing to capture input from std
2011-10-02 14:56:43 -07:00
Brian John
cd545d5207
fix issue where interator thread was continuing to capture input from stdin while a guard is being executed
2011-10-02 16:46:20 -05:00
Josef Šimánek
b15638f13c
Correct string interpolation at guard init
2011-10-02 16:15:48 +03:00
Thibaud Guillaume-Gentil
64ac60a1fe
Version 0.8.3
2011-10-01 20:53:21 +02:00
Brian John
b3535b4a4e
use a mutex instead of a lock for more efficient/simple locking
2011-09-30 20:45:41 -05:00
Michael Kessler
3c75205dd0
Merge branch 'master' of github.com:guard/guard
2011-09-30 18:35:31 +02:00
Michael Kessler
e33f5df518
Make Guard implementation of :task_has_failed simple.
...
This change makes sure that Guard implementation can just
`throw :task_has_failed` without knowing whether the enclosing
group has enabled :halt_on_fail.
The problem with throw/catch is, that when you throw a :symbol,
you'll have to catch it, otherwise you get a 'uncatched throw' error.
When the Guard group has not enabled :halt_on_fail, we catch the throw
when execute the supervised task.
2011-09-30 18:35:04 +02:00
John Bintz
776361d038
add a sleep to the interactor thread, because it's healthy to take a break every once in a while
2011-09-30 11:22:35 -04:00
Thibaud Guillaume-Gentil
6ecc541bda
Version 0.8.2
2011-09-30 16:47:43 +02:00
Michael Kessler
e9ddb1c110
Update wrong doc example. [ci skip]
2011-09-30 12:13:50 +02:00
Michael Kessler
5bdb56caa0
Update docs regarding :task_has_failed.
...
- Add :task_has_failed documentation to Guard and Group classes
- Consolidated Guard documentation from the README and its YARDOC.
- Remove all return `true` values from Guard task methods.
2011-09-30 11:30:05 +02:00
Thibaud Guillaume-Gentil
56ebe9f9f4
Improve guard stop
...
- prevent run_guard_task(:stop) to be skipped
2011-09-29 22:39:24 +02:00
Thibaud Guillaume-Gentil
aaa08d3a89
Version 0.8.1
2011-09-29 09:22:02 +02:00
Rémy Coutable
1607901e43
Fixes #144 , due to a too-hardore refactoring! ;)
...
We will need specs for Guard::CLI!
2011-09-29 00:27:37 +02:00
Thibaud Guillaume-Gentil
243ea157a9
Version 0.8.0
2011-09-28 22:18:29 +02:00
Michael Kessler
40e033ce0f
Document passed options.
2011-09-28 15:47:53 +02:00
Michael Kessler
14150889c5
Align variable assignment, make return variable clear.
2011-09-28 13:46:05 +02:00
Michael Kessler
ec71eea227
Minor doc changes.
2011-09-28 13:41:29 +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
Michael Kessler
d857134446
Fix code indention.
2011-09-27 20:44:17 +02:00
Michael Kessler
7e6e52a2c9
Docs for #run_on_deletion Guard method.
2011-09-27 20:29:52 +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
Darren Pearce
d9fc071492
fixed typo and updated relativize_paths regex
2011-09-26 11:37:54 -06:00
Michael Kessler
a1f37f60d6
Re-evaluate the Guardfile before reload all Guards ( Fixes #141 ).
2011-09-24 12:58:27 +02:00
Rémy Coutable
5c9ee2afdf
Yardoc improvements [ci skip]
2011-09-23 11:01:52 +02:00
Rémy Coutable
a7a6c5c69e
Improves yardoc (hopefully) [ci skip]
2011-09-23 10:52:58 +02:00
Rémy Coutable
a326c35875
Fix specs for Ruby != 1.9
2011-09-23 00:53:13 +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
916613c027
Ensure group name is a Symbol in Guard::Guard#initialize
2011-09-23 00:22:25 +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
Rémy Coutable
bda57d1d8f
Little doc improvements
2011-09-21 18:54:33 +02:00
Michael Kessler
507abce5b6
Fix some typos, better wording and formatting.
2011-09-21 01:30:35 +02: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
Rémy Coutable
d493e3c5d9
Tiny doc improvements
2011-09-20 21:52:59 +02:00
Aleksei Gusev
8c6a30795a
Change Guard::Interactor#lock and #unlock methods so they will lock interactor
...
in the right thread and free $stdin [closes #137 ].
2011-09-20 21:54:21 +03:00
Michael Kessler
c0dcef9dbc
100% yardoc
...
Files: 16
Modules: 5 ( 0 undocumented)
Classes: 11 ( 0 undocumented)
Constants: 20 ( 0 undocumented)
Methods: 136 ( 0 undocumented)
100.00% documented
2011-09-20 15:07:29 +02:00
Michael Kessler
b944932f53
Document the hook module.
2011-09-20 14:42:32 +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
Michael Kessler
ad6fe6f69b
Yardoc for the interactor.
2011-09-20 13:10:16 +02:00
Michael Kessler
98ee450037
Initial notifier yardoc.
2011-09-20 13:06:35 +02:00
Michael Kessler
ab91117ed7
Add yardoc to the UI class.
2011-09-20 12:54:36 +02:00
Michael Kessler
dddc2ad369
Add yardoc to the watcher class.
2011-09-20 12:54:28 +02:00
Michael Kessler
044100b7c3
Fix command debug.
2011-09-20 12:10:53 +02:00
Michael Kessler
2fa0f7255a
Fix wrong params tag.
2011-09-20 12:08:51 +02:00
Michael Kessler
0f5b2b764a
Initial yardoc for the main Guard class for specific implementations.
2011-09-20 12:07:34 +02:00