pre-commit 0.29.0 → 0.30.0

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: 6e3d660e5cb5d67fbf8bc342a007439fb19ad013
4
- data.tar.gz: d3d6ceb36c3bf46e2faaaf2d20c52d548938debc
3
+ metadata.gz: 1696de5953933b0409ba212be135ae70278764d4
4
+ data.tar.gz: d135de413254348dcab82c9fdc265c9336e6337a
5
5
  SHA512:
6
- metadata.gz: 0a1c9bca0529a85f7d564da55a87222e23763682d0910bf9d26ceb95bf51b6f3e81d4058b344795160d6865885b61d84d8188b795ee72fe3d2165896d468bfbe
7
- data.tar.gz: 304f6aa0fdccd9be6d30721395a10d3a8df778ecb62a52ac262040d0f1ad6966c553ae20c83d06e7bfc2400cfbde05674d0d74780cb2b213457c16fc14855b1d
6
+ metadata.gz: cf39fb5a0b6655fb05780e6f99379a852789d02a05d39065a0ba92316fee18a8e9c7980b7f75398843e2c60cfeef01e449865d888ede4aed045c125a9918e4fc
7
+ data.tar.gz: a5fc23cc751487a6146b1f1a746e3fd5028ad6e90f9038703d326bbda2a21b6049caf0bdc2d0f5bf5f12bb3c85fc13494afd16df58e906ec61580c8eb2a4445f
@@ -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 || "default"
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.29.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-02 00:00:00.000000000 Z
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
@@ -1 +0,0 @@
1
- automatic