yaml-lint 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yaml-lint.rb +2 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb29aa4e6f0026944a06a820665d65910b2be07a
4
- data.tar.gz: f3411164507107cff49cb01a6bfc23a083b0f814
3
+ metadata.gz: 03d60c3bfb68366177794f2f11cb22d260eaafa9
4
+ data.tar.gz: 831ba58adb8dd9d43bccd88ad0af246d30ce4e5f
5
5
  SHA512:
6
- metadata.gz: a77de2bfc721656a70124f97608c4b8350ea2b71a994cf5295666a0d48c2fa1716fbcce7c774f55e7692a3cc6b34b9bb46611b79f64230b78c44b9fecfc6ae67
7
- data.tar.gz: e3cbe7d5568dc196c5974b9e5b4f30213595a90fcd1e65949c8814ebeb93fff784520e7377f2b926ae4ca4137d9cb4c254d9a33ac5280d1c58d166031c66cdba
6
+ metadata.gz: b533d7288251357f03a54dbf2d9fe0d6c9a4d5808f8fa2e4df528b9623cebd9008d4517a1daf49820d425f1b8da850336aba8ebd3dae6e6fba1e9058d359d9ca
7
+ data.tar.gz: a8e98c9ad40c67e9d8eb5a819e84dda9b58ae7039c91bb951ca36a566394dfa79fbfa6aad531d9cd4b881e34c96ea9cfb67831546ce760dc6c7dff766e6d8bd0
@@ -65,8 +65,8 @@ class YamlLint
65
65
  end
66
66
 
67
67
  def parse_file(file)
68
- unless File.extname(file) == ".yaml"
69
- error "The extension of the file #{file} should be .yaml"
68
+ unless File.extname(file) =~ /.(yaml|yml)$/
69
+ error "The extension of the file #{file} should be .yaml or .yml"
70
70
  @error = true
71
71
  return
72
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Fabre
@@ -17,8 +17,8 @@ executables:
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - lib/yaml-lint.rb
21
20
  - bin/yaml-lint
21
+ - lib/yaml-lint.rb
22
22
  homepage:
23
23
  licenses:
24
24
  - MIT
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  version: '0'
40
40
  requirements: []
41
41
  rubyforge_project:
42
- rubygems_version: 2.0.3
42
+ rubygems_version: 2.3.0
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: Really simple YAML lint