Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rosylilly/git_hook-rspec

git pre-commit hook. run all rspec.
https://github.com/rosylilly/git_hook-rspec

Last synced: 5 days ago
JSON representation

git pre-commit hook. run all rspec.

Awesome Lists containing this project

README

        

# GitHook::Rspec

git pre-commit hook. run all rspec.

## Installation

Add this line to your application's Gemfile:

gem 'git_hook-rspec'

And then execute:

$ bundle

Or install it yourself as:

$ gem install git_hook-rspec

And Add this line to your application's .githooks:

pre_commit 'GitHook::Rspec', :require => 'git_hook-rspec'

And then execute:

$ git hook apply

## Usage

git hook gem.

write your .githooks:

pre_commit 'GitHook::Rspec',
:require => 'git_hook-rspec,
:bundler => true, # using bundler. execute rspec comamnd with `bundle exec`
:binstabs => false, # rspec inside `binstabs` folder. true is 'bin'. false is not inside binstabs folder.
:cli => '' # rspec cli options. example: "--color --format d"