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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 696260b5df6ded43b0b193245b76f1fa6f30fa28
4
- data.tar.gz: 0ce5b012e657302cdad561e7f965066fadd077c0
3
+ metadata.gz: 59f3071241895b22dce9555dbdfd90acfab02566
4
+ data.tar.gz: '0339879e4ebaa89ab5228f8293634bb14c380560'
5
5
  SHA512:
6
- metadata.gz: 0bdc39de1878d847b65a22b0606b44bf3528e595d77866521a865be443977208cfd1a5903e00265ca09848bf0431930d10b801a72d832701766c9d8dde88fd77
7
- data.tar.gz: bf34d913f1ebf72e071d1403fd40cb653fe28e1ec56e55bc50fd836acfc40feeae3d7598022bdf5f506a43d9930733c94e0f748a03fbb4d5a3bdcfbc1cfc69f8
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'
@@ -1,3 +1,3 @@
1
1
  module Githook
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
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.0
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-03-31 00:00:00.000000000 Z
11
+ date: 2019-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler