puppet-syntax 3.2.1 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20ff73cbd97aa25a996855fb8e64011c49dad446d646c01739756cbf4070605a
4
- data.tar.gz: e63849bf1b733a186913a5e35c045c324a8debeb82d57e5d3506c3a19fc4de14
3
+ metadata.gz: 7ab13111ffaa03decb11bef1d05aada83ed94f63e3fe2d9b40413fe1c5a1072e
4
+ data.tar.gz: 29f88eb7f120c0aeb17ad95ab562edd936b7d63540d0c2f24c058c3f691e37ae
5
5
  SHA512:
6
- metadata.gz: d3439e59e3a4bcefec9fb7a5ea454cbea88837cabf2a9ca32baac945fc450f47cfaff97b1220e632fde143a15ad1bc6b8fa145acd431ed246b1db06330a2f72c
7
- data.tar.gz: d8005bff08d6eeaf372febbe207de534a47b7ef5598a237ed63002d68304208910c430ffaf3b2a8cd88e249ee54c2e8b92c17c4e23959ecd17d68349873a5e9c
6
+ metadata.gz: ef76471a592b1ba5affe655b657c7b1d40f02cf65ad81fd384d3be489bbc810852622a8fcb28cba197d8cbf8f494215c803be261791a3d8ddbb0460949ab5b00
7
+ data.tar.gz: ea4f9da1b8ca9f16d96c639f22213193c1224900d6cbbc480c7063de7580edc1426b31f88b800b1ea1085b3a0fb5eaba58bd816cb73fc7f907f6c15f839d865f
@@ -23,7 +23,7 @@ jobs:
23
23
  - "2.4"
24
24
  puppet:
25
25
  - "~> 7.0"
26
- - "~> 6.5"
26
+ - "~> 6.29"
27
27
  - "~> 5.5.10"
28
28
  - "https://github.com/puppetlabs/puppet.git#main"
29
29
  exclude:
@@ -35,9 +35,9 @@ jobs:
35
35
  puppet: "~> 7.0"
36
36
 
37
37
  - ruby: "3.1"
38
- puppet: "~> 6.5"
38
+ puppet: "~> 6.29"
39
39
  - ruby: "3.0"
40
- puppet: "~> 6.5"
40
+ puppet: "~> 6.29"
41
41
 
42
42
  - ruby: "3.1"
43
43
  puppet: "~> 5.5.10"
data/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [v3.3.0](https://github.com/voxpupuli/puppet-syntax/tree/v3.3.0) (2023-02-08)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/puppet-syntax/compare/v3.2.1...v3.3.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - Lazy load required classes [\#134](https://github.com/voxpupuli/puppet-syntax/pull/134) ([ekohl](https://github.com/ekohl))
12
+
13
+ **Merged pull requests:**
14
+
15
+ - Pull in Puppet 6.29 in CI [\#135](https://github.com/voxpupuli/puppet-syntax/pull/135) ([ekohl](https://github.com/ekohl))
16
+
17
+ ## [v3.2.1](https://github.com/voxpupuli/puppet-syntax/tree/v3.2.1) (2022-05-16)
18
+
19
+ [Full Changelog](https://github.com/voxpupuli/puppet-syntax/compare/v3.2.0...v3.2.1)
20
+
5
21
  ## [v3.2.0](https://github.com/voxpupuli/puppet-syntax/tree/v3.2.0) (2022-05-16)
6
22
 
7
23
  [Full Changelog](https://github.com/voxpupuli/puppet-syntax/compare/v3.1.0...v3.2.0)
@@ -3,6 +3,7 @@ module PuppetSyntax
3
3
  def check(filelist)
4
4
  raise "Expected an array of files" unless filelist.is_a?(Array)
5
5
  require 'puppet'
6
+ require 'puppet/version'
6
7
  require 'puppet/face'
7
8
  require 'puppet/test/test_helper'
8
9
 
@@ -1,5 +1,4 @@
1
1
  require 'erb'
2
- require 'puppet'
3
2
  require 'stringio'
4
3
 
5
4
  module PuppetSyntax
@@ -30,6 +29,7 @@ module PuppetSyntax
30
29
  end
31
30
 
32
31
  def validate_epp(filename)
32
+ require 'puppet/error'
33
33
  require 'puppet/pops'
34
34
  result = { warnings: [], errors: [] }
35
35
  formatter = Puppet::Pops::Validation::DiagnosticFormatterPuppetStyle.new
@@ -1,3 +1,3 @@
1
1
  module PuppetSyntax
2
- VERSION = '3.2.1'
2
+ VERSION = '3.3.0'
3
3
  end
data/lib/puppet-syntax.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  require "puppet-syntax/version"
2
- require "puppet-syntax/manifests"
3
- require "puppet-syntax/templates"
4
- require "puppet-syntax/hiera"
5
- require "puppet/version"
6
2
 
7
3
  module PuppetSyntax
4
+ autoload :Hiera, 'puppet-syntax/hiera'
5
+ autoload :Manifests, 'puppet-syntax/manifests'
6
+ autoload :Templates, 'puppet-syntax/templates'
7
+
8
8
  @exclude_paths = []
9
9
  @hieradata_paths = [
10
10
  "**/data/**/*.*{yaml,yml}",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-syntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-16 00:00:00.000000000 Z
11
+ date: 2023-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.3.7
146
+ rubygems_version: 3.3.26
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Syntax checks for Puppet manifests, templates, and Hiera YAML