Guard::ConsistencyFail

Guard::ConsistencyFail automates running of checks from consistency_fail in guard when model or schema.rb changes.

Install

Please be sure to have Guard installed before continue.

You can do one of the following:

Install the gem:

  gem install guard-consistency_fail

or add it to your Gemfile (inside development group):

  gem 'guard-consistency_fail'

Note: for Guard version below 2.1 use version 0.0.10 of this gem so in your Gemfile

  gem 'guard-consistency_fail', '0.0.10'

Add guard definition to your Guardfile by running this command:

guard init consistency_fail

Usage

Please read Guard usage doc. Also please refer to consistency_fail for details on how the consistency_fail gem works.

Guardfile

guard 'consistency_fail', :environment => 'development' do
  watch(%r{^app/model/(.+)\.rb})
  watch(%r{^db/schema.rb})
end

Development

Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.

Building and deploying gem

Testing the gem locally

gem install guard-consistency_fail-0.1.1.gem

Authors

Pankaj Tyagi

Ideas for this gem came from consistency_fail and Guard::Delayed.

License

MIT License. See License file.