hookspec 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hookspec/tasks/install.rake +1 -1
- data/lib/hookspec/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: afc57729bc6b91c5eba0e84e859146e4186f6014
|
4
|
+
data.tar.gz: 20c9320c3132f0eb7b828a4f7d7a8277d7492d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7be531ad357f544dc8df8ec9f8a29595d69e1e924c5627abf1bcf09b3bd7bc8db1664b271327fde63c368f2e1e1b7c398adc4c69211b2a32a402e118cf388da9
|
7
|
+
data.tar.gz: 4b47c06432e9d6f7aedc7955642bb8ec957b40813915f8cfbe284dc367e24decbee28525c7e4aeabc40c457a8530aca30395dab7fcd622a2cbfa54bf6eec4933
|
@@ -33,7 +33,7 @@ Current dirctory is not git repo root dirctory!
|
|
33
33
|
|
34
34
|
hooks.each do |hook|
|
35
35
|
# copy hook.sh
|
36
|
-
mv(".git/hooks/#{hook}", ".git/hooks/#{hook}.bk")
|
36
|
+
mv(".git/hooks/#{hook}", ".git/hooks/#{hook}.bk") if File.exist?(".git/hooks/#{hook}")
|
37
37
|
sh_template = File.read (File.expand_path("../../templates/" + hook + ".sh", __FILE__) )
|
38
38
|
File.open(".git/hooks/#{hook}", 'w+') do |f|
|
39
39
|
f.write(ERB.new(sh_template).result(binding))
|
data/lib/hookspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hookspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wills
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.0.
|
121
|
+
rubygems_version: 2.0.14
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: git hooks by spec
|