git-precommit 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1 +1,2 @@
1
1
  rvm --create @git-precommit
2
+ rvm gemset import project.gems
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git-precommit (1.2.5)
4
+ git-precommit (1.2.6)
5
5
  rake
6
6
 
7
7
  GEM
@@ -44,6 +44,5 @@ DEPENDENCIES
44
44
  aruba
45
45
  cucumber (~> 0.9.0)
46
46
  git-precommit!
47
- rake
48
47
  rspec (~> 2.0.0)
49
48
  syntax
@@ -20,3 +20,11 @@ if [ -x "$cmd" ] && [ -f CRUISE_URL ]; then
20
20
  else
21
21
  do_push
22
22
  fi
23
+
24
+ if grep "@\{0\}.*partial commit" < <(git stash list); then
25
+ git stash pop
26
+ fi
27
+
28
+ echo
29
+ # echo "FIXMEs Found:"
30
+ # exec bundle exec rake notes:fixme
@@ -1,6 +1,11 @@
1
1
  #!/usr/bin/env sh
2
2
 
3
- # Add all local changes to the index and delete removed files.
4
- git add -A .
3
+ function unstaged_changes {
4
+ ! git diff --quiet
5
+ }
5
6
 
6
- rake precommit
7
+ if unstaged_changes; then
8
+ git stash save --keep-index "Performing partial commit against `git rev-parse HEAD`"
9
+ fi
10
+
11
+ exec time bundle exec rake precommit
@@ -14,14 +14,14 @@ Gem::Specification.new do |s|
14
14
  s.description = %q{
15
15
  A set of rake tasks that install git pre-commit hooks to run your tests.
16
16
  If your build fails, the commit will not proceed.
17
-
17
+
18
18
  Git-precommit will call `rake precommit` to run your tests. Be sure to define this task.
19
19
  }
20
-
20
+
21
21
  s.files = `git ls-files`.split("\n")
22
22
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
23
23
  s.require_paths = ["lib"]
24
-
24
+
25
25
  s.extra_rdoc_files = %w[README.rdoc]
26
26
  s.rdoc_options = ["--charset=UTF-8"]
27
27
  s.rubygems_version = %q{1.3.6}
@@ -29,10 +29,9 @@ Gem::Specification.new do |s|
29
29
  s.rubyforge_project = "git-precommit"
30
30
 
31
31
  s.add_dependency "rake"
32
-
32
+
33
33
  s.add_development_dependency "rspec", "~> 2.0.0"
34
34
  s.add_development_dependency "cucumber", "~> 0.9.0"
35
35
  s.add_development_dependency "aruba"
36
36
  s.add_development_dependency "syntax"
37
37
  end
38
-
@@ -1,3 +1,3 @@
1
1
  module GitPrecommit
2
- VERSION = "1.2.5"
2
+ VERSION = "1.2.6"
3
3
  end
@@ -0,0 +1 @@
1
+ bundler -v1.0.22
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-precommit
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 2
8
- - 5
9
- version: 1.2.5
4
+ prerelease:
5
+ version: 1.2.6
10
6
  platform: ruby
11
7
  authors:
12
8
  - Toby Tripp
@@ -14,79 +10,64 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-11-04 00:00:00 -05:00
18
- default_executable:
13
+ date: 2012-02-23 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: rake
22
- prerelease: false
23
17
  requirement: &id001 !ruby/object:Gem::Requirement
24
18
  none: false
25
19
  requirements:
26
20
  - - ">="
27
21
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
22
  version: "0"
31
23
  type: :runtime
24
+ prerelease: false
32
25
  version_requirements: *id001
33
26
  - !ruby/object:Gem::Dependency
34
27
  name: rspec
35
- prerelease: false
36
28
  requirement: &id002 !ruby/object:Gem::Requirement
37
29
  none: false
38
30
  requirements:
39
31
  - - ~>
40
32
  - !ruby/object:Gem::Version
41
- segments:
42
- - 2
43
- - 0
44
- - 0
45
33
  version: 2.0.0
46
34
  type: :development
35
+ prerelease: false
47
36
  version_requirements: *id002
48
37
  - !ruby/object:Gem::Dependency
49
38
  name: cucumber
50
- prerelease: false
51
39
  requirement: &id003 !ruby/object:Gem::Requirement
52
40
  none: false
53
41
  requirements:
54
42
  - - ~>
55
43
  - !ruby/object:Gem::Version
56
- segments:
57
- - 0
58
- - 9
59
- - 0
60
44
  version: 0.9.0
61
45
  type: :development
46
+ prerelease: false
62
47
  version_requirements: *id003
63
48
  - !ruby/object:Gem::Dependency
64
49
  name: aruba
65
- prerelease: false
66
50
  requirement: &id004 !ruby/object:Gem::Requirement
67
51
  none: false
68
52
  requirements:
69
53
  - - ">="
70
54
  - !ruby/object:Gem::Version
71
- segments:
72
- - 0
73
55
  version: "0"
74
56
  type: :development
57
+ prerelease: false
75
58
  version_requirements: *id004
76
59
  - !ruby/object:Gem::Dependency
77
60
  name: syntax
78
- prerelease: false
79
61
  requirement: &id005 !ruby/object:Gem::Requirement
80
62
  none: false
81
63
  requirements:
82
64
  - - ">="
83
65
  - !ruby/object:Gem::Version
84
- segments:
85
- - 0
86
66
  version: "0"
87
67
  type: :development
68
+ prerelease: false
88
69
  version_requirements: *id005
89
- description: "\n A set of rake tasks that install git pre-commit hooks to run your tests.\n If your build fails, the commit will not proceed.\n \n Git-precommit will call `rake precommit` to run your tests. Be sure to define this task.\n "
70
+ description: "\n A set of rake tasks that install git pre-commit hooks to run your tests.\n If your build fails, the commit will not proceed.\n\n Git-precommit will call `rake precommit` to run your tests. Be sure to define this task.\n "
90
71
  email: toby.tripp+git@gmail.com
91
72
  executables:
92
73
  - setpairs
@@ -113,8 +94,8 @@ files:
113
94
  - lib/git-precommit/tasks.rb
114
95
  - lib/git-precommit/version.rb
115
96
  - lib/git_precommit.rb
97
+ - project.gems
116
98
  - tasks/cucumber.rake
117
- has_rdoc: true
118
99
  homepage: http://github.com/tobytripp/git-pre-commit
119
100
  licenses: []
120
101
 
@@ -128,6 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
109
  requirements:
129
110
  - - ">="
130
111
  - !ruby/object:Gem::Version
112
+ hash: -1628910085885076969
131
113
  segments:
132
114
  - 0
133
115
  version: "0"
@@ -136,13 +118,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
118
  requirements:
137
119
  - - ">="
138
120
  - !ruby/object:Gem::Version
121
+ hash: -1628910085885076969
139
122
  segments:
140
123
  - 0
141
124
  version: "0"
142
125
  requirements: []
143
126
 
144
127
  rubyforge_project: git-precommit
145
- rubygems_version: 1.3.7
128
+ rubygems_version: 1.7.2
146
129
  signing_key:
147
130
  specification_version: 3
148
131
  summary: Abort git commit if the tests fail.