yamllint 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +5 -1
- data/lib/yamllint/cli.rb +6 -3
- data/lib/yamllint/linter.rb +1 -1
- data/lib/yamllint/version.rb +1 -1
- data/spec/data/valid.yaml +1 -0
- data/spec/data/valid2.yaml +7 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45b07126038edcee8ce716daddcb79a5ea7336f4
|
4
|
+
data.tar.gz: efa5a3611aed9f1efa45ebbabdb304f880e416b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5b2c629227250f39bfd15f5adc63dbe333dcefbecff06e064f76b8588386bd58bf72244819f378d4f11ef99a4f19aa274d2767359a7300efa2e7bb34cb7833a
|
7
|
+
data.tar.gz: f9e6a259111e92243637d8e3974b98963ecaeb65bb11d0f743237a23598072610b7fa9ff5d6a8acb55bb0adeab28674846dba0ec76d11c649bbcbba3833b67f5
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,11 @@ YamlLint gem CHANGELOG
|
|
2
2
|
======================
|
3
3
|
This file is used to list changes made in each version of the YamlLint gem.
|
4
4
|
|
5
|
-
v0.0.
|
5
|
+
v0.0.5 (2015-05-05)
|
6
|
+
-------------------
|
7
|
+
- **[ISSUE #7](https://github.com/shortdudey123/yamllint/issues/7)** - Detects dupe keys on arrays of hashes
|
8
|
+
|
9
|
+
v0.0.4 (2015-02-17)
|
6
10
|
-------------------
|
7
11
|
- Clean up code by extracting out complex_type_start
|
8
12
|
- Extract out valid extensions to an array
|
data/lib/yamllint/cli.rb
CHANGED
@@ -11,8 +11,11 @@ module YamlLint
|
|
11
11
|
# setup CLI options
|
12
12
|
def initialize(argv, stdin = STDIN, stdout = STDOUT, stderr = STDERR,
|
13
13
|
kernel = Kernel)
|
14
|
-
@argv
|
15
|
-
|
14
|
+
@argv = argv
|
15
|
+
@stdin = stdin
|
16
|
+
@stdout = stdout
|
17
|
+
@stderr = stderr
|
18
|
+
@kernel = kernel
|
16
19
|
end
|
17
20
|
|
18
21
|
# Run the CLI command
|
@@ -45,7 +48,7 @@ module YamlLint
|
|
45
48
|
ext = opts.extensions.split(',') unless opts.extensions.nil?
|
46
49
|
linter = YamlLint::Linter.new(disable_ext_check: opts.disable_ext_check,
|
47
50
|
extensions: ext
|
48
|
-
|
51
|
+
)
|
49
52
|
begin
|
50
53
|
puts "Checking #{files_to_check.flatten.length} files"
|
51
54
|
linter.check_all(files_to_check)
|
data/lib/yamllint/linter.rb
CHANGED
data/lib/yamllint/version.rb
CHANGED
data/spec/data/valid.yaml
CHANGED
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.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Ridder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|
@@ -156,6 +156,7 @@ files:
|
|
156
156
|
- spec/data/overlapping_keys_deep.yaml
|
157
157
|
- spec/data/spaces.yaml
|
158
158
|
- spec/data/valid.yaml
|
159
|
+
- spec/data/valid2.yaml
|
159
160
|
- spec/data/valid_complex.yaml
|
160
161
|
- spec/data/valid_very_complex.yaml
|
161
162
|
- spec/data/wrong_extension.txt
|
@@ -195,6 +196,7 @@ test_files:
|
|
195
196
|
- spec/data/overlapping_keys_deep.yaml
|
196
197
|
- spec/data/spaces.yaml
|
197
198
|
- spec/data/valid.yaml
|
199
|
+
- spec/data/valid2.yaml
|
198
200
|
- spec/data/valid_complex.yaml
|
199
201
|
- spec/data/valid_very_complex.yaml
|
200
202
|
- spec/data/wrong_extension.txt
|