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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae94dc3781c210160d5a36ddf4cd43cf0b8e947b
4
- data.tar.gz: 4839ef892b6b0bab25e695c50bf49db96b619cc1
3
+ metadata.gz: 45b07126038edcee8ce716daddcb79a5ea7336f4
4
+ data.tar.gz: efa5a3611aed9f1efa45ebbabdb304f880e416b6
5
5
  SHA512:
6
- metadata.gz: 133c438fb631b7dae2ba2d3fdce58146969815ea5dd96f04fb851a05142a7f7e839f2fe309403d9ea0219bb1797ff9b7984a46b8bdfbf6a1cc903ee8c7c59e46
7
- data.tar.gz: d9f60cc006b7474918156553868d32d166cfe00bdacc80a7e3ebc08489499084bc0f4bef3e73b839c94c9f108ab72fdf49a57555dc1731f5faf244105b3e4656
6
+ metadata.gz: b5b2c629227250f39bfd15f5adc63dbe333dcefbecff06e064f76b8588386bd58bf72244819f378d4f11ef99a4f19aa274d2767359a7300efa2e7bb34cb7833a
7
+ data.tar.gz: f9e6a259111e92243637d8e3974b98963ecaeb65bb11d0f743237a23598072610b7fa9ff5d6a8acb55bb0adeab28674846dba0ec76d11c649bbcbba3833b67f5
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 1.9.3
5
4
  - 2.0.0
6
5
  - 2.1.5
7
6
  - 2.2.0
@@ -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.4 (????-??-??)
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
@@ -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, @stdin, @stdout, @stderr, @kernel = argv, stdin, stdout,
15
- stderr, kernel
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)
@@ -133,7 +133,7 @@ module YamlLint
133
133
  def initialize
134
134
  @seen_keys = Set.new
135
135
  @key_components = []
136
- @last_key = []
136
+ @last_key = ['']
137
137
  @overlapping_keys = Set.new
138
138
  @complex_type = []
139
139
  @array_positions = []
@@ -2,5 +2,5 @@
2
2
  #
3
3
  # YamlLint checks YAML files for correct syntax
4
4
  module YamlLint
5
- VERSION = '0.0.4'
5
+ VERSION = '0.0.5'
6
6
  end
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  foo: bar
3
3
  my_array:
4
+ - 1
4
5
  - 1
5
6
  - 2
6
7
  - 3
@@ -0,0 +1,7 @@
1
+ ---
2
+ - foo: 1
3
+ bar: 2
4
+
5
+ - foo: 1
6
+ bar: 2
7
+
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
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-02-18 00:00:00.000000000 Z
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