pronto-rubocop 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/pronto/rubocop.rb +3 -2
- data/lib/pronto/rubocop/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9534e732aa86f0d4a68f6fe068677c931513f1d1
|
4
|
+
data.tar.gz: f4948d7a0bd0e630759276dcb27842da65a1d8ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a8223a12e6064ca15032cd99652f190aa8cc3c4495618245b246a08e8b9e6bef22b3e0cf78ef63fc7da6738f512c93cda127bbd39b2e8f6897e0cdce7c0a30c
|
7
|
+
data.tar.gz: 8de1e54a4fd8b52070183fe47be678ba0bbc06d2e1deaa7609d5a58c7d5ec935f4785004d0c91011de992dd01f0f52b327aaf5a1da38585ab1ef7abcd65ca314
|
data/LICENSE
CHANGED
data/lib/pronto/rubocop.rb
CHANGED
@@ -18,7 +18,8 @@ module Pronto
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def inspect(patch)
|
21
|
-
|
21
|
+
processed_source = ::Rubocop::SourceParser.parse_file(patch.new_file_full_path)
|
22
|
+
offences = @inspector.send(:inspect_file, processed_source, @config_store).first
|
22
23
|
|
23
24
|
offences.map do |offence|
|
24
25
|
patch.added_lines.select { |line| line.new_lineno == offence.line }
|
@@ -28,7 +29,7 @@ module Pronto
|
|
28
29
|
|
29
30
|
def new_message(offence, line)
|
30
31
|
path = line.patch.delta.new_file[:path]
|
31
|
-
level = level(offence.severity)
|
32
|
+
level = level(offence.severity.name)
|
32
33
|
|
33
34
|
Message.new(path, line, level, offence.message)
|
34
35
|
end
|
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.3
|
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: 2014-
|
11
|
+
date: 2014-04-22 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.20.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.20.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pronto
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,8 +96,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: 1.3.6
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.0.
|
99
|
+
rubygems_version: 2.0.7
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: Pronto runner for Rubocop, ruby code analyzer
|
103
103
|
test_files: []
|
104
|
+
has_rdoc:
|