overcommit 0.3.1 → 0.3.2
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.
- data/lib/overcommit/plugins/pre_commit/ruby_style.rb +8 -9
- data/lib/overcommit/version.rb +1 -1
- metadata +57 -35
- checksums.yaml +0 -7
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'enumerator'
|
1
2
|
require 'pathname'
|
2
3
|
|
3
4
|
module Overcommit::GitHook
|
@@ -54,15 +55,13 @@ module Overcommit::GitHook
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def rubocop_yml_for(staged_file)
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
end
|
65
|
-
config_file
|
58
|
+
possible_files(staged_file.original_path).find { |path| path.file? }
|
59
|
+
end
|
60
|
+
|
61
|
+
def possible_files(file_path)
|
62
|
+
files = Pathname.new(file_path).enum_for(:ascend).
|
63
|
+
map { |path| path + '.rubocop.yml' }
|
64
|
+
files << Pathname.new('.rubocop.yml')
|
66
65
|
end
|
67
66
|
end
|
68
67
|
end
|
data/lib/overcommit/version.rb
CHANGED
metadata
CHANGED
@@ -1,36 +1,48 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: overcommit
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- Causes Engineering
|
8
14
|
autorequire:
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
17
|
+
|
18
|
+
date: 2013-10-28 00:00:00 -07:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
14
22
|
name: rspec
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 2.13.0
|
20
|
-
type: :development
|
21
23
|
prerelease: false
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - "="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 59
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 13
|
33
|
+
- 0
|
26
34
|
version: 2.13.0
|
35
|
+
type: :development
|
36
|
+
version_requirements: *id001
|
27
37
|
description: Overcommit is a utility to install and extend Git hooks
|
28
38
|
email: eng@causes.com
|
29
|
-
executables:
|
39
|
+
executables:
|
30
40
|
- overcommit
|
31
41
|
extensions: []
|
42
|
+
|
32
43
|
extra_rdoc_files: []
|
33
|
-
|
44
|
+
|
45
|
+
files:
|
34
46
|
- lib/overcommit.rb
|
35
47
|
- lib/overcommit/version.rb
|
36
48
|
- lib/overcommit/utils.rb
|
@@ -82,29 +94,39 @@ files:
|
|
82
94
|
- bin/hooks/pre-commit
|
83
95
|
- bin/hooks/prepare-commit-msg
|
84
96
|
- config/templates.yml
|
97
|
+
has_rdoc: true
|
85
98
|
homepage: http://github.com/causes/overcommit
|
86
|
-
licenses:
|
99
|
+
licenses:
|
87
100
|
- MIT
|
88
|
-
metadata: {}
|
89
101
|
post_install_message:
|
90
102
|
rdoc_options: []
|
91
|
-
|
103
|
+
|
104
|
+
require_paths:
|
92
105
|
- lib
|
93
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
106
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
hash: 3
|
112
|
+
segments:
|
113
|
+
- 0
|
114
|
+
version: "0"
|
115
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
hash: 3
|
121
|
+
segments:
|
122
|
+
- 0
|
123
|
+
version: "0"
|
103
124
|
requirements: []
|
125
|
+
|
104
126
|
rubyforge_project:
|
105
|
-
rubygems_version:
|
127
|
+
rubygems_version: 1.3.7
|
106
128
|
signing_key:
|
107
|
-
specification_version:
|
129
|
+
specification_version: 3
|
108
130
|
summary: Opinionated Git hook manager
|
109
131
|
test_files: []
|
110
|
-
|
132
|
+
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 58ead1f5474b347ce42bdbc99e97631448bf2015
|
4
|
-
data.tar.gz: e8b9c8a05a8dfc527a03bea6e73aa065d336ff2f
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: bd933d5284859f892b55f5d7e266a56ab9f7c47f9a257fa8adb2439ebb558cc722eb367b544846dee46728829984573c768660980624f1ab53f5f0bda3092da3
|
7
|
-
data.tar.gz: 0b8ce5598eb55c8112b5af8afaa64316886c9d3c3ec853a58f23d84048388d52f0c8e1765ce1c339bce8235e4993047f174e16eaf3299e3601a6396576e379d0
|