pre-commit 0.29.0 → 0.30.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.
- checksums.yaml +4 -4
- data/lib/pre-commit/installer.rb +1 -4
- data/templates/hooks/simple +14 -0
- metadata +3 -3
- data/templates/hooks/default +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1696de5953933b0409ba212be135ae70278764d4
|
|
4
|
+
data.tar.gz: d135de413254348dcab82c9fdc265c9336e6337a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf39fb5a0b6655fb05780e6f99379a852789d02a05d39065a0ba92316fee18a8e9c7980b7f75398843e2c60cfeef01e449865d888ede4aed045c125a9918e4fc
|
|
7
|
+
data.tar.gz: a5fc23cc751487a6146b1f1a746e3fd5028ad6e90f9038703d326bbda2a21b6049caf0bdc2d0f5bf5f12bb3c85fc13494afd16df58e906ec61580c8eb2a4445f
|
data/lib/pre-commit/installer.rb
CHANGED
|
@@ -2,7 +2,6 @@ require 'fileutils'
|
|
|
2
2
|
require 'pre-commit/configuration'
|
|
3
3
|
|
|
4
4
|
module PreCommit
|
|
5
|
-
|
|
6
5
|
class Installer
|
|
7
6
|
|
|
8
7
|
TARGET_GIT_PATH = '.git'
|
|
@@ -12,7 +11,7 @@ module PreCommit
|
|
|
12
11
|
attr_reader :key
|
|
13
12
|
|
|
14
13
|
def initialize(key = nil)
|
|
15
|
-
@key = key || "
|
|
14
|
+
@key = key || "automatic"
|
|
16
15
|
end
|
|
17
16
|
|
|
18
17
|
def hook
|
|
@@ -43,8 +42,6 @@ module PreCommit
|
|
|
43
42
|
end
|
|
44
43
|
end
|
|
45
44
|
|
|
46
|
-
private
|
|
47
|
-
|
|
48
45
|
def templates
|
|
49
46
|
return @templates if @templates
|
|
50
47
|
pattern = File.join(TEMPLATE_DIR, "*")
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
# This hook has a focus on simplicity.
|
|
4
|
+
# This hook puts the burden on you to set up your environment properly.
|
|
5
|
+
#
|
|
6
|
+
# If you would like `pre-commit` to attempt to setup your environment for you
|
|
7
|
+
# before the checks run, you can install the automatic environment hook using:
|
|
8
|
+
#
|
|
9
|
+
# pre-commit install --automatic
|
|
10
|
+
#
|
|
11
|
+
|
|
12
|
+
require 'pre-commit'
|
|
13
|
+
|
|
14
|
+
PreCommit.run
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pre-commit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.30.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shajith Chacko, Josh Lubaway
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-10-
|
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pluginator
|
|
@@ -159,8 +159,8 @@ files:
|
|
|
159
159
|
- templates/gem/test/minitest_helper.rb
|
|
160
160
|
- templates/gem/test/plugins/pre_commit/checks/PLUGIN_NAME_test.rb
|
|
161
161
|
- templates/hooks/automatic
|
|
162
|
-
- templates/hooks/default
|
|
163
162
|
- templates/hooks/manual
|
|
163
|
+
- templates/hooks/simple
|
|
164
164
|
homepage: http://github.com/jish/pre-commit
|
|
165
165
|
licenses:
|
|
166
166
|
- Apache 2.0
|
data/templates/hooks/default
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
automatic
|