0.01
No commit activity in last 3 years
No release in over 3 years
Guard::Reloader automatically load class definition then run your tests on file modification.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.2
~> 2.2
 Project Readme

Guard::Reloader

Reloader guard automatically reload file definition and launch proper tests when files are modified or created.

Install

Please be sure to have Guard and Test::Unit installed before continue.

If you're using Bundler, add it to your Gemfile (inside the development group):

gem 'guard-reloader'

and run:

$ bundle install

or manually install the gem:

$ gem install guard-reloader

Add Guard definition to your Guardfile by running this command:

$ guard init reloader

Usage

$ cd [path-to-your-rails-project]
$ guard

Guardfile

Guard::Reloader at the moment support only modification in model and controller.

guard 'reloader' do
  watch(%r{^app/models/(.+)\.rb$})
  watch(%r{^test/unit/(.+)\.rb$})
  watch(%r{^app/controllers/(.+)\.rb$})
  watch(%r{^test/functional/(.+)\.rb$})
end

Please read the Guard documentation for more info about the Guardfile DSL.

Author

Fajar Firdaus

Kudos

Many thanks to Watchmen member.