19 Feb '12, 9pm

@a1extran If you love running tests, you'll love Guard! ;) (check ChurchMetrics source for sample Guardfile)

guard 'livereload' do watch(%r{app/.+\.(erb|haml)}) watch(%r{app/helpers/.+\.rb}) watch(%r{public/.+\.(css|js|html)}) watch(%r{config/locales/.+\.yml}) end guard 'rspec', :version => 2 do watch(%r{^spec/.+_spec\.rb}) watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" } watch('spec/spec_helper.rb') { "spec" } # Rails example watch('spec/spec_helper.rb') { "spec" } watch('config/routes.rb') { "spec/routing" } watch('app/controllers/application_controller.rb') { "spec/controllers" } watch(%r{^spec/.+_spec\.rb}) watch(%r{^app/(.+)\.rb}) { |m| "spec/#{m[1]}_spec.rb" } watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" } watch(%r{^app/controllers/(.+)_(controller)\.rb}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/requests/#{m[1]}_spec.rb"] } watch(%r{^app/views/(.+)/}) { |m| "spec/requests/#{m[1]}_spec.rb" } end

Full article: http://railscasts.com/episodes/264-guard

Tweets

@rbates I would love to see episode 217 (multis...

railscasts.com 20 Feb '12, 5am

attr_writer :current_step validates_presence_of :shipping_name, :if => lambda { |o| o.current_step == "shipping" } validat...

Guard just reach 500,000 downloads on @rubygems...

rubygems.org 16 Feb '12, 8pm

Guard is a command line tool to easily handle events on file system modifications.

“Railscasts - Time Zones in Rails 2.1”

railscasts.com 20 Feb '12, 11am

In the past, time zones have been very difficult to work with, but no longer! Rails 2.1 brings with it great time zone sup...

OPINION: The passing of an old guard - Seah Chi...

Dr Toh Chin Chye’s departure reminds Singaporeans of the political brilliance of past leaders. Unfortunately, few young pe...