yaml-lint 0.0.10 → 0.1.1
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: b35dc59649f39ee3d5a74e903d31471d5168df4e4277f95e87734169a9a17f8b
|
4
|
+
data.tar.gz: 8cd3710a60a3d90272c05e44c32360f16fd92a6d8dbccf75498761f56f38fd40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4be937cee4d6e3b1530d19531c6f68edc8b20938905bcef9990104eed9d5d1cc50da347326bcebd49aa8ff853b3b0cda088b4a8ca489f6c341610bf357bcdb7
|
7
|
+
data.tar.gz: a573e05e918b0b1f0834c6e4feb8a49551f223e5692a125cac3257ba0d88d11aefde3a322af42a6cb4e46deb412cb0d962ae45255ab0a2c96e2a214168a163da
|
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.load_file(file)
|
78
|
+
::YAML.respond_to?(:unsafe_load) ? ::YAML.unsafe_load(file) : ::YAML.load_file(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.
|
4
|
+
version: 0.1.1
|
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: []
|