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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 762f254589f5751cc705f3077d864f220794620e
4
- data.tar.gz: 232c0e0a96efe28550eb033cd8a6c78f518eb6de
3
+ metadata.gz: 27498b8ad74d2589e9d6582cd2e65604d5a68af0
4
+ data.tar.gz: 07b7f2081fdf2ec63467861137cdac779d3258e1
5
5
  SHA512:
6
- metadata.gz: e78c1c0f621294566ce24f619b57dc27dcad4c2896111b55a74c54b863ec6efd04ab06304e4c3bcd78ab6cf59b589aa9d0198fe10159eb8404894a96a86f5137
7
- data.tar.gz: c09bd014c9b2a218f409a787c083a4ab068828d824f3711b3c6e5241a305a4de7c49567223fcc60704bc9a1df53dc53820487ade3adb542322680f1480caf828
6
+ metadata.gz: fb431b3049ed7508182e08aaa1707771ce3f81d730d3606bd4bdfee8e2abc8f72e688758def1be3ca4d2728d5959e7f9414695dd3222466aa1b17e0c624ede71
7
+ data.tar.gz: 7584ae60f77f65b28474cc240375827325530993841742134ffc604eae82b1f3b921b30760fe096d06f3e2f834ecd5cd4576de00198d9af52e124266da04d096
@@ -4,7 +4,8 @@ require 'rubocop'
4
4
  module Pronto
5
5
  class Rubocop < Runner
6
6
  def initialize
7
- @cli = ::Rubocop::CLI.new
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 = @cli.inspect_file(patch.new_file_full_path)
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 }
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module RubocopVersion
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
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.0
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: 2013-10-20 00:00:00.000000000 Z
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.14.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.14.0
26
+ version: 0.16.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pronto
29
29
  requirement: !ruby/object:Gem::Requirement