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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cce2b66809561a8263457c7c6503ee20082cf3c6
4
- data.tar.gz: 09ea1e4c1adecf980eaac65ec9ba3218865115af
3
+ metadata.gz: 4958708078c3bdafd4b73433ae7cf04363e4d111
4
+ data.tar.gz: a6d3a9e0d81a52d94034f1e339cd4484b20e8170
5
5
  SHA512:
6
- metadata.gz: ddec5ae4d75ca0d853032c0a0af725413fca2340d60b0f0cb6adadfb3f49c2e40a8394a903f65b30469f2a4f9c93132f0e3c62246a2a039963878ebc6cae97c3
7
- data.tar.gz: c02b98608dc1e3b1a5f629001ec9bf30706e2e8e81bae4c27dca43db7ebb055ff92b9867459a1e34b2b605369e75838b95b3eccb480f9d0b307ea015b972ea8f
6
+ metadata.gz: 970c1e7fb93c33bd235a820aac6c063e173a494cb3dbe365eae8f55f41a74f9ecc1e87cf8b3dfb91b7d9acb35892f928b0b45aad1fc191c170b187c780a6d1d3
7
+ data.tar.gz: 70f7749f42cf047ae7db2ccfee7632e472699b5619ca37363fa8c838f5ffaaf81aea99510459bd65e5cde32ea455d3afcf96738606bcb51500429981559317d7
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module ReekVersion
3
- VERSION = '0.4.2'
3
+ VERSION = '0.4.3'
4
4
  end
5
5
  end
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
- .select { |patch| ruby_file?(patch.new_file_full_path) }
11
- files = patches_with_additions.map { |patch| patch.new_file_full_path.to_s }
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
- examiner = ::Reek::Core::Examiner.new(files)
15
- messages_for(patches_with_additions, examiner.smells).compact
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.2
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-05-17 00:00:00.000000000 Z
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: 2.2.1
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: 2.2.1
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: