pre-commit 0.4.0 → 0.5.0

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.
Files changed (2) hide show
  1. data/templates/pre-commit-hook +2 -0
  2. metadata +3 -4
@@ -2,6 +2,8 @@
2
2
 
3
3
  if system("which rvm > /dev/null")
4
4
  cmd = "rvm default do ruby -rrubygems "
5
+ elsif system("which rbenv > /dev/null")
6
+ cmd = "rbenv exec ruby -rrubygems "
5
7
  else
6
8
  cmd = "ruby -rrubygems "
7
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pre-commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-15 00:00:00.000000000 Z
12
+ date: 2012-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: execjs
@@ -27,8 +27,7 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
- description: A git pre-commit hook written in ruby with a few more tricks up it's
31
- sleeve
30
+ description: A git pre-commit hook written in ruby with a few more tricks up its sleeve
32
31
  email: dontneedmoreemail@example.com
33
32
  executables:
34
33
  - pre-commit