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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d20583e661295bcedc18d61c1f76d76a8dadc0321330ee2cfab048e10c831d9e
4
- data.tar.gz: 6f8cba57ac328974b466f0a024f7eba469f5a8e480c517c8b9f78ff99c7d36c9
3
+ metadata.gz: 29e4b11eb67ac424ce447445c58a2f2d1cc401dd38512403e444b9d05dd7eec7
4
+ data.tar.gz: 6c5e706887327a973a8a65d36a9ca00d1fc5b3ca1a4fa65526a5faa86df42671
5
5
  SHA512:
6
- metadata.gz: 2aeb5b62c63a308ecbf3643a11c77521895d56588e00c4b9fd37adfcc0de8c46425b6810d45d259c213e34a4df0249ec1a90bef05bd77d6123cab2381488a623
7
- data.tar.gz: 57326168502d2e047389764627f94ad5254d867a7ed82bb751f34787bea6413f8481143bf9c5b463ff021b2e24793d540ffc40d8bab693d4e7539db6475da664
6
+ metadata.gz: b7899527b37037203171485090dc06297ea793ba4f9b0f3d5090bbfca1a375e1a159656250b6dff1359d24637e6a013b38ab8317674941399cc7f7a13e6f006b
7
+ data.tar.gz: e2c1d1dac6a9bef4c8c99decc1e7aee33633a5dfd1e48440954a255abaf655f3e27c476ec77c6c7a903dc62b2a97a80b19a5310932a0403b5772b8db914b530e
data/.rubocop.yml CHANGED
@@ -3,3 +3,6 @@ inherit_from: .rubocop_todo.yml
3
3
 
4
4
  inherit_gem:
5
5
  voxpupuli-rubocop: rubocop.yml
6
+
7
+ AllCops:
8
+ TargetRubyVersion: 3.2
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2024-06-20 08:26:07 UTC using RuboCop version 1.63.5.
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: 36
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)
@@ -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})}.freeze
13
+ INVALID_ESCAPE_REGEX = %r{\\[^"/bfnrtu]|\\u(?![0-9a-fA-F]{4})}
14
14
 
15
15
  def options
16
16
  @options ||= Struct.new(
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'metadata-json-lint'
3
- s.version = '4.3.0'
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.7.0'
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', '~> 3.1.0'
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.3.0
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: 3.1.0
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: 3.1.0
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.7.0
224
+ version: 3.2.0
225
225
  required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="