git-hook 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -12
- data/lib/githook/tasks/1-pre-commit.rake +1 -1
- data/lib/githook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59f3071241895b22dce9555dbdfd90acfab02566
|
4
|
+
data.tar.gz: '0339879e4ebaa89ab5228f8293634bb14c380560'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88877e4b23fbc76248f8f05ec117b45f769a2eedab1fca3140a0be5fdcea277af987d62262ce35dd9bd93fb8c55053f8eb188ed9abe0594deed22161087ba3a0
|
7
|
+
data.tar.gz: 882be8053ea6f82c45b508418b0a0c1f5943df639b35b6153f546e9058a3efab355760fd568face1293c0030816b244544cd68ac41ad8f6d39d91638c517a12e
|
data/README.md
CHANGED
@@ -18,18 +18,6 @@ A ruby gem that help to setup git hooks easily, base on Rake, inspired from Capi
|
|
18
18
|
|
19
19
|
## Installation
|
20
20
|
|
21
|
-
Add this line to your application's Gemfile:
|
22
|
-
|
23
|
-
```ruby
|
24
|
-
gem 'git-hook'
|
25
|
-
```
|
26
|
-
|
27
|
-
And then execute:
|
28
|
-
|
29
|
-
$ bundle
|
30
|
-
|
31
|
-
Or install it yourself as:
|
32
|
-
|
33
21
|
$ gem install git-hook
|
34
22
|
|
35
23
|
**Notice!** The gem name isn't **githook**, it is another gem written by some guy.
|
@@ -247,6 +235,10 @@ Demo:
|
|
247
235
|
|
248
236
|
## Releases
|
249
237
|
|
238
|
+
### 0.2.1
|
239
|
+
|
240
|
+
1. Add `--force-exclusion` option to rubocop command to exclude the files defined in the configuration
|
241
|
+
|
250
242
|
### 0.2.0
|
251
243
|
|
252
244
|
1. Fix bug that rubocop will check all files if has no changed ruby file
|
@@ -4,7 +4,7 @@ namespace :pre_commit do
|
|
4
4
|
Githook::Util.log_task(t.name)
|
5
5
|
changed_ruby_files = Githook::Util.changed_ruby_files
|
6
6
|
exit 0 if changed_ruby_files.empty?
|
7
|
-
exit 1 unless system("bundle exec rubocop #{changed_ruby_files}")
|
7
|
+
exit 1 unless system("bundle exec rubocop --force-exclusion #{changed_ruby_files}")
|
8
8
|
end
|
9
9
|
|
10
10
|
desc 'Test ruby code by rspec'
|
data/lib/githook/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-hook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- baurine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|