pre-commit 0.16.1 → 0.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pre-commit/utils/staged_files.rb +6 -1
- metadata +3 -25
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3aed1442423a1de14f85657be3f73d49e95a4215
|
4
|
+
data.tar.gz: 13282f394b2f9554dcb6f82f83d78c28ce26e19a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae9f872435368772e808f16c5256f7314c8df6e76559ff4c90d168225f9b852f3601b4dbe31a38393b2ada6321c4993c478fe82660633b44f5fc64f37dd20d76
|
7
|
+
data.tar.gz: dd6ec51fdd69231834e02769f6929854c7bc5f5ffac4993471bca348824201c76ca7367ea068c609fe144ad6a6f1b10208463e3a1fb586f861ec4864f725c245
|
@@ -5,7 +5,12 @@ module PreCommit
|
|
5
5
|
def staged_files
|
6
6
|
@staged_files ||= begin
|
7
7
|
files = `git diff --cached --name-only --diff-filter=ACM`.split
|
8
|
-
files.reject
|
8
|
+
files.reject do |f|
|
9
|
+
size = File.size(f);
|
10
|
+
File.directory?(f) ||
|
11
|
+
size > 1_000_000 ||
|
12
|
+
(size > 20 && binary?(f))
|
13
|
+
end
|
9
14
|
end
|
10
15
|
end
|
11
16
|
|
metadata
CHANGED
@@ -1,36 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pre-commit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shajith Chacko, Josh Lubaway
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_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
-
a4mm5LwRsGk6OoOnOhpFkXwoe8SfiSKGW17eQfgbg93+eDBtojnY3usshk6iR/cZ
|
28
|
-
apmFKrVSkbFzWOgA8pnR2oUxHENzIUxk3L3av0r0hPMvpl1xx35NsIjCYZQuAAth
|
29
|
-
XD80nC5KOZZsnhZ1acG0klA4WQDkdydAoWsLaWQxy+75k6zNV/d0/FrKnIX2Cmcg
|
30
|
-
B6/QYIQE0zK228rX1D0cdH01jxRbnOs//5L2K1RSIjhHMN8h+Fu+QrlArhp5jdVL
|
31
|
-
+I0rCI7TrvLurPrqlVodoSCc8jXI53waz+mS96CtfP8W/rXy
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2014-05-14 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: pluginator
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED