pronto-rubocop 0.2.3 → 0.2.4
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 -3
- data/lib/pronto/rubocop/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff077936fda94c69ae6e4db24df26119151419d0
|
4
|
+
data.tar.gz: cc35a329b3799388cdf39724dceee8a0fcb36436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bbf9d80d622045cfcf2da32db4cadc087d35d1079a87ae53f7e26fd1ca26fd3a9a8c93a0ceb4b67e3ac9efc078d128a6e2ef82c67c1134c7bef918023dd0f63
|
7
|
+
data.tar.gz: 95171b6babd6edfffe0c8e3cbc8b6131757d03834974ce2c56926bc45730bde98bb79bc2994dee3e70d506ed7f288775b97b1a8022a868050aca54134ad609b2
|
data/lib/pronto/rubocop.rb
CHANGED
@@ -4,8 +4,8 @@ require 'rubocop'
|
|
4
4
|
module Pronto
|
5
5
|
class Rubocop < Runner
|
6
6
|
def initialize
|
7
|
-
@inspector = ::
|
8
|
-
@config_store = ::
|
7
|
+
@inspector = ::RuboCop::FileInspector.new({})
|
8
|
+
@config_store = ::RuboCop::ConfigStore.new
|
9
9
|
end
|
10
10
|
|
11
11
|
def run(patches, _)
|
@@ -18,7 +18,7 @@ module Pronto
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def inspect(patch)
|
21
|
-
processed_source = ::
|
21
|
+
processed_source = ::RuboCop::SourceParser.parse_file(patch.new_file_full_path)
|
22
22
|
offences = @inspector.send(:inspect_file, processed_source, @config_store).first
|
23
23
|
|
24
24
|
offences.map do |offence|
|
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.4
|
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-06-16 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.23.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.23.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pronto
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,10 +72,10 @@ executables: []
|
|
72
72
|
extensions: []
|
73
73
|
extra_rdoc_files: []
|
74
74
|
files:
|
75
|
-
- lib/pronto/rubocop/version.rb
|
76
|
-
- lib/pronto/rubocop.rb
|
77
75
|
- LICENSE
|
78
76
|
- README.md
|
77
|
+
- lib/pronto/rubocop.rb
|
78
|
+
- lib/pronto/rubocop/version.rb
|
79
79
|
homepage: http://github.org/mmozuras/pronto-rubocop
|
80
80
|
licenses:
|
81
81
|
- MIT
|
@@ -96,9 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: 1.3.6
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.2.2
|
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:
|