Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rosylilly/git_hook-rspec
- Owner: rosylilly
- License: mit
- Created: 2012-07-27T05:31:44.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-27T05:32:31.000Z (over 12 years ago)
- Last Synced: 2024-12-22T13:14:52.762Z (15 days ago)
- Language: Ruby
- Size: 85.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"