yamllint 0.0.8 → 0.0.9

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: a71045dc46ad780c82b3280431ff55dba9d8acc6
4
- data.tar.gz: da5488e31c0ff7c6ee90c61d425051015d6894cc
3
+ metadata.gz: aa99ae67fae5cb65b02b1053b258d5dd81e7a995
4
+ data.tar.gz: f19e3a55b054e2a0b8c79370de83ef61812fe637
5
5
  SHA512:
6
- metadata.gz: 7093d7d5811a46704eb8b60f5dccb838416bc47cad085decc6a700947281e87584d76d3caa04b2786cbe99c3b816ffe3779cb756525cd7bca18c1b36719b6ad0
7
- data.tar.gz: 99008df89029a1bbcbd7bfebc4adb9496bb4b4ed9807ed6ee7c0e67b385a4eb7f759233f20654734120084e04110e2a432755e18b5a9350d5c3b9258e3f08344
6
+ metadata.gz: ccd899d9c3a3e4c51bdbd02069e96fd57ab4d3c50b8d1ee2a98699a08f12f78c07e3a352c3a17b6861c004e74c446c84e53c18427a0d0f51d4045a0bcad73dcb
7
+ data.tar.gz: 0f7121a93288c34fd8f5293ac4496ca5b46f70379e7521fa3d355d7f1c3579855ecc31459206ed0cbe7bc7acb98bb46d2c8446e8db240916accbb80b1d518daa
@@ -1,5 +1,12 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
1
  AllCops:
4
2
  DisplayCopNames: true
5
3
  TargetRubyVersion: 2.2
4
+
5
+ Metrics/AbcSize:
6
+ Max: 36
7
+
8
+ Metrics/CyclomaticComplexity:
9
+ Max: 9
10
+
11
+ Metrics/MethodLength:
12
+ Max: 26
@@ -5,6 +5,12 @@ This file is used to list changes made in each version of the YamlLint gem.
5
5
  Unreleased
6
6
  -------------------
7
7
 
8
+ v0.0.9 (2016-09-16)
9
+ -------------------
10
+ - **[PR #24](https://github.com/shortdudey123/yamllint/pull/24)** - Update RSpec raise_error to be more specific
11
+ - **[PR #25](https://github.com/shortdudey123/yamllint/pull/25)** - Fix bug with files_to_exclude puts in Rake Task
12
+ - **[PR #26](https://github.com/shortdudey123/yamllint/pull/26)** - Clean up Rubocop cop settings
13
+
8
14
  v0.0.8 (2016-07-10)
9
15
  -------------------
10
16
  - **[PR #13](https://github.com/shortdudey123/yamllint/pull/13)** - Update Ruby syntax per Rubocop v0.37.0
@@ -266,7 +266,7 @@ module YamlLint
266
266
  errors_array << err_meg
267
267
  end
268
268
 
269
- !!overlap_detector.overlapping_keys.empty?
269
+ overlap_detector.overlapping_keys.empty?
270
270
  end
271
271
  end
272
272
  end
@@ -22,6 +22,7 @@ module YamlLint
22
22
  @disable_ext_check = false
23
23
  @extensions = nil
24
24
  @debug = false
25
+ @exclude_paths = []
25
26
 
26
27
  yield self if block_given?
27
28
 
@@ -2,5 +2,5 @@
2
2
  #
3
3
  # YamlLint checks YAML files for correct syntax
4
4
  module YamlLint
5
- VERSION = '0.0.8'.freeze
5
+ VERSION = '0.0.9'.freeze
6
6
  end
@@ -9,7 +9,9 @@ describe 'YamlLint::Linter' do
9
9
  end
10
10
 
11
11
  it 'should throw an exception if given a bogus path' do
12
- expect { linter.check('/does/not/exist') }.to raise_error
12
+ expect { linter.check('/does/not/exist') }.to raise_error(
13
+ YamlLint::FileNotFoundError
14
+ )
13
15
  end
14
16
 
15
17
  it 'should be happy with a valid YAML file' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamllint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Ridder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-11 00:00:00.000000000 Z
11
+ date: 2016-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop
@@ -133,7 +133,6 @@ files:
133
133
  - ".gitignore"
134
134
  - ".rspec"
135
135
  - ".rubocop.yml"
136
- - ".rubocop_todo.yml"
137
136
  - ".travis.yml"
138
137
  - CHANGELOG.md
139
138
  - Gemfile
@@ -1,28 +0,0 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2015-01-15 14:42:13 -0800 using RuboCop version 0.28.0.
3
- # The point is for the user to remove these configuration records
4
- # one by one as the offenses are removed from the code base.
5
- # Note that changes in the inspected code, or installation of new
6
- # versions of RuboCop, may require this file to be generated again.
7
-
8
- # Offense count: 1
9
- Metrics/AbcSize:
10
- Max: 39
11
-
12
- # Offense count: 1
13
- # Configuration parameters: CountComments.
14
- Metrics/ClassLength:
15
- Max: 104
16
-
17
- # Offense count: 1
18
- Metrics/CyclomaticComplexity:
19
- Max: 9
20
-
21
- # Offense count: 3
22
- # Configuration parameters: CountComments.
23
- Metrics/MethodLength:
24
- Max: 28
25
-
26
- # Offense count: 1
27
- Style/DoubleNegation:
28
- Enabled: false