Kevin Krauss
5429d10eb5
Removed extra attr_accessor and used proper formatting.
2011-10-10 15:10:44 -07:00
Kevin Krauss
037b1e6feb
Optional user defined return with guard options[:any_return]
2011-10-10 13:38:14 -07:00
Kevin Krauss
bdfdf45325
Switched the parameter to be added to the guard instead of the watcher.
2011-10-10 09:52:53 -07:00
Kevin Krauss
b2f282f1e8
watcher cleaned up.
2011-10-09 15:54:24 -07:00
Kevin Krauss
33542acec9
watcher init now has an addition param that allows the user to return any obj type. The spec has been restored to its original and then more specs added for object support.
2011-10-07 10:36:47 -07:00
Kevin Krauss
a5dd0c7847
any return is ok. Pass the path and some other parameters if you would like and they don't become strings!
2011-10-05 18:01:55 -07:00
Kevin Krauss
47f3d878f6
When using a block allow none string return
2011-10-04 22:17:07 -07:00
Michael Kessler
507abce5b6
Fix some typos, better wording and formatting.
2011-09-21 01:30:35 +02:00
Michael Kessler
dddc2ad369
Add yardoc to the watcher class.
2011-09-20 12:54:28 +02:00
Thibaud Guillaume-Gentil
ba0b84838d
Integrated Guard::Ego inside Guard, oh yeah!
2011-07-02 10:01:45 +02:00
Julio Capote
8e91b5f737
Forgot to join the backtrace array with newlines for better output
2011-06-22 17:00:15 -07:00
Julio Capote
673fa0eebc
Better exception handling
...
This shows the backtrace when there is a problem with a watch action, makes for easier watch debugging
2011-06-22 16:47:12 -07:00
John Bintz
307d13a517
fix for resolving the digest module
2011-05-23 21:36:51 -04: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