pronto-rubocop 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pronto/rubocop.rb +3 -2
- data/lib/pronto/rubocop/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27498b8ad74d2589e9d6582cd2e65604d5a68af0
|
4
|
+
data.tar.gz: 07b7f2081fdf2ec63467861137cdac779d3258e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb431b3049ed7508182e08aaa1707771ce3f81d730d3606bd4bdfee8e2abc8f72e688758def1be3ca4d2728d5959e7f9414695dd3222466aa1b17e0c624ede71
|
7
|
+
data.tar.gz: 7584ae60f77f65b28474cc240375827325530993841742134ffc604eae82b1f3b921b30760fe096d06f3e2f834ecd5cd4576de00198d9af52e124266da04d096
|
data/lib/pronto/rubocop.rb
CHANGED
@@ -4,7 +4,8 @@ require 'rubocop'
|
|
4
4
|
module Pronto
|
5
5
|
class Rubocop < Runner
|
6
6
|
def initialize
|
7
|
-
@
|
7
|
+
@inspector = ::Rubocop::FileInspector.new({})
|
8
|
+
@config_store = ::Rubocop::ConfigStore.new
|
8
9
|
end
|
9
10
|
|
10
11
|
def run(patches, _)
|
@@ -17,7 +18,7 @@ module Pronto
|
|
17
18
|
end
|
18
19
|
|
19
20
|
def inspect(patch)
|
20
|
-
offences = @
|
21
|
+
offences = @inspector.send(:inspect_file, patch.new_file_full_path, @config_store)
|
21
22
|
|
22
23
|
offences.map do |offence|
|
23
24
|
patch.added_lines.select { |line| line.new_lineno == offence.line }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindaugas Mozūras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.16.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.16.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pronto
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|