Skip to content

yld/guard-consistency_fail

 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%