pronto-rubocop 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 901fc56fa98a43bab00e7fcf1af3e81a087725ba
4
- data.tar.gz: ed6efee2b4235b3cef889ffe7d4a17b08c5fc87b
3
+ metadata.gz: 9534e732aa86f0d4a68f6fe068677c931513f1d1
4
+ data.tar.gz: f4948d7a0bd0e630759276dcb27842da65a1d8ef
5
5
  SHA512:
6
- metadata.gz: 1ad377caa6ab598582ddea0081e650c80ab4d176a131e4b07b49e5f03e6f0caed07ee2d6448c1679166cc85480a48310b1c23a88554f370c0350720d19678784
7
- data.tar.gz: af9728cdec6eb480901c182e2bd12422262612895b01078525ee0294bb0a83ad1723bdc27b5409517d6ec521080e522e9940d8dc49e5100bf01026533d9e0a77
6
+ metadata.gz: 8a8223a12e6064ca15032cd99652f190aa8cc3c4495618245b246a08e8b9e6bef22b3e0cf78ef63fc7da6738f512c93cda127bbd39b2e8f6897e0cdce7c0a30c
7
+ data.tar.gz: 8de1e54a4fd8b52070183fe47be678ba0bbc06d2e1deaa7609d5a58c7d5ec935f4785004d0c91011de992dd01f0f52b327aaf5a1da38585ab1ef7abcd65ca314
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2013 Mindaugas Mozūras
3
+ Copyright (c) 2014 Mindaugas Mozūras
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,7 +18,8 @@ module Pronto
18
18
  end
19
19
 
20
20
  def inspect(patch)
21
- offences = @inspector.send(:inspect_file, patch.new_file_full_path, @config_store)
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
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module RubocopVersion
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
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.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-01-31 00:00:00.000000000 Z
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.18.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.18.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.14
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: