pronto-reek 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/pronto/reek.rb +2 -1
- data/lib/pronto/reek/version.rb +1 -1
- data/pronto-reek.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed8d5be1f053ea00dd3e19d03f620f075e4e0f28
|
4
|
+
data.tar.gz: a57344adb5cd977bc81f669a93100bc67ef019ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaad1518cce91fbedfcea24c269b1b56205c58a257e867eaaf7e6788d17a82481d84f97a264ad1de6bac0b607aa5b634a5301a1eabb25a30653021e3dc2a3d30
|
7
|
+
data.tar.gz: db8d893140b77e45303a9e38b47b487343fad7654b2be4bb8584061260de445825fec594f6b845ea5c7b748ea61547bf346f08a170bdb3708c2a50b6a4ddf2db
|
data/README.md
CHANGED
@@ -6,3 +6,7 @@
|
|
6
6
|
[![Dependency Status](https://gemnasium.com/mmozuras/pronto-reek.png)](https://gemnasium.com/mmozuras/pronto-reek)
|
7
7
|
|
8
8
|
Pronto runner for [Reek](https://github.com/troessner/reek), code smell detector for Ruby. [What is Pronto?](https://github.com/mmozuras/pronto)
|
9
|
+
|
10
|
+
## Configuration
|
11
|
+
|
12
|
+
Configuring Reek via [config.reek](https://github.com/troessner/reek#configuration-file), or any file ending with .reek, will work just fine with pronto-reek.
|
data/lib/pronto/reek.rb
CHANGED
@@ -5,9 +5,10 @@ module Pronto
|
|
5
5
|
class Reek < Runner
|
6
6
|
def run
|
7
7
|
files = ruby_patches.map(&:new_file_full_path)
|
8
|
+
configuration = ::Reek::Configuration::AppConfiguration.from_path
|
8
9
|
|
9
10
|
smells = files.flat_map do |file|
|
10
|
-
::Reek::Examiner.new(file).smells
|
11
|
+
::Reek::Examiner.new(file, configuration: configuration).smells
|
11
12
|
end
|
12
13
|
messages_for(smells).compact
|
13
14
|
end
|
data/lib/pronto/reek/version.rb
CHANGED
data/pronto-reek.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.summary = 'Pronto runner for Reek, code smell detector for Ruby'
|
15
15
|
|
16
16
|
s.licenses = ['MIT']
|
17
|
-
s.required_ruby_version = '>=
|
17
|
+
s.required_ruby_version = '>= 2.0.0'
|
18
18
|
s.rubygems_version = '1.8.23'
|
19
19
|
|
20
20
|
s.files = `git ls-files`.split($RS).reject do |file|
|
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.7.
|
4
|
+
version: 0.7.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: 2016-
|
11
|
+
date: 2016-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
105
|
requirements:
|
106
106
|
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
108
|
+
version: 2.0.0
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
111
|
- - ">="
|