Commit Graph

53 Commits

Author SHA1 Message Date
Rémy Coutable
5c9ee2afdf Yardoc improvements [ci skip] 2011-09-23 11:01:52 +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
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
Rémy Coutable
d493e3c5d9 Tiny doc improvements 2011-09-20 21:52:59 +02:00
Michael Kessler
33b52d2955 Fix guard groups. 2011-09-20 14:26:27 +02:00
Michael Kessler
dc009d445a Add yardoc for the DslDescriber. 2011-09-20 11:49:05 +02:00
Michael Kessler
9df4b3c291 Add options to evaluate_guardfile. 2011-09-20 11:23:37 +02:00
Michael Kessler
7099774e7c Fix wrong yard param tags. 2011-09-20 11:13:12 +02:00
Michael Kessler
aa55d48b96 Initial yardoc for the DSL class. 2011-09-20 11:11:40 +02:00
Rémy Coutable
b1b69924a7 First implementation of #97 "Guard dependencies". 2011-09-16 01:01:58 +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
Ian White
d5b4c4ede7 Words for ignore_paths method 2011-09-01 12:43:02 +01:00
Ian White
54773af2b0 Adds ignore_paths to DSL 2011-09-01 12:30:34 +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
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
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
Rémy Coutable
52cf570245 Merge pull request #120 from mordaroso/ego
Fix re-evaluating Guardfile
2011-08-14 11:29:02 -07:00
mordaroso
820501bf15 remove guardfile_contents when re-evaluating so that the Guardfile gets reloaded correctly 2011-08-14 18:41:05 +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
694664ced8 Closes #100 2011-07-15 08:32:34 +02:00
Scott Bronson
8d27fff74d Fix undefined method `empty?' for nil:NilClass error 2011-07-14 11:42:26 -07: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
087f51085f allow symbols for group names 2011-06-01 14:17:31 -04:00
Rémy Coutable
11c3e0b782 Keeping the Changelog up to date and improved the Readme 2011-05-28 19:39:18 +02:00
Thibaud Guillaume-Gentil
42e4413cf2 Fixed guard init 2011-05-28 18:18:45 +02: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
36d55d60ec Added new features to Changelog 2011-05-27 18:02:25 +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
a51afdf0e3 Outdent private statement 2011-05-25 14:08:11 -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
Scott Parrish
6b35e96e8d previous changes were made to Dsl that built on the options hash that was passed to it.
Except the options hash is actually a
    Thor::CoreExt::HashWithIndifferentAccess

so, i reorganized the internal access and storage to read original data from the passed hash, but stores it into a local hash.

No tests changed since no external behavior changed.  All tests passed.

This fixes the issue when the binary is run and results in a
     can't modify frozen hash (RuntimeError)

small change to fix specs to run and always have @@orig_options be locked.
2011-05-07 12:43:24 -06:00
Scott Parrish
2a834e1228 previous changes were made to Dsl that built on the options hash that was passed to it.
Except the options hash is actually a
    Thor::CoreExt::HashWithIndifferentAccess

so, i reorganized the internal access and storage to read original data from the passed hash, but stores it into a local hash.

No tests changed since no external behavior changed.  All tests passed.

This fixes the issue when the binary is run and results in a
     can't modify frozen hash (RuntimeError)
2011-05-07 12:04:59 -06: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
73b2d0ba53 Removed not-used-anymore accessor 2010-12-17 20:57:11 +01:00
Rémy Coutable
1c86b1e632 Fix "uninitialized class variable @@guardfile in Guard::Dsl" 2010-12-17 18:44:12 +01: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
d0891efdc0 Remove useless variable assignment 2010-12-16 15:08:26 +01:00
Rémy Coutable
7f39a55fdf Use 'guard' instead of 'g', use parenthesis and don't explicitly return when not necessary 2010-11-26 00:58:36 +01:00