git-precommit 1.2.4 → 1.2.5

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git-precommit (1.2.4)
4
+ git-precommit (1.2.5)
5
5
  rake
6
6
 
7
7
  GEM
@@ -23,19 +23,13 @@ module GitPrecommit
23
23
  pre_commit = ".git/hooks/pre-commit"
24
24
  pre_commit_src = "#{template_path}/pre-commit"
25
25
 
26
- task :overwrite do |t|
27
- if @options[:draconian]
28
- copy pre_commit_src, pre_commit
29
- chmod 0755, pre_commit
30
- end
31
- end
26
+ task :overwrite
32
27
 
33
28
  deps = [pre_commit_src]
34
29
  deps += [:overwrite] if @options[:draconian]
35
30
 
36
31
  desc "Install the git pre-commit hook"
37
32
  file pre_commit => deps do |t|
38
- warn "Git pre-commit hook missing, setting up…"
39
33
  copy t.prerequisites.first, t.name
40
34
  chmod 0755, t.name
41
35
  end
@@ -1,3 +1,3 @@
1
1
  module GitPrecommit
2
- VERSION = "1.2.4"
3
- end
2
+ VERSION = "1.2.5"
3
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 4
9
- version: 1.2.4
8
+ - 5
9
+ version: 1.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Toby Tripp