pronto-reek 0.7.0 → 0.7.1

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: 369c51b4617ba2e0cda38ce7ba461ef1f0149d75
4
- data.tar.gz: c7c2d33965f73aa275862572cb5dcb5541c92bfd
3
+ metadata.gz: ed8d5be1f053ea00dd3e19d03f620f075e4e0f28
4
+ data.tar.gz: a57344adb5cd977bc81f669a93100bc67ef019ae
5
5
  SHA512:
6
- metadata.gz: 7cfb10f2a70b66aafaf6d6f80420391bad3e968ab7386ccced8d35872a434c159cbb2f2bd7f697f6381c31692f6e29e12f50972129b63b0253f9e28c5ebf25f9
7
- data.tar.gz: df73ce31e78cff9581d123d87d74a5f87fc5b01965ca50de969fe408d6fd226c7b587c26a17f1a2c6adb810ba71f43cb314d08f284653e9f79e06955888d0b48
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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module ReekVersion
3
- VERSION = '0.7.0'.freeze
3
+ VERSION = '0.7.1'.freeze
4
4
  end
5
5
  end
@@ -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 = '>= 1.9.3'
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.0
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-08-07 00:00:00.000000000 Z
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: 1.9.3
108
+ version: 2.0.0
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - ">="