diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 4211747..a14db2b 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -1,3 +1,11 @@ +== Nov 26, 2010 [by rymai] + +Features: +- It's now possible to return an enumerable in the 'watch' optional blocks in the Guardfile. + +Specs: +- Guard::Watcher + == 0.2.2 (Oct 25, 2010) Bugs fixes: diff --git a/README.rdoc b/README.rdoc index fca9896..67f8a59 100644 --- a/README.rdoc +++ b/README.rdoc @@ -176,10 +176,11 @@ Looks at available guards code for more concrete example. Guardfile DSL consists of just two simple methods: guard & watch. Example: guard 'rspec', :version => 2 do - watch('^spec/(.*)_spec.rb') - watch('^lib/(.*)\.rb') { |m| "spec/lib/#{m[1]}_spec.rb" } - watch('^spec/spec_helper.rb') { "spec" } - watch('^spec/spec_helper.rb') { `say hello` } + watch('^spec/(.*)_spec\.rb') + watch('^lib/(.*)\.rb') { |m| "spec/lib/#{m[1]}_spec.rb" } + watch('^spec/spec_helper\.rb') { "spec" } + watch('^spec/models/.*\.rb') { ["spec/models", "spec/acceptance"] } + watch('^spec/spec_helper\.rb') { `say hello` } end - "guard" method allow to add a guard with an optional options hash