preek 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/preek/cli.rb +9 -0
- data/lib/preek/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c496cf899150455bdd1042e85bf1f9b31a29b39
|
4
|
+
data.tar.gz: da1c3ec1d9c4c4e0ab39bad4663d6551e17e80e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dff3b9c771a20f48ef8d287cc2739e8de774775c08cd628c88de58924a976ff82037d2ca153ccefd5db295c39dbea45df3edc0a9254a8a5edf08d29fd6d96e5
|
7
|
+
data.tar.gz: 172615f81f2fcc94f9abfb7640f9ef30b608dcd4fad79660862f1a8352aff847992171c3543fd44798bf4e23b84b338e4584d465f42d523151f4200ab28dee17
|
data/lib/preek/cli.rb
CHANGED
@@ -36,6 +36,15 @@ module Preek
|
|
36
36
|
Examiner.new(files, excludes, reporter: reporter, output: output).perform
|
37
37
|
end
|
38
38
|
|
39
|
+
desc 'git', 'Run Preek on git changes'
|
40
|
+
def git
|
41
|
+
files = `git status -s`
|
42
|
+
if $?.exitstatus == 0 && !files.empty?
|
43
|
+
args = files.scan(/[ M?]+ (.*)/)
|
44
|
+
smell *args.flatten
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
39
48
|
private
|
40
49
|
def reporter
|
41
50
|
options[:verbose] ? VerboseReport : QuietReport
|
data/lib/preek/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: preek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Neverland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.0.
|
168
|
+
rubygems_version: 2.0.3
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: It might reek but its pretty
|