metadata-json-lint 4.3.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +12 -8
- data/CHANGELOG.md +8 -0
- data/lib/metadata_json_lint.rb +1 -1
- data/metadata-json-lint.gemspec +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29e4b11eb67ac424ce447445c58a2f2d1cc401dd38512403e444b9d05dd7eec7
|
4
|
+
data.tar.gz: 6c5e706887327a973a8a65d36a9ca00d1fc5b3ca1a4fa65526a5faa86df42671
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7899527b37037203171485090dc06297ea793ba4f9b0f3d5090bbfca1a375e1a159656250b6dff1359d24637e6a013b38ab8317674941399cc7f7a13e6f006b
|
7
|
+
data.tar.gz: e2c1d1dac6a9bef4c8c99decc1e7aee33633a5dfd1e48440954a255abaf655f3e27c476ec77c6c7a903dc62b2a97a80b19a5310932a0403b5772b8db914b530e
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
#
|
2
|
+
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
|
3
|
+
# using RuboCop version 1.79.2.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -11,6 +11,14 @@ Lint/RescueException:
|
|
11
11
|
Exclude:
|
12
12
|
- 'lib/metadata_json_lint.rb'
|
13
13
|
|
14
|
+
# Offense count: 1
|
15
|
+
# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates.
|
16
|
+
# AllowedMethods: call
|
17
|
+
# WaywardPredicates: nonzero?
|
18
|
+
Naming/PredicateMethod:
|
19
|
+
Exclude:
|
20
|
+
- 'lib/metadata_json_lint.rb'
|
21
|
+
|
14
22
|
# Offense count: 1
|
15
23
|
# Configuration parameters: Prefixes, AllowedPatterns.
|
16
24
|
# Prefixes: when, with, without
|
@@ -32,10 +40,6 @@ RSpec/DescribedClass:
|
|
32
40
|
RSpec/MessageSpies:
|
33
41
|
EnforcedStyle: receive
|
34
42
|
|
35
|
-
# Offense count: 2
|
36
|
-
RSpec/MultipleExpectations:
|
37
|
-
Max: 2
|
38
|
-
|
39
43
|
# Offense count: 7
|
40
44
|
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
|
41
45
|
# SupportedStyles: always, named_only
|
@@ -51,7 +55,7 @@ Style/Documentation:
|
|
51
55
|
- 'test/**/*'
|
52
56
|
- 'lib/metadata_json_lint.rb'
|
53
57
|
|
54
|
-
# Offense count:
|
58
|
+
# Offense count: 38
|
55
59
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
56
60
|
# Configuration parameters: EnforcedStyle.
|
57
61
|
# SupportedStyles: always, always_true, never
|
@@ -60,7 +64,7 @@ Style/FrozenStringLiteralComment:
|
|
60
64
|
|
61
65
|
# Offense count: 6
|
62
66
|
# This cop supports safe autocorrection (--autocorrect).
|
63
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
67
|
+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
64
68
|
# URISchemes: http, https
|
65
69
|
Layout/LineLength:
|
66
70
|
Max: 153
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [5.0.0](https://github.com/voxpupuli/metadata-json-lint/tree/5.0.0) (2025-08-12)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/4.3.0...5.0.0)
|
6
|
+
|
7
|
+
**Breaking changes:**
|
8
|
+
|
9
|
+
- Require Ruby 3.2 or newer [\#167](https://github.com/voxpupuli/metadata-json-lint/pull/167) ([bastelfreak](https://github.com/bastelfreak))
|
10
|
+
|
3
11
|
## [4.3.0](https://github.com/voxpupuli/metadata-json-lint/tree/4.3.0) (2025-08-12)
|
4
12
|
|
5
13
|
[Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/4.2.1...4.3.0)
|
data/lib/metadata_json_lint.rb
CHANGED
@@ -10,7 +10,7 @@ module MetadataJsonLint
|
|
10
10
|
MIN_PUPPET_VER = '4.10.0'.freeze
|
11
11
|
# Regex looks for:
|
12
12
|
# 1. Invalid escape sequences (\x or incomplete \u)
|
13
|
-
INVALID_ESCAPE_REGEX = %r{\\[^"/bfnrtu]|\\u(?![0-9a-fA-F]{4})}
|
13
|
+
INVALID_ESCAPE_REGEX = %r{\\[^"/bfnrtu]|\\u(?![0-9a-fA-F]{4})}
|
14
14
|
|
15
15
|
def options
|
16
16
|
@options ||= Struct.new(
|
data/metadata-json-lint.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'metadata-json-lint'
|
3
|
-
s.version = '
|
3
|
+
s.version = '5.0.0'
|
4
4
|
s.summary = 'metadata-json-lint /path/to/metadata.json'
|
5
5
|
s.description = 'Utility to verify Puppet metadata.json files'
|
6
6
|
s.authors = ['Vox Pupuli']
|
@@ -12,12 +12,12 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.homepage = 'https://github.com/voxpupuli/metadata-json-lint'
|
13
13
|
s.license = 'Apache-2.0'
|
14
14
|
|
15
|
-
s.required_ruby_version = '>= 2.
|
15
|
+
s.required_ruby_version = '>= 3.2.0'
|
16
16
|
|
17
17
|
s.add_dependency 'json-schema', '>= 2.8', '< 7.0'
|
18
18
|
s.add_dependency 'semantic_puppet', '~> 1.0'
|
19
19
|
s.add_dependency 'spdx-licenses', '~> 1.0'
|
20
20
|
s.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
21
21
|
s.add_development_dependency 'rspec', '~> 3.12'
|
22
|
-
s.add_development_dependency 'voxpupuli-rubocop', '~>
|
22
|
+
s.add_development_dependency 'voxpupuli-rubocop', '~> 4.2.0'
|
23
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metadata-json-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
@@ -97,14 +97,14 @@ dependencies:
|
|
97
97
|
requirements:
|
98
98
|
- - "~>"
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version:
|
100
|
+
version: 4.2.0
|
101
101
|
type: :development
|
102
102
|
prerelease: false
|
103
103
|
version_requirements: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
105
|
- - "~>"
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
107
|
+
version: 4.2.0
|
108
108
|
description: Utility to verify Puppet metadata.json files
|
109
109
|
email: voxpupuli@groups.io
|
110
110
|
executables:
|
@@ -221,7 +221,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
221
221
|
requirements:
|
222
222
|
- - ">="
|
223
223
|
- !ruby/object:Gem::Version
|
224
|
-
version: 2.
|
224
|
+
version: 3.2.0
|
225
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - ">="
|