git-precommit 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -44,7 +44,7 @@ Add the following code to your project's Rakefile:
44
44
 
45
45
  git-precommit can be configured to automatically push to your remote
46
46
  repository on successful checkin by installing the post-commit hook:
47
- rake .git/hooks/post-commit
47
+ rake git:postcommit
48
48
  However, if you're running a continuous
49
49
  integration build, you shouldn't push onto a broken build (unless you're
50
50
  pushing the fix).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{git-precommit}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Toby Tripp"]
@@ -27,6 +27,14 @@ module GitPrecommit
27
27
  copy t.prerequisites.first, t.name
28
28
  chmod 0755, t.name
29
29
  end
30
+
31
+ namespace :git do
32
+ desc "Install the git pre-commit hook"
33
+ task :precommit => ".git/hooks/pre-commit"
34
+
35
+ desc "Install the git post-commit hook"
36
+ task :postcommit => ".git/hooks/post-commit"
37
+ end
30
38
  end
31
39
  end
32
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-precommit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Tripp