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
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
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
Ches Martin
87375c7a1f
evaluate_guardfile uses all groups if none specified. Fixes #118
2011-08-14 15:16:16 +07:00
Rémy Coutable
6b30238735
Use #[] instead of #has_key? since it is more flexible (accept symbol as key for actual string keys in the hash).
2011-07-29 09:05:40 +02:00
Rémy Coutable
1481604411
Rename Guard::Dsl.revaluate_guardfile to Guard::Dsl.reevaludate_guardfile
2011-07-29 00:22:53 +02:00
Thibaud Guillaume-Gentil
be8cd87be9
Prevents notification on revaluate_guardfile spec
2011-07-15 08:33:13 +02:00
Thibaud Guillaume-Gentil
ba0b84838d
Integrated Guard::Ego inside Guard, oh yeah!
2011-07-02 10:01:45 +02:00
Tim Pope
524af462d9
Make home Guardfile hidden
2011-06-22 10:54:50 -04:00
John Bintz
b0d30900fb
add additional spec to test string-only guard group names
2011-06-01 15:00:01 -04:00
John Bintz
087f51085f
allow symbols for group names
2011-06-01 14:17:31 -04:00
Thibaud Guillaume-Gentil
1747f66128
Merge branch 'user_guardfile' of https://github.com/hashrocket/guard into hashrocket-user_guardfile
...
Conflicts:
lib/guard/dsl.rb
spec/guard/dsl_spec.rb
2011-05-28 17:52:50 +02:00
Rémy Coutable
b471405f4d
Merge branch 'master' of https://github.com/anithri/guard into anithri-master-55
...
Conflicts:
lib/guard/notifier.rb
spec/guard/dsl_spec.rb
spec/guard/listeners/polling_spec.rb
spec/guard/notifier_spec.rb
2011-05-27 17:56:18 +02:00
Aaron Kalin and Veezus Kreist
9928f80c76
Fix guardfile_path spec for Windows support
2011-05-25 13:32:56 -05:00
Aaron Kalin and Veezus Kreist
add80d2831
Conform to project standards
2011-05-25 13:23:02 -05:00
Joshua Davey and Veezus Kreist
debdecbbd7
Allow user-based Guardfiles
2011-05-24 16:44:24 -05:00
Michael Kessler
5f0c815256
Cleaning up all specs.
...
I basically went through all specs and applied the following rules:
* Use `describe` for methods and `context` for contexts.
* All class methods starts with `.` and instance methods with `#`.
* Removed all `it should`, because the specs _have to_.
* Applied a consistant naming on all listener specs.
* Make fixture usage more fail save by giving generous sleep times.
* Make all behaviour description non-technical and easy to understand.
The goal of this excercise was to have a documentation that is easy
readable and describes the behaviour and not the implementation.
Try it out by using the RSpec documentation format!
2011-05-13 11:26:05 +02:00
Scott Parrish
8ea296bf8f
Guard::Dsl changed massively. overall strategy was to decouple to evaluate_guardfile into "getting the data" and "using the data" parts. this provides the ability to pass a string that contains the contents of a guardfile, or to pass a filename for a guardfile as well as reading the default loc for a guardfile.
...
Dsl specs changed massivly to support new style of Dsl
2011-05-06 20:53:34 -06:00
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
b83653db2e
Added #callback DSL, modified Guard and Guard::Hook a bit in consequence.
...
Signed-off-by: Rémy Coutable <remy@jilion.com>
2011-04-30 00:45:38 +02: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
42c27242e1
Added a command line option (-n false) to disable notifications (growl/libnotify). closed #28
2011-04-10 22:32:29 +02:00
Rémy Coutable
a0f1ac4053
Renamed Guard::Dsl.guardfile_included? to Guard::Dsl.guardfile_include? (private API) and fix a bug where Guard::Dsl.guardfile_include? was not detecting guard specified with a symbol, double quotes or parenthesis in Guardfile.
...
e.g.:
guard :rspec
guard ('rspec')
guard("rspec")
...
2010-12-17 18:37:44 +01:00
Rémy Coutable
f90823ae90
Shortened implementation of the new group DSL method and made it (+ specs) clearer
2010-12-17 18:13:31 +01:00
Michael Kessler
63af219490
Enhance the DSL to allow grouping of guard definitions and run them selectively
2010-12-17 16:31:39 +01:00
Rémy Coutable
39ea8441c0
Avoid using actual fixture files, instead mock Guardfile content (this way we can directly see tested Guardfile content in the specs.
2010-10-30 22:42:17 +02:00
Olivier Amblet
dd1100b4ae
Added DSL specs and improved error message.
...
DSL now have basics specs that confirm it works
I splitted file not found and invalid Guardfile
error message because it was confusing to know
in which case you are when it occurs :)
2010-10-30 18:26:09 +02:00