reek 5.0.0 → 5.0.1

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: dcc26f0cc3bb682d6af4ccd125c9968049fa7659
4
- data.tar.gz: 3f07f95ea9d5dc2d9a3228d9720aa991ac1f5232
3
+ metadata.gz: 8bc0d57d180b927803a9c3d40fdd8f111f21fb44
4
+ data.tar.gz: 22de071a46f6e5e8e3f5194ea7bfb4a998f14071
5
5
  SHA512:
6
- metadata.gz: caeb105aa52968eb387304da206083cf07394d1f378c01a6aabf040e2aa264d0016491e69dba31910fa64982cdc8bf9902b036b63639279422c93ad934a91725
7
- data.tar.gz: 8af65a286c9207f04770b530865755aeeca35b4162d3db66c987b0e6d5c02438faeeee3251bef91ef5e91e4b75235ec2ae23f805a07bfc64d448e7e5066610d6
6
+ metadata.gz: 2da8afdcc3cb84b35e14a9d9fa0fa0bc069be3512031a4e5fd3114b323b22e39f504afe5d3d115d2370718ce393d551d9c325cce855715a5dfe461dc17f566f6
7
+ data.tar.gz: 9e8d8e35f4744b81909314da5188fd8a30077cfadd2aa3f14c866df9260d1703bc524212d9a01768ad69371c119a8ead187bd63505cb342df28e7ff7cb5858cc
@@ -1,5 +1,11 @@
1
1
  # Change log
2
2
 
3
+ ## Unreleased
4
+
5
+ ## 5.0.1 (2018-07-03)
6
+
7
+ * (troessner) Fix uninitialized constant error
8
+
3
9
  ## 5.0.0 (2018-06-18)
4
10
 
5
11
  *Breaking changes:*
@@ -59,7 +59,7 @@ module Reek
59
59
  begin
60
60
  configuration = YAML.load_file(path) || {}
61
61
  rescue StandardError => error
62
- raise Errors::ConfigFileException, "Invalid configuration file #{path}, error is #{error}"
62
+ raise Errors::ConfigFileError, "Invalid configuration file #{path}, error is #{error}"
63
63
  end
64
64
 
65
65
  SchemaValidator.new(configuration).validate
@@ -8,6 +8,6 @@ module Reek
8
8
  # @public
9
9
  module Version
10
10
  # @public
11
- STRING = '5.0.0'
11
+ STRING = '5.0.1'
12
12
  end
13
13
  end
@@ -110,6 +110,14 @@ RSpec.describe Reek::Configuration::ConfigurationFileFinder do
110
110
  expect(configuration).to eq(sample_configuration_loaded)
111
111
  end
112
112
 
113
+ it 'raises an error if it can not find the given file' do
114
+ Dir.mktmpdir do |tempdir|
115
+ path = Pathname.new(tempdir).join('does_not_exist.reek')
116
+ expect { described_class.load_from_file(path) }.
117
+ to raise_error(Reek::Errors::ConfigFileError, /Invalid configuration file/)
118
+ end
119
+ end
120
+
113
121
  context 'with exclude, accept and reject settings' do
114
122
  context 'when configuring top level detectors' do
115
123
  let(:configuration) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reek
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Rutherford
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-06-29 00:00:00.000000000 Z
14
+ date: 2018-07-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: codeclimate-engine-rb
@@ -93,7 +93,6 @@ extra_rdoc_files:
93
93
  - CHANGELOG.md
94
94
  - License.txt
95
95
  files:
96
- - ".codeclimate.yml"
97
96
  - ".dockerignore"
98
97
  - ".gitignore"
99
98
  - ".reek.yml"
@@ -476,7 +475,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
476
475
  version: '0'
477
476
  requirements: []
478
477
  rubyforge_project:
479
- rubygems_version: 2.5.2.2
478
+ rubygems_version: 2.5.1
480
479
  signing_key:
481
480
  specification_version: 4
482
481
  summary: Code smell detector for Ruby
@@ -1,21 +0,0 @@
1
- version: "2"
2
- plugins:
3
- rubocop:
4
- enabled: true
5
- reek:
6
- enabled: true
7
- duplication:
8
- enabled: true
9
- config:
10
- languages:
11
- ruby:
12
- mass_threshold: 35
13
- exclude_patterns:
14
- - coverage/
15
- - docs/
16
- - features/
17
- - logo/
18
- - pkg/
19
- - samples/
20
- - spec/
21
- - tmp/