pre-commit 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plugins/pre_commit/checks/migration.rb +6 -4
- metadata +26 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2db93ce5fb5dc9b3a99fb684714b6654cd38e529
|
4
|
+
data.tar.gz: ab43c0f718be5c1381a342990177fd3a9ddc4480
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 772cf671eadbafbf4a075a1e60cbd9127600f67c678eeb9acf7abb466e225169c6ee1301320131e5ba6c8c868f2f28e7d8106d5cd0d815de73729ec2eeec2520
|
7
|
+
data.tar.gz: df4d51db5e56f9510c0ce0cfa69478260189383c7e4919f7bf8ea912301c9b4621c215027615ddca8d6b90d95205e77af12e4c7ce9621ab7c9ff28ab4883a966
|
@@ -6,7 +6,9 @@ module PreCommit
|
|
6
6
|
VERSION_PATTERN = /(\d{14})/
|
7
7
|
|
8
8
|
self::VersionedFile = Struct.new(:file, :version) do
|
9
|
-
|
9
|
+
def to_s
|
10
|
+
"<#{self.class.name} file=\"#{file}\" version=\"#{version}\">"
|
11
|
+
end
|
10
12
|
end
|
11
13
|
|
12
14
|
def self.aliases
|
@@ -26,7 +28,7 @@ module PreCommit
|
|
26
28
|
missing_versions = migration_versions - schema_files.map(&:version)
|
27
29
|
if missing_versions.any?
|
28
30
|
"You did not add the schema versions for "\
|
29
|
-
"#{migration_versions.join(', ')} to #{schema_files.join(' or ')}"
|
31
|
+
"#{migration_versions.join(', ')} to #{schema_files.map(&:file).join(' or ')}"
|
30
32
|
end
|
31
33
|
end
|
32
34
|
end
|
@@ -49,8 +51,8 @@ module PreCommit
|
|
49
51
|
end
|
50
52
|
|
51
53
|
files.each_with_object([]) do |f, result|
|
52
|
-
|
53
|
-
result << VersionedFile.new(f,
|
54
|
+
File.read(f).scan(VERSION_PATTERN) do |i|
|
55
|
+
result << VersionedFile.new(f, i.first)
|
54
56
|
end
|
55
57
|
end
|
56
58
|
end
|
metadata
CHANGED
@@ -1,111 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pre-commit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.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: 2014-10
|
11
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pluginator
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: guard
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: guard-minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '2.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '4.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '4.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitest-reporters
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '10.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '10.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0.25'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0.25'
|
111
111
|
description: A git pre-commit hook written in ruby with a few more tricks up its sleeve
|
@@ -116,7 +116,6 @@ extensions: []
|
|
116
116
|
extra_rdoc_files:
|
117
117
|
- README.md
|
118
118
|
files:
|
119
|
-
- README.md
|
120
119
|
- bin/pre-commit
|
121
120
|
- lib/plugins/pluginator/extensions/find_check.rb
|
122
121
|
- lib/plugins/pre_commit/checks/before_all.rb
|
@@ -146,23 +145,22 @@ files:
|
|
146
145
|
- lib/plugins/pre_commit/checks/tabs.rb
|
147
146
|
- lib/plugins/pre_commit/checks/whitespace.rb
|
148
147
|
- lib/plugins/pre_commit/checks/yaml.rb
|
149
|
-
- lib/plugins/pre_commit/configuration/providers/README.md
|
150
148
|
- lib/plugins/pre_commit/configuration/providers/default.rb
|
151
149
|
- lib/plugins/pre_commit/configuration/providers/env.rb
|
152
150
|
- lib/plugins/pre_commit/configuration/providers/git.rb
|
153
151
|
- lib/plugins/pre_commit/configuration/providers/git_old.rb
|
152
|
+
- lib/plugins/pre_commit/configuration/providers/README.md
|
154
153
|
- lib/plugins/pre_commit/configuration/providers/yaml.rb
|
155
|
-
- lib/pre-commit.rb
|
156
|
-
- lib/pre-commit/checks.rb
|
157
154
|
- lib/pre-commit/checks/grep.rb
|
158
155
|
- lib/pre-commit/checks/js.rb
|
159
|
-
- lib/pre-commit/checks/plugin.rb
|
160
156
|
- lib/pre-commit/checks/plugin/config_file.rb
|
157
|
+
- lib/pre-commit/checks/plugin.rb
|
161
158
|
- lib/pre-commit/checks/shell.rb
|
159
|
+
- lib/pre-commit/checks.rb
|
162
160
|
- lib/pre-commit/cli.rb
|
163
|
-
- lib/pre-commit/configuration.rb
|
164
161
|
- lib/pre-commit/configuration/providers.rb
|
165
162
|
- lib/pre-commit/configuration/top_level.rb
|
163
|
+
- lib/pre-commit/configuration.rb
|
166
164
|
- lib/pre-commit/error_list.rb
|
167
165
|
- lib/pre-commit/installer.rb
|
168
166
|
- lib/pre-commit/line.rb
|
@@ -176,32 +174,34 @@ files:
|
|
176
174
|
- lib/pre-commit/support/jslint/lint.js
|
177
175
|
- lib/pre-commit/utils/git_conversions.rb
|
178
176
|
- lib/pre-commit/utils/staged_files.rb
|
177
|
+
- lib/pre-commit.rb
|
179
178
|
- templates/hooks/automatic
|
180
179
|
- templates/hooks/default
|
181
180
|
- templates/hooks/manual
|
181
|
+
- README.md
|
182
182
|
homepage: http://github.com/jish/pre-commit
|
183
183
|
licenses:
|
184
184
|
- Apache 2.0
|
185
185
|
metadata: {}
|
186
186
|
post_install_message:
|
187
187
|
rdoc_options:
|
188
|
-
-
|
188
|
+
- --main
|
189
189
|
- README.md
|
190
190
|
require_paths:
|
191
191
|
- lib
|
192
192
|
required_ruby_version: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
|
-
- -
|
194
|
+
- - '>='
|
195
195
|
- !ruby/object:Gem::Version
|
196
196
|
version: '0'
|
197
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - '>='
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
203
|
rubyforge_project:
|
204
|
-
rubygems_version: 2.
|
204
|
+
rubygems_version: 2.0.14
|
205
205
|
signing_key:
|
206
206
|
specification_version: 3
|
207
207
|
summary: A slightly better git pre-commit hook
|