pronto-reek 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pronto/reek/version.rb +1 -1
- data/lib/pronto/reek.rb +6 -4
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4958708078c3bdafd4b73433ae7cf04363e4d111
|
4
|
+
data.tar.gz: a6d3a9e0d81a52d94034f1e339cd4484b20e8170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 970c1e7fb93c33bd235a820aac6c063e173a494cb3dbe365eae8f55f41a74f9ecc1e87cf8b3dfb91b7d9acb35892f928b0b45aad1fc191c170b187c780a6d1d3
|
7
|
+
data.tar.gz: 70f7749f42cf047ae7db2ccfee7632e472699b5619ca37363fa8c838f5ffaaf81aea99510459bd65e5cde32ea455d3afcf96738606bcb51500429981559317d7
|
data/lib/pronto/reek/version.rb
CHANGED
data/lib/pronto/reek.rb
CHANGED
@@ -7,12 +7,14 @@ module Pronto
|
|
7
7
|
return [] unless patches
|
8
8
|
|
9
9
|
patches_with_additions = patches.select { |patch| patch.additions > 0 }
|
10
|
-
|
11
|
-
files = patches_with_additions.map
|
10
|
+
.select { |patch| ruby_file?(patch.new_file_full_path) }
|
11
|
+
files = patches_with_additions.map(&:new_file_full_path)
|
12
12
|
|
13
13
|
if files.any?
|
14
|
-
|
15
|
-
|
14
|
+
files.flat_map do |file|
|
15
|
+
examiner = ::Reek::Examiner.new(file)
|
16
|
+
messages_for(patches_with_additions, examiner.smells).compact
|
17
|
+
end
|
16
18
|
else
|
17
19
|
[]
|
18
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-reek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.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: 2015-
|
11
|
+
date: 2015-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 3.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 3.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,3 +115,4 @@ signing_key:
|
|
115
115
|
specification_version: 4
|
116
116
|
summary: Pronto runner for Reek, code smell detector for Ruby
|
117
117
|
test_files: []
|
118
|
+
has_rdoc:
|