yaml-lint 0.0.10 → 0.1.0
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 +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c6f2307265abec3aec5421c143abfbee361d056e4aca51b727b4258a3e91969
|
4
|
+
data.tar.gz: 55234818f879cbcb3f302e0cb878458b929bc1db269d2a7129a2d217e10872a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f54e4374bc7df0ec78ff629a47649be687515ce8e34016491719aa8bdac4ee692ae17673e782f89c9b91c4d05901a8fabbc3eebc7092c113e7a6cbd3af01d9ac
|
7
|
+
data.tar.gz: e4589bb6374c0130c8b47b11bac21806597cfb4dc1776bbcdc6d301190aab17b963e18ecfc38d1174122380b7e950e59cb89229f87aa4397203ea64756054a48
|
data/lib/yaml-lint.rb
CHANGED
@@ -41,7 +41,7 @@ class YamlLint
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def do_lint
|
44
|
-
unless File.
|
44
|
+
unless File.exist? @file
|
45
45
|
error "File #{@file} does not exist"
|
46
46
|
return 0
|
47
47
|
else
|
@@ -75,7 +75,7 @@ class YamlLint
|
|
75
75
|
return 1
|
76
76
|
end
|
77
77
|
begin
|
78
|
-
YAML.
|
78
|
+
YAML.unsafe_load(file)
|
79
79
|
rescue Exception => err
|
80
80
|
error "File : #{file}, error: #{err}"
|
81
81
|
return 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Fabre
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Check if your YAML files can be loaded.
|
14
14
|
email: ju.pryz@gmail.com
|
@@ -23,7 +23,7 @@ homepage: https://github.com/Pryz/yaml-lint
|
|
23
23
|
licenses:
|
24
24
|
- MIT
|
25
25
|
metadata: {}
|
26
|
-
post_install_message:
|
26
|
+
post_install_message:
|
27
27
|
rdoc_options: []
|
28
28
|
require_paths:
|
29
29
|
- lib
|
@@ -38,9 +38,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '0'
|
40
40
|
requirements: []
|
41
|
-
|
42
|
-
|
43
|
-
signing_key:
|
41
|
+
rubygems_version: 3.3.15
|
42
|
+
signing_key:
|
44
43
|
specification_version: 4
|
45
44
|
summary: Really simple YAML lint
|
46
45
|
test_files: []
|