Guard::ConsistencyFail automates running of checks from consistency_fail in guard when model or schema.rb changes.
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
Please read Guard usage doc. Also please refer to consistency_fail for details on how the consistency_fail gem works.
guard 'consistency_fail', :environment => 'development' do
watch(%r{^app/model/(.+)\.rb})
watch(%r{^db/schema.rb})
end
- Source hosted at GitHub
- Report issues/Questions/Feature requests on GitHub Issues
Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.
-
Update the version number in
lib/guard/consistency_fail/version.rb
-
Update
CHANGELOG.md
-
Build the gem
gem build guard-consistency_fail.gemspec
-
Push to rubygems.org
gem push guard-consistency_fail-0.1.1.gem
gem install guard-consistency_fail-0.1.1.gem
Ideas for this gem came from consistency_fail and Guard::Delayed.
MIT License. See License file.