overcommit 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,10 +7,10 @@ module Overcommit::GitHook
|
|
7
7
|
return :warn, 'Need either `jshint` or `rhino` in path' unless runner
|
8
8
|
|
9
9
|
paths = staged.map { |s| s.path }.join(' ')
|
10
|
-
output = runner.call(paths)
|
10
|
+
output = runner.call(paths)
|
11
11
|
staged.each { |s| output = s.filter_string(output) }
|
12
12
|
|
13
|
-
return (output.
|
13
|
+
return (output.empty? ? :good : :bad), output
|
14
14
|
end
|
15
15
|
|
16
16
|
private
|
data/lib/overcommit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: overcommit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -34,53 +34,53 @@ executables:
|
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
|
-
- lib/overcommit.rb
|
38
|
-
- lib/overcommit/
|
39
|
-
- lib/overcommit/
|
40
|
-
- lib/overcommit/
|
41
|
-
- lib/overcommit/
|
37
|
+
- lib/overcommit/logger.rb
|
38
|
+
- lib/overcommit/installer.rb
|
39
|
+
- lib/overcommit/hook_specific_check.rb
|
40
|
+
- lib/overcommit/reporter.rb
|
41
|
+
- lib/overcommit/staged_file.rb
|
42
|
+
- lib/overcommit/plugins/commit_msg/hard_tabs.rb
|
43
|
+
- lib/overcommit/plugins/commit_msg/russian_novel.rb
|
42
44
|
- lib/overcommit/plugins/commit_msg/release_note.rb
|
43
45
|
- lib/overcommit/plugins/commit_msg/single_line_subject.rb
|
44
|
-
- lib/overcommit/plugins/commit_msg/
|
45
|
-
- lib/overcommit/plugins/commit_msg/hard_tabs.rb
|
46
|
+
- lib/overcommit/plugins/commit_msg/change_id.rb
|
46
47
|
- lib/overcommit/plugins/commit_msg/text_width.rb
|
47
|
-
- lib/overcommit/plugins/
|
48
|
-
- lib/overcommit/plugins/pre_commit/js_console_log.rb
|
49
|
-
- lib/overcommit/plugins/pre_commit/ruby_syntax.rb
|
48
|
+
- lib/overcommit/plugins/commit_msg/trailing_period.rb
|
50
49
|
- lib/overcommit/plugins/pre_commit/js_syntax.rb
|
50
|
+
- lib/overcommit/plugins/pre_commit/test_history.rb
|
51
51
|
- lib/overcommit/plugins/pre_commit/yaml_syntax.rb
|
52
|
-
- lib/overcommit/plugins/pre_commit/
|
52
|
+
- lib/overcommit/plugins/pre_commit/python_flake8.rb
|
53
53
|
- lib/overcommit/plugins/pre_commit/causes_email.rb
|
54
|
+
- lib/overcommit/plugins/pre_commit/js_console_log.rb
|
54
55
|
- lib/overcommit/plugins/pre_commit/author_name.rb
|
55
|
-
- lib/overcommit/plugins/pre_commit/
|
56
|
-
- lib/overcommit/plugins/pre_commit/
|
56
|
+
- lib/overcommit/plugins/pre_commit/erb_syntax.rb
|
57
|
+
- lib/overcommit/plugins/pre_commit/scss_lint.rb
|
57
58
|
- lib/overcommit/plugins/pre_commit/coffee_lint.rb
|
58
|
-
- lib/overcommit/plugins/pre_commit/
|
59
|
+
- lib/overcommit/plugins/pre_commit/haml_syntax.rb
|
60
|
+
- lib/overcommit/plugins/pre_commit/whitespace.rb
|
59
61
|
- lib/overcommit/plugins/pre_commit/restricted_paths.rb
|
60
|
-
- lib/overcommit/plugins/pre_commit/
|
62
|
+
- lib/overcommit/plugins/pre_commit/ruby_syntax.rb
|
61
63
|
- lib/overcommit/plugins/pre_commit/css_linter.rb
|
62
|
-
- lib/overcommit/staged_file.rb
|
63
|
-
- lib/overcommit/reporter.rb
|
64
|
-
- lib/overcommit/hook_specific_check.rb
|
65
|
-
- lib/overcommit/installer.rb
|
66
|
-
- lib/overcommit/errors.rb
|
67
64
|
- lib/overcommit/git_hook.rb
|
65
|
+
- lib/overcommit/errors.rb
|
66
|
+
- lib/overcommit/cli.rb
|
68
67
|
- lib/overcommit/configuration.rb
|
68
|
+
- lib/overcommit/version.rb
|
69
69
|
- lib/overcommit/hooks/pre_commit.rb
|
70
70
|
- lib/overcommit/hooks/commit_msg.rb
|
71
|
-
- lib/overcommit/
|
72
|
-
- lib/overcommit
|
71
|
+
- lib/overcommit/utils.rb
|
72
|
+
- lib/overcommit.rb
|
73
|
+
- bin/overcommit
|
73
74
|
- bin/run-hook
|
74
|
-
- bin/scripts/index-tags
|
75
|
-
- bin/scripts/gerrit-change-id
|
76
75
|
- bin/scripts/jshint.js
|
76
|
+
- bin/scripts/index-tags
|
77
77
|
- bin/scripts/csslint-rhino.js
|
78
|
+
- bin/scripts/gerrit-change-id
|
78
79
|
- bin/scripts/jshint_runner.js
|
79
|
-
- bin/overcommit
|
80
80
|
- bin/hooks/commit-msg
|
81
|
-
- bin/hooks/post-checkout
|
82
|
-
- bin/hooks/post-merge
|
83
81
|
- bin/hooks/pre-commit
|
82
|
+
- bin/hooks/post-merge
|
83
|
+
- bin/hooks/post-checkout
|
84
84
|
- bin/hooks/prepare-commit-msg
|
85
85
|
- config/templates.yml
|
86
86
|
homepage: http://github.com/causes/overcommit
|