Rémy Coutable
e853009528
Refactored Guard::Dsl#callback and updated specs, improved inline docs for Guard::Hook#hook, added ENV["GUARD_ENV"] = 'development' in Guardfile so we see hooks firing! Run specs on REE too.
...
Signed-off-by: Rémy Coutable <rymai@rymai.me>
2011-04-30 00:45:38 +02:00
Rémy Coutable
c788c00099
Fix bug that occurred when pattern was a string and no action was associated.
2010-12-16 15:09:36 +01:00
Rémy Coutable
ebe94d213b
Improved deprecation warning message
2010-12-16 09:15:14 +01:00
Rémy Coutable
1831bf752f
Guard no more automatically convert String into Regexp in "watch" method patterns.
...
It allows to define:
watch("foo_bar.rb") without meaning /foo_bar.rb/ (where "foo_bar_rb.rb" would have been matched)
However, during the deprecation phase, strings that look like a regexes (e.g. "^foo_bar.rb", "foo_bar.rb$", "foo_.*bar.rb" or "foo_(bar|baz).rb" are converted automatically to Regexp and a *very annoying* deprecation message is displayed.
2010-12-16 01:22:42 +01:00
Rémy Coutable
47d1e11743
Added specs for Guard::Watcher, allow enumerables in 'watch' blocks.
2010-11-26 00:55:21 +01:00
Thibaud Guillaume-Gentil
85beb5e97a
Don't call run_on_change guard method when there is no matched files.
2010-11-25 08:52:53 +01:00
Thibaud Guillaume-Gentil
bc5cc10d42
Fixed watch block without params on 1.9.2
2010-10-07 22:37:13 +02:00
Thibaud Guillaume-Gentil
4d3744ff43
Initial commit
2010-10-03 23:00:33 +02:00