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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6249c3de2e45bc9b03ac662f1927cf10cec74af8
4
- data.tar.gz: 36aae9238098865dd1ef77a8d89d6e6ab5fef90e
3
+ metadata.gz: afc57729bc6b91c5eba0e84e859146e4186f6014
4
+ data.tar.gz: 20c9320c3132f0eb7b828a4f7d7a8277d7492d8f
5
5
  SHA512:
6
- metadata.gz: 7918e9880cae12db1e6f2228404359558721e78f928878685b36086f622d499b883bae47926179b7c232dbde3487bec3d3d2ab35b25f807468cc5721f461f74a
7
- data.tar.gz: 9b9fcbf6ec39c7bc73b51e2015e5977a9e4461b3828509ac2aaad3b18de7156b72141c64d45e58273fdbbc39050db4b2c940d6ae898b6efa1954d89cf1c88695
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))
@@ -1,3 +1,3 @@
1
1
  module HookSpec
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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.3
121
+ rubygems_version: 2.0.14
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: git hooks by spec