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.
- checksums.yaml +4 -4
- data/lib/yaml-lint.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03d60c3bfb68366177794f2f11cb22d260eaafa9
|
4
|
+
data.tar.gz: 831ba58adb8dd9d43bccd88ad0af246d30ce4e5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b533d7288251357f03a54dbf2d9fe0d6c9a4d5808f8fa2e4df528b9623cebd9008d4517a1daf49820d425f1b8da850336aba8ebd3dae6e6fba1e9058d359d9ca
|
7
|
+
data.tar.gz: a8e98c9ad40c67e9d8eb5a819e84dda9b58ae7039c91bb951ca36a566394dfa79fbfa6aad531d9cd4b881e34c96ea9cfb67831546ce760dc6c7dff766e6d8bd0
|
data/lib/yaml-lint.rb
CHANGED
@@ -65,8 +65,8 @@ class YamlLint
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def parse_file(file)
|
68
|
-
unless File.extname(file)
|
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.
|
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
|
42
|
+
rubygems_version: 2.3.0
|
43
43
|
signing_key:
|
44
44
|
specification_version: 4
|
45
45
|
summary: Really simple YAML lint
|