policial 0.0.2 → 0.0.3

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: 0bd45df38f9f7a34cf66c40c590f6303f5da2ce9
4
- data.tar.gz: 0b8b8e18e4d78f0af05fd3b7c9397e97bfb256fe
3
+ metadata.gz: 6b72a2344b1709d98d7dd121a15a8c8eab456961
4
+ data.tar.gz: 0bccb0d25295dfabd7d0636eba66c4a6ff4f02d8
5
5
  SHA512:
6
- metadata.gz: d0fba5b32b0d423d8a087fd94748dc01ed583f0058dd23d76432521f6ad4c72f36e9ecef1a894f0af660800838fbf8f0a027b0bfe83410905b0b341359fa763b
7
- data.tar.gz: d88ae791f713457b4bbc61a0b2ea8d99fc8f8f8872aeae4972d5ff8c9cc5f71392bc18519175d675f9b19ea9bb8ddfd25b167ecab62f50c05cb11af53dd717a9
6
+ metadata.gz: 2557808b3c2decb2b4a189901a4a5df6b3bede233d342134059ef02cf976621f6bbc636230a51cb37918ae800868bfb53ff9ce51495a909f5ef7a1e26d4868f1
7
+ data.tar.gz: 39b7666177beeee05ecee1af8268c78b8c8d75f250672bb4d8ba9d5ccd6efe85f5174dde8595ff0aef5129459f7596a428f8809269cc10c0c3d3ba3f331a6441
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/policial.svg)](http://badge.fury.io/rb/policial)
4
4
  [![Build Status](https://travis-ci.org/volmer/policial.svg)](https://travis-ci.org/volmer/policial)
5
+ [![Dependency Status](https://gemnasium.com/volmer/policial.svg)](https://gemnasium.com/volmer/policial)
5
6
 
6
7
  *Policial* is a gem that investigates pull requests and accuses style guide
7
8
  violations. It is based on thoughtbot's
@@ -12,7 +12,7 @@ module Policial
12
12
  comment_body(violation),
13
13
  @pull_request.head_commit.sha,
14
14
  violation.filename,
15
- violation.line_number
15
+ violation.patch_position
16
16
  )
17
17
  end
18
18
 
@@ -15,7 +15,7 @@ module Policial
15
15
  end
16
16
 
17
17
  def accuse
18
- return if @violations.blank?
18
+ return if @violations.nil?
19
19
 
20
20
  commenter = Commenter.new(@pull_request)
21
21
 
@@ -1,4 +1,4 @@
1
1
  # Public: The gem version.
2
2
  module Policial
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: policial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volmer Soares
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-24 00:00:00.000000000 Z
11
+ date: 2015-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit