pronto-rubocop 0.2.5 → 0.2.6

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: ffcd61fbeb4a83e97be21ea78b599ae0ddb00b66
4
- data.tar.gz: dbee3812fef662d62855e9ffb110f2d53b621435
3
+ metadata.gz: 96c34b668d491090df45230e3193b617f849f5b9
4
+ data.tar.gz: 357345a7c2ac065a022ed9a41ff4b44c01516625
5
5
  SHA512:
6
- metadata.gz: f6249c3238c4963f1b8091066427fc2f2bcfe5b2dc552b7904fa6efd70b39a53965d22da6a131e62434fc4365e60a767ed72c7df9111edf8e2fc40266c14e390
7
- data.tar.gz: 0f58342834069357c924687f38a4845fff4c4cafbceb5746c2bac8dbdc8431c335c43e69a587000845144cd6f51e6e420be01dfe41cb68fadfc6258ae9b642a6
6
+ metadata.gz: 342438c74025212852fe8ef7f28b6eeb2a429990b8b6794b986f7bbffbb3f10b668bf0782445afbc8c91fb871e92fbf89780e8c233bff0d191006e27a2beeac6
7
+ data.tar.gz: ab02d9eaca724b72781031b770cc4e083a44cc3363b88d6cdc396265702626947edaef7f3a1f710e5c1aed099ca67a0b1c86bb6ba8fa5d83f0956810e0f6b6ed
@@ -4,8 +4,8 @@ require 'rubocop'
4
4
  module Pronto
5
5
  class Rubocop < Runner
6
6
  def initialize
7
- @inspector = ::RuboCop::FileInspector.new({})
8
7
  @config_store = ::RuboCop::ConfigStore.new
8
+ @inspector = ::RuboCop::Runner.new({}, @config_store)
9
9
  end
10
10
 
11
11
  def run(patches, _)
@@ -21,8 +21,8 @@ module Pronto
21
21
  end
22
22
 
23
23
  def inspect(patch)
24
- processed_source = ::RuboCop::SourceParser.parse_file(patch.new_file_full_path)
25
- offences = @inspector.send(:inspect_file, processed_source, @config_store).first
24
+ processed_source = ::RuboCop::ProcessedSource.from_file(patch.new_file_full_path)
25
+ offences = @inspector.send(:inspect_file, processed_source).first
26
26
 
27
27
  offences.map do |offence|
28
28
  patch.added_lines.select { |line| line.new_lineno == offence.line }
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module RubocopVersion
3
- VERSION = '0.2.5'
3
+ VERSION = '0.2.6'
4
4
  end
5
5
  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.5
4
+ version: 0.2.6
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-06-24 00:00:00.000000000 Z
11
+ date: 2014-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,19 +16,22 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.23.0
19
+ version: 0.24.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.23.0
26
+ version: 0.24.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pronto
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '0.2'
34
+ - - '>='
32
35
  - !ruby/object:Gem::Version
33
36
  version: 0.2.0
34
37
  type: :runtime
@@ -36,6 +39,9 @@ dependencies:
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
41
  - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '0.2'
44
+ - - '>='
39
45
  - !ruby/object:Gem::Version
40
46
  version: 0.2.0
41
47
  - !ruby/object:Gem::Dependency
@@ -43,6 +49,9 @@ dependencies:
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '10.1'
54
+ - - '>='
46
55
  - !ruby/object:Gem::Version
47
56
  version: 10.1.0
48
57
  type: :development
@@ -50,6 +59,9 @@ dependencies:
50
59
  version_requirements: !ruby/object:Gem::Requirement
51
60
  requirements:
52
61
  - - ~>
62
+ - !ruby/object:Gem::Version
63
+ version: '10.1'
64
+ - - '>='
53
65
  - !ruby/object:Gem::Version
54
66
  version: 10.1.0
55
67
  - !ruby/object:Gem::Dependency
@@ -57,6 +69,9 @@ dependencies:
57
69
  requirement: !ruby/object:Gem::Requirement
58
70
  requirements:
59
71
  - - ~>
72
+ - !ruby/object:Gem::Version
73
+ version: '2.14'
74
+ - - '>='
60
75
  - !ruby/object:Gem::Version
61
76
  version: 2.14.0
62
77
  type: :development
@@ -64,6 +79,9 @@ dependencies:
64
79
  version_requirements: !ruby/object:Gem::Requirement
65
80
  requirements:
66
81
  - - ~>
82
+ - !ruby/object:Gem::Version
83
+ version: '2.14'
84
+ - - '>='
67
85
  - !ruby/object:Gem::Version
68
86
  version: 2.14.0
69
87
  description: