Commit Graph

75 Commits

Author SHA1 Message Date
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
32904356cb Merge branch 'master' into hook 2011-08-17 01:47:25 +02:00
Rémy Coutable
563b020d4f Oops (worked on 1.9.2 only) :) 2011-08-17 01:36:44 +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
dd86402109 Add @groups attributes to keep track of the groups, ordered as in the Guardfile 2011-08-17 00:39:45 +02:00
Christian Höltje
091ecf3322 Add list command to CLI
This adds a list command, that shows all available
guard gems.

https://github.com/guard/guard/issues/111
2011-08-08 20:11:22 -04:00
Michael Kessler
9175b33da4 Merge branch 'master' of https://github.com/uk-ar/guard into uk-ar-master
Conflicts:
	CHANGELOG.md
	lib/guard.rb
	lib/guard/cli.rb
2011-08-05 14:37:08 +02:00
Dmytrii Nagirniak
0c15b442f8 show error when loading guard fails (solves problem when you have no clue what's wrong) 2011-08-02 20:49:15 +10:00
Rémy Coutable
b34cd1acfb Based on @ttilley explanation in https://github.com/thibaudgg/rb-fsevent/issues/17, signal handlers registration should happen before any subprocess creation (fsevent_watch for instance) to be properly catches by the subprocess.
Note that in the case when guard is run via bundler, this –quoting @ttilley– "would make this an unsolvable problem" (isn't it dramatic?! ;)).
2011-07-30 23:58:53 +02:00
Rémy Coutable
1481604411 Rename Guard::Dsl.revaluate_guardfile to Guard::Dsl.reevaludate_guardfile 2011-07-29 00:22:53 +02:00
Rémy Coutable
48057cb6c8 New CLI options: watchdir and guardfile thanks to @nestegg! 2011-07-28 23:59:31 +02:00
Doug Renn
8e129c585a Add a command line option for directory to watch 2011-07-22 16:10:36 -06:00
Doug Renn
e3bbdbfa42 Add a command line option to specify the guardfile 2011-07-22 15:27:03 -06:00
Doug Renn
ee8489fb83 Don't assume watched directory, use value from listener 2011-07-22 11:57:49 -06:00
Rémy Coutable
8a1ca41626 Moved Guard::Listener#update_last_event inside Guard::Listener#modified_files
Since the pattern was to always call Guard::Listener#update_last_event after Guard::Listener#modified_files.
2011-07-21 01:25:06 +02:00
Rémy Coutable
a318e03ad1 Added a debug message when running run_on_change
So the debug mode is a little more useful...

Also added timestamp in debug print
2011-07-21 01:21:04 +02:00
Benjamin Quorning
13e325ca52 Grammar fix 2011-07-12 04:06:55 -07:00
yuuki arisawa
8d02eec38c Add support not to change files when dry run. 2011-07-02 19:16:06 +09:00
Thibaud Guillaume-Gentil
ba0b84838d Integrated Guard::Ego inside Guard, oh yeah! 2011-07-02 10:01:45 +02:00
yuuki arisawa
847b2b8740 Added some specs,and some lines in README/CHANGELOG for dry-run option.
And added support for Kernel.#` and %x literal.
2011-06-28 22:13:24 +09:00
yuuki arisawa
49d14b1360 Added dry_run option for Guardfile debug 2011-06-26 00:13:26 +09:00
John Bintz
aa3010af91 show the guards defined in the Guardfile with 'guard show' or 'guard -T' 2011-06-21 09:54:52 -04:00
Rémy Coutable
20dd08e977 Write exception details using UI.error, and UI.error will now output "ERROR:" in red! 2011-06-19 20:24:47 +02:00
Elliot Winkler
b41f31e420 If running a task for a guard and it borks, don't swallow the error but print the backtrace 2011-06-18 16:30:00 -06:00
Rémy Coutable
21f5a41f88 Actually clear the terminal before the setup (don't clear setup messages). 2011-06-08 12:25:44 +02:00
Rémy Coutable
ddc6f26b91 Clear the terminal on start when the :clear option is given 2011-06-08 12:16:36 +02:00
Thibaud Guillaume-Gentil
a2b3927a2e Fixed Guard::Version in ruby 1.8.7 2011-06-08 09:10:26 +02:00
Mislav Marohnić
17a654b171 refactor get_guard_class to first try the constant and fallback to require
This enables defining inline guard handlers to override ones present in gems,
e.g. you could define an inline Guard::RSpec handler and have guard use that
instead of first trying to load 'guard/rspec' from the 'guard-rspec' gem.

Also gets rid of the ill-named method `try_to_load_gem`. Handlers are simply
found in the $LOAD_PATH and don't have to necessarily come from gems.
2011-06-07 15:42:45 +02:00
Rémy Coutable
cb5843aa47 In Ruby < 1.9, Symbol#downcase doesn't exist! 2011-06-02 00:40:37 +02:00
Rémy Coutable
72734e1587 Fixed a bug preventing from using "guard :test" in Guardfile! 2011-05-27 17:56:46 +02:00
John Bintz
310bc5b644 support for dashes in guard names 2011-05-23 19:07:12 -04:00
Thibaud Guillaume-Gentil
aabf0583b3 Merge branch 'master' of github.com:guard/guard
Conflicts:
	lib/guard.rb
	spec/guard_spec.rb
2011-05-08 22:01:35 +02:00
Thibaud Guillaume-Gentil
1e5ab84b3a Fixed Guard::Notifier (when growl/libnotify not present) 2011-05-08 21:56:46 +02:00
Rémy Coutable
9cfe8d3635 Don't modify a frozen hash. 2011-05-07 18:40:13 +02:00
Thibaud Guillaume-Gentil
2f94f9e22f Fixed notification option
Only print notification "Install message" once
Added GUARD_NOTIFY=false env variable support
Fixes #28
2011-05-06 23:19:31 +02:00
Thibaud Guillaume-Gentil
5740548a51 Kept support of Rubygems < 1.8.0 (for now!) 2011-05-06 21:51:50 +02:00
Thibaud Guillaume-Gentil
2da724f5e9 Fixed Rubygems deprecation messages 2011-05-06 21:23:30 +02:00
monocle
134cbdb007 Hook - 1) Send args to hooks from Guard.supervised_task
2) Pass args from hooks to callbacks
3) Suppress UI message from hooks unless in 'development'
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
monocle
b646ae53f6 Fix preexisting tests after adding default hooks 2011-04-30 00:45:13 +02:00
monocle
386b0be53d Hooks - Add :begin and :end hook to all guard actions via Guard.supervised_task 2011-04-30 00:41:25 +02:00
Thibaud Guillaume-Gentil
bb28799240 Removed useless Bundler requirement. Fixes #41 2011-04-29 08:25:57 +02:00
Jeff Sacks
38c371272d fixing require bug; updating documentation and version 2011-04-25 09:18:59 -05:00
Jeff Sacks
a0b6ecacdb adding support for inline classes 2011-04-21 16:39:46 -05:00
Thibaud Guillaume-Gentil
98c112c074 Fixed new_modified_files rerun conditions on Guard.run_on_change_for_all_guards 2011-04-19 09:40:34 +02:00
Rémy Coutable
c0f1ea6459 Merge branch 'master' of https://github.com/brainopia/guard into brainopia-master 2011-04-16 23:17:21 +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
brainopia
097ce1f17e Fix Guard.locate_guard to return path to gem folder 2011-04-16 23:43:50 +04: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