pre-commit 0.32.0 → 0.33.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.
@@ -19,7 +19,7 @@ module PreCommit
19
19
  end
20
20
 
21
21
  def str2arr(string)
22
- string.split(/, ?/).map{|string| str_symbolize(string.chomp.strip) }
22
+ string.split(/, ?/).map{|s| str_symbolize(s.chomp.strip) }
23
23
  end
24
24
 
25
25
  def str_symbolize(string)
@@ -42,7 +42,7 @@ module PreCommit
42
42
 
43
43
  def filter_files(files)
44
44
  files.reject do |file|
45
- !File.exists?(file) ||
45
+ !File.exist?(file) ||
46
46
  File.directory?(file) ||
47
47
  (
48
48
  size = File.size(file)
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.32.0
4
+ version: 0.33.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: 2017-03-04 00:00:00.000000000 Z
11
+ date: 2017-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pluginator