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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yaml-lint.rb +2 -2
  3. metadata +6 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2738d9c6fd9834e2a96d204a317fef5ad5a0c5732862ddf76575813205ae3b61
4
- data.tar.gz: b5276f99671de55551ac2f419cd8a5aa4b4f04ba22391aa3a462545a2f9c68c7
3
+ metadata.gz: b35dc59649f39ee3d5a74e903d31471d5168df4e4277f95e87734169a9a17f8b
4
+ data.tar.gz: 8cd3710a60a3d90272c05e44c32360f16fd92a6d8dbccf75498761f56f38fd40
5
5
  SHA512:
6
- metadata.gz: 97ccbd8f69de3e846d4ea7e18f02eb15e61f9deae35a54d4b116438ec65ba90660ee797e1697143cc9410bd4e4510ab94fb7c7f5c6d721772de6ef34001c4d2e
7
- data.tar.gz: 2ec074027f53b504df930ef4b47650583ea08e7284ce7eb2544f77f1196d5aa7c631264218531142e6cb5d392dc605f96ba533725c97b76f230519ee87ee98a4
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.exists? @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.0.10
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: 2018-04-02 00:00:00.000000000 Z
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
- rubyforge_project:
42
- rubygems_version: 2.7.6
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: []