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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0cb49e8b58f821000455e1d1941e25e9af1d7e3b
4
- data.tar.gz: c253a2d0358384d2f0de5681abafa92d78d22755
3
+ metadata.gz: 2c496cf899150455bdd1042e85bf1f9b31a29b39
4
+ data.tar.gz: da1c3ec1d9c4c4e0ab39bad4663d6551e17e80e5
5
5
  SHA512:
6
- metadata.gz: 86e4cda27dac0f8728976b0fedccef6924c68fb15886c8f0f123665e0e76524996a928d363a2655ef8207cd15d1a4d1f65e6ab75df78e43b05302f3470692c16
7
- data.tar.gz: 8cfa8c70876c56740a529a3abfc778b0c4dc4424c0d5c91133bb1beedd1e97842998f6e6bf8aba82ede6f0e4f0579672237dacb4dec5b17fb1dd477d5db86856
6
+ metadata.gz: 3dff3b9c771a20f48ef8d287cc2739e8de774775c08cd628c88de58924a976ff82037d2ca153ccefd5db295c39dbea45df3edc0a9254a8a5edf08d29fd6d96e5
7
+ data.tar.gz: 172615f81f2fcc94f9abfb7640f9ef30b608dcd4fad79660862f1a8352aff847992171c3543fd44798bf4e23b84b338e4584d465f42d523151f4200ab28dee17
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Preek
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
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.1
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: 2013-09-07 00:00:00.000000000 Z
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.2
168
+ rubygems_version: 2.0.3
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: It might reek but its pretty