No commit activity in last 3 years
No release in over 3 years
Guard::ConsistencyFail automatically runs consistency fail when model or schema.rb changes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Guard::ConsistencyFail

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

Gem Version Code Climate Build Status

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

  • 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

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.