puppetlabs-syntax 7.2.1

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.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ci.yml +38 -0
  3. data/.github/workflows/mend.yml +15 -0
  4. data/.github/workflows/nightly.yml +30 -0
  5. data/.github/workflows/release.yml +16 -0
  6. data/.github/workflows/release_prep.yml +20 -0
  7. data/.gitignore +20 -0
  8. data/.rubocop.yml +8 -0
  9. data/.rubocop_todo.yml +177 -0
  10. data/CHANGELOG.md +183 -0
  11. data/CODEOWNERS +2 -0
  12. data/Gemfile +59 -0
  13. data/HISTORY.md +382 -0
  14. data/LICENSE.txt +22 -0
  15. data/README.md +198 -0
  16. data/Rakefile +26 -0
  17. data/lib/puppetlabs-syntax/hiera.rb +176 -0
  18. data/lib/puppetlabs-syntax/manifests.rb +70 -0
  19. data/lib/puppetlabs-syntax/tasks/puppetlabs-syntax.rb +86 -0
  20. data/lib/puppetlabs-syntax/templates.rb +90 -0
  21. data/lib/puppetlabs-syntax/version.rb +5 -0
  22. data/lib/puppetlabs-syntax.rb +42 -0
  23. data/puppetlabs-syntax.gemspec +28 -0
  24. data/spec/fixtures/hiera/data/hiera_1.yaml +0 -0
  25. data/spec/fixtures/hiera/data/hiera_2.eyaml +0 -0
  26. data/spec/fixtures/hiera/data/test/hiera_3.yaml +0 -0
  27. data/spec/fixtures/hiera/data/test/hiera_4.eyaml +0 -0
  28. data/spec/fixtures/hiera/hiera_bad.eyaml +25 -0
  29. data/spec/fixtures/hiera/hiera_bad.yaml +1 -0
  30. data/spec/fixtures/hiera/hiera_badkey.yaml +18 -0
  31. data/spec/fixtures/hiera/hiera_badvalue.yaml +8 -0
  32. data/spec/fixtures/hiera/hiera_good.eyaml +13 -0
  33. data/spec/fixtures/hiera/hiera_good.yaml +7 -0
  34. data/spec/fixtures/hiera/hiera_key_empty.yaml +0 -0
  35. data/spec/fixtures/hiera/hiera_key_no_value.yaml +2 -0
  36. data/spec/fixtures/test_module/manifests/deprecation_notice.pp +6 -0
  37. data/spec/fixtures/test_module/manifests/fail_error.pp +3 -0
  38. data/spec/fixtures/test_module/manifests/fail_warning.pp +5 -0
  39. data/spec/fixtures/test_module/manifests/future_syntax.pp +3 -0
  40. data/spec/fixtures/test_module/manifests/pass.pp +5 -0
  41. data/spec/fixtures/test_module/manifests/pass_storeconfigs.pp +3 -0
  42. data/spec/fixtures/test_module/manifests/schedule_notice.pp +5 -0
  43. data/spec/fixtures/test_module/manifests/tag_notice.pp +5 -0
  44. data/spec/fixtures/test_module/manifests/test_app.pp +3 -0
  45. data/spec/fixtures/test_module/templates/fail_error.epp +3 -0
  46. data/spec/fixtures/test_module/templates/fail_error.erb +3 -0
  47. data/spec/fixtures/test_module/templates/fail_error_also.epp +3 -0
  48. data/spec/fixtures/test_module/templates/fail_warning.erb +2 -0
  49. data/spec/fixtures/test_module/templates/ignore.tpl +3 -0
  50. data/spec/fixtures/test_module/templates/pass.epp +3 -0
  51. data/spec/fixtures/test_module/templates/pass.erb +2 -0
  52. data/spec/fixtures/test_module/templates/pass_also.epp +3 -0
  53. data/spec/fixtures/test_module/templates/pass_unbound_var.erb +1 -0
  54. data/spec/fixtures/test_module/templates/typeerror_shouldwin.erb +2 -0
  55. data/spec/puppetlabs-syntax/hiera_spec.rb +107 -0
  56. data/spec/puppetlabs-syntax/manifests_spec.rb +96 -0
  57. data/spec/puppetlabs-syntax/tasks/puppetlabs-syntax_spec.rb +55 -0
  58. data/spec/puppetlabs-syntax/templates_spec.rb +127 -0
  59. data/spec/puppetlabs-syntax_spec.rb +42 -0
  60. data/spec/spec_helper.rb +26 -0
  61. metadata +150 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5a9f4efafd274e5dce8394b9a8f94e6bbb9df1fda8ab961e6b3a60f537d25510
4
+ data.tar.gz: 43f9ce6647ac0a03363f09ddb664a9a8b817e807f820e795054a696ca33e6b75
5
+ SHA512:
6
+ metadata.gz: c84d19a117a09108538f20fb336c4326be03db854c52afb7ae2a1d940f60d1a991500699c825060f28ddb0b8c4e5f3f365e7cfb5d41196d64884a15b0d640302
7
+ data.tar.gz: bd797218604eab5c41d65cefc7384049fc1dcd62ff8d16ac0c14055ea18c9073adfae705f2d232e06495659f8346b948ea6f7b39bf0e83de9632b9eb1a550e2a
@@ -0,0 +1,38 @@
1
+ name: "ci"
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - "main"
7
+ pull_request:
8
+ branches:
9
+ - "main"
10
+ workflow_dispatch:
11
+
12
+ env:
13
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
14
+
15
+ jobs:
16
+ spec:
17
+ strategy:
18
+ fail-fast: false
19
+ matrix:
20
+ ruby_version:
21
+ - "3.2"
22
+ - "4.0"
23
+ include:
24
+ - ruby_version: '3.2'
25
+ puppet_gem_version: '~> 8.0'
26
+ - ruby_version: '4.0'
27
+ puppet_gem_version: '~> 9.0'
28
+ runs_on:
29
+ - "ubuntu-latest"
30
+ - "windows-latest"
31
+ name: "spec (${{ matrix.runs_on }} ruby ${{ matrix.ruby_version }} | puppet ${{matrix.puppet_gem_version}})"
32
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
33
+ secrets: "inherit"
34
+ with:
35
+ rake_task: "spec"
36
+ ruby_version: ${{ matrix.ruby_version }}
37
+ puppet_gem_version: ${{ matrix.puppet_gem_version }}
38
+ runs_on: ${{ matrix.runs_on }}
@@ -0,0 +1,15 @@
1
+ name: "mend"
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - "main"
7
+ schedule:
8
+ - cron: "0 0 * * *"
9
+ workflow_dispatch:
10
+
11
+ jobs:
12
+
13
+ mend:
14
+ uses: "puppetlabs/cat-github-actions/.github/workflows/tooling_mend_ruby.yml@main"
15
+ secrets: "inherit"
@@ -0,0 +1,30 @@
1
+ name: "nightly"
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "0 0 * * *"
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ spec:
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ ruby_version:
14
+ - "3.2"
15
+ - "4.0"
16
+ include:
17
+ - ruby_version: '3.2'
18
+ puppet_gem_version: '~> 8.0'
19
+ - ruby_version: '4.0'
20
+ puppet_gem_version: '~> 9.0'
21
+ runs_on:
22
+ - "ubuntu-latest"
23
+ - "windows-latest"
24
+ name: "spec (${{ matrix.runs_on }} ruby ${{ matrix.ruby_version }} | puppet ${{matrix.puppet_gem_version}})"
25
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
26
+ secrets: "inherit"
27
+ with:
28
+ ruby_version: ${{ matrix.ruby_version }}
29
+ puppet_gem_version: ${{ matrix.puppet_gem_version }}
30
+ runs_on: ${{ matrix.runs_on }}
@@ -0,0 +1,16 @@
1
+ name: "release"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ target:
7
+ description: "The target for the release. This can be a commit sha or a branch."
8
+ required: false
9
+ default: "main"
10
+
11
+ jobs:
12
+ release:
13
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main"
14
+ with:
15
+ target: "${{ github.event.inputs.target }}"
16
+ secrets: "inherit"
@@ -0,0 +1,20 @@
1
+ name: "release prep"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ target:
7
+ description: "The target for the release. This can be a commit sha or a branch."
8
+ required: false
9
+ default: "main"
10
+ version:
11
+ description: "Version of gem to be released."
12
+ required: true
13
+
14
+ jobs:
15
+ release_prep:
16
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main"
17
+ with:
18
+ target: "${{ github.event.inputs.target }}"
19
+ version: "${{ github.events.inputs.version }}"
20
+ secrets: "inherit"
data/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ vendor/
19
+ .idea/
20
+ .vendor/
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ inherit_from: .rubocop_todo.yml
3
+
4
+ inherit_gem:
5
+ voxpupuli-rubocop: rubocop.yml
6
+
7
+ Metrics:
8
+ Enabled: false
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,177 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config --no-auto-gen-timestamp`
3
+ # using RuboCop version 1.85.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
11
+ Lint/DuplicateBranch:
12
+ Exclude:
13
+ - 'lib/puppetlabs-syntax/templates.rb'
14
+
15
+ # Offense count: 1
16
+ # Configuration parameters: AllowedParentClasses.
17
+ Lint/MissingSuper:
18
+ Exclude:
19
+ - 'lib/puppetlabs-syntax/tasks/puppetlabs-syntax.rb'
20
+
21
+ # Offense count: 1
22
+ Lint/RescueException:
23
+ Exclude:
24
+ - 'lib/puppetlabs-syntax/hiera.rb'
25
+
26
+ # Offense count: 1
27
+ # Configuration parameters: AllowComments, AllowNil.
28
+ Lint/SuppressedException:
29
+ Exclude:
30
+ - 'Rakefile'
31
+
32
+ # Offense count: 4
33
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
34
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
35
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
36
+ Naming/FileName:
37
+ Exclude:
38
+ - 'Rakefile.rb'
39
+ - 'lib/puppetlabs-syntax.rb'
40
+ - 'lib/puppetlabs-syntax/tasks/puppetlabs-syntax.rb'
41
+ - 'spec/puppetlabs-syntax/tasks/puppetlabs-syntax_spec.rb'
42
+ - 'spec/puppetlabs-syntax_spec.rb'
43
+
44
+ # Offense count: 1
45
+ # Configuration parameters: Prefixes, AllowedPatterns.
46
+ # Prefixes: when, with, without
47
+ RSpec/ContextWording:
48
+ Exclude:
49
+ - 'spec/puppetlabs-syntax/hiera_spec.rb'
50
+
51
+ # Offense count: 1
52
+ # Configuration parameters: IgnoredMetadata.
53
+ RSpec/DescribeClass:
54
+ Exclude:
55
+ - '**/spec/features/**/*'
56
+ - '**/spec/requests/**/*'
57
+ - '**/spec/routing/**/*'
58
+ - '**/spec/system/**/*'
59
+ - '**/spec/views/**/*'
60
+ - 'spec/puppetlabs-syntax/tasks/puppetlabs-syntax_spec.rb'
61
+
62
+ # Offense count: 8
63
+ # Configuration parameters: CountAsOne.
64
+ RSpec/ExampleLength:
65
+ Max: 17
66
+
67
+ # Offense count: 6
68
+ RSpec/LeakyLocalVariable:
69
+ Exclude:
70
+ - 'spec/puppetlabs-syntax/tasks/puppetlabs-syntax_spec.rb'
71
+
72
+ # Offense count: 33
73
+ # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
74
+ # SupportedStyles: always, named_only
75
+ RSpec/NamedSubject:
76
+ Exclude:
77
+ - 'spec/puppetlabs-syntax/hiera_spec.rb'
78
+ - 'spec/puppetlabs-syntax/manifests_spec.rb'
79
+ - 'spec/puppetlabs-syntax/templates_spec.rb'
80
+
81
+ # Offense count: 8
82
+ RSpec/RepeatedDescription:
83
+ Exclude:
84
+ - 'spec/puppetlabs-syntax/templates_spec.rb'
85
+
86
+ # Offense count: 4
87
+ # Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector.
88
+ # SupportedInflectors: default, active_support
89
+ RSpec/SpecFilePathFormat:
90
+ Exclude:
91
+ - '**/spec/routing/**/*'
92
+ - 'spec/puppetlabs-syntax/hiera_spec.rb'
93
+ - 'spec/puppetlabs-syntax/manifests_spec.rb'
94
+ - 'spec/puppetlabs-syntax/templates_spec.rb'
95
+ - 'spec/puppetlabs-syntax_spec.rb'
96
+
97
+ # Offense count: 3
98
+ RSpec/SubjectDeclaration:
99
+ Exclude:
100
+ - 'spec/puppetlabs-syntax/hiera_spec.rb'
101
+ - 'spec/puppetlabs-syntax/manifests_spec.rb'
102
+ - 'spec/puppetlabs-syntax/templates_spec.rb'
103
+
104
+ # Offense count: 1
105
+ # This cop supports unsafe autocorrection (--autocorrect-all).
106
+ # Configuration parameters: EnforcedStyle.
107
+ # SupportedStyles: always, conditionals
108
+ Style/AndOr:
109
+ Exclude:
110
+ - 'lib/puppetlabs-syntax/templates.rb'
111
+
112
+ # Offense count: 1
113
+ # This cop supports unsafe autocorrection (--autocorrect-all).
114
+ # Configuration parameters: MinBranchesCount.
115
+ Style/CaseLikeIf:
116
+ Exclude:
117
+ - 'lib/puppetlabs-syntax/hiera.rb'
118
+
119
+ # Offense count: 5
120
+ # Configuration parameters: AllowedConstants.
121
+ Style/Documentation:
122
+ Exclude:
123
+ - 'spec/**/*'
124
+ - 'test/**/*'
125
+ - 'lib/puppetlabs-syntax.rb'
126
+ - 'lib/puppetlabs-syntax/hiera.rb'
127
+ - 'lib/puppetlabs-syntax/manifests.rb'
128
+ - 'lib/puppetlabs-syntax/tasks/puppetlabs-syntax.rb'
129
+ - 'lib/puppetlabs-syntax/templates.rb'
130
+
131
+ # Offense count: 2
132
+ # This cop supports unsafe autocorrection (--autocorrect-all).
133
+ # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
134
+ # SupportedStyles: predicate, comparison
135
+ Style/NumericPredicate:
136
+ Exclude:
137
+ - 'spec/**/*'
138
+ - 'lib/puppetlabs-syntax/hiera.rb'
139
+
140
+ # Offense count: 1
141
+ # This cop supports safe autocorrection (--autocorrect).
142
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
143
+ # SupportedStyles: slashes, percent_r, mixed
144
+ Style/RegexpLiteral:
145
+ Exclude:
146
+ - 'spec/puppetlabs-syntax/templates_spec.rb'
147
+
148
+ # Offense count: 1
149
+ # This cop supports unsafe autocorrection (--autocorrect-all).
150
+ Style/SelectByRegexp:
151
+ Exclude:
152
+ - 'lib/puppetlabs-syntax/manifests.rb'
153
+
154
+ # Offense count: 1
155
+ # This cop supports unsafe autocorrection (--autocorrect-all).
156
+ # Configuration parameters: RequireEnglish, EnforcedStyle.
157
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
158
+ Style/SpecialGlobalVars:
159
+ Exclude:
160
+ - 'puppetlabs-syntax.gemspec'
161
+
162
+ # Offense count: 4
163
+ # This cop supports unsafe autocorrection (--autocorrect-all).
164
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
165
+ # AllowedMethods: define_method
166
+ Style/SymbolProc:
167
+ Exclude:
168
+ - 'lib/puppetlabs-syntax/hiera.rb'
169
+ - 'lib/puppetlabs-syntax/manifests.rb'
170
+ - 'lib/puppetlabs-syntax/templates.rb'
171
+
172
+ # Offense count: 6
173
+ # This cop supports safe autocorrection (--autocorrect).
174
+ # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
175
+ # URISchemes: http, https
176
+ Layout/LineLength:
177
+ Max: 211
data/CHANGELOG.md ADDED
@@ -0,0 +1,183 @@
1
+ <!-- markdownlint-disable MD024 -->
2
+ # Changelog
3
+
4
+ All notable changes to this project will be documented in this file.
5
+
6
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
7
+
8
+ ## [v7.2.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v7.2.1) - 2026-08-20
9
+
10
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v7.2.0...v7.2.1)
11
+
12
+ ### Changed
13
+
14
+ - (CAT-2763) Rename gem: puppet-syntax -> puppetlabs-syntax [#4](https://github.com/puppetlabs/puppetlabs-syntax/pull/4) ([gavindidrichsen](https://github.com/gavindidrichsen))
15
+ - (CAT-2763) refactor from openvox to puppet [#2](https://github.com/puppetlabs/puppetlabs-syntax/pull/2) ([gavindidrichsen](https://github.com/gavindidrichsen))
16
+
17
+ ### Other
18
+
19
+ - (CAT-2763) Fix HISTORY.md [#9](https://github.com/puppetlabs/puppetlabs-syntax/pull/9) ([gavindidrichsen](https://github.com/gavindidrichsen))
20
+
21
+ ## [v7.2.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v7.2.0) - 2026-02-20
22
+
23
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v7.1.0...v7.2.0)
24
+
25
+ ## [v7.1.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v7.1.0) - 2026-02-13
26
+
27
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v7.0.1...v7.1.0)
28
+
29
+ ## [v7.0.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v7.0.1) - 2025-08-14
30
+
31
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v7.0.0...v7.0.1)
32
+
33
+ ## [v7.0.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v7.0.0) - 2025-08-13
34
+
35
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v6.0.0...v7.0.0)
36
+
37
+ ## [v6.0.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v6.0.0) - 2025-06-10
38
+
39
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v5.0.0...v6.0.0)
40
+
41
+ ## [v5.0.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v5.0.0) - 2025-05-23
42
+
43
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v4.1.1...v5.0.0)
44
+
45
+ ## [v4.1.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v4.1.1) - 2024-04-04
46
+
47
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v4.1.0...v4.1.1)
48
+
49
+ ## [v4.1.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v4.1.0) - 2024-03-12
50
+
51
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v4.0.1...v4.1.0)
52
+
53
+ ## [v4.0.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v4.0.1) - 2024-03-12
54
+
55
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v4.0.0...v4.0.1)
56
+
57
+ ## [v4.0.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v4.0.0) - 2024-02-07
58
+
59
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v3.3.0...v4.0.0)
60
+
61
+ ## [v3.3.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v3.3.0) - 2023-02-08
62
+
63
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v3.2.1...v3.3.0)
64
+
65
+ ## [v3.2.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v3.2.1) - 2022-05-16
66
+
67
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v3.2.0...v3.2.1)
68
+
69
+ ## [v3.2.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v3.2.0) - 2022-05-16
70
+
71
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v3.1.0...v3.2.0)
72
+
73
+ ## [v3.1.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v3.1.0) - 2020-06-24
74
+
75
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v3.0.1...v3.1.0)
76
+
77
+ ## [v3.0.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v3.0.1) - 2020-05-27
78
+
79
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v3.0.0...v3.0.1)
80
+
81
+ ## [v3.0.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v3.0.0) - 2020-05-09
82
+
83
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.6.1...v3.0.0)
84
+
85
+ ## [v2.6.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.6.1) - 2020-01-11
86
+
87
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.6.0...v2.6.1)
88
+
89
+ ## [v2.6.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.6.0) - 2019-10-05
90
+
91
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.5.0...v2.6.0)
92
+
93
+ ## [v2.5.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.5.0) - 2019-07-07
94
+
95
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.4.3...v2.5.0)
96
+
97
+ ## [v2.4.3](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.4.3) - 2019-02-09
98
+
99
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.4.2...v2.4.3)
100
+
101
+ ## [v2.4.2](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.4.2) - 2019-02-08
102
+
103
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.4.1...v2.4.2)
104
+
105
+ ## [v2.4.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.4.1) - 2017-06-30
106
+
107
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.4.0...v2.4.1)
108
+
109
+ ## [v2.4.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.4.0) - 2017-03-14
110
+
111
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.3.0...v2.4.0)
112
+
113
+ ## [v2.3.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.3.0) - 2017-02-01
114
+
115
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.2.0...v2.3.0)
116
+
117
+ ## [v2.2.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.2.0) - 2016-12-02
118
+
119
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.1.1...v2.2.0)
120
+
121
+ ## [v2.1.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.1.1) - 2016-10-21
122
+
123
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.1.0...v2.1.1)
124
+
125
+ ## [v2.1.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.1.0) - 2016-01-18
126
+
127
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v2.0.0...v2.1.0)
128
+
129
+ ## [v2.0.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v2.0.0) - 2015-02-26
130
+
131
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v1.4.1...v2.0.0)
132
+
133
+ ## [v1.4.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v1.4.1) - 2015-01-08
134
+
135
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v1.4.0...v1.4.1)
136
+
137
+ ## [v1.4.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v1.4.0) - 2014-12-18
138
+
139
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v1.3.0...v1.4.0)
140
+
141
+ ## [v1.3.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v1.3.0) - 2014-08-07
142
+
143
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v1.2.3...v1.3.0)
144
+
145
+ ## [v1.2.3](https://github.com/puppetlabs/puppetlabs-syntax/tree/v1.2.3) - 2014-08-06
146
+
147
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v1.2.2...v1.2.3)
148
+
149
+ ## [v1.2.2](https://github.com/puppetlabs/puppetlabs-syntax/tree/v1.2.2) - 2014-07-31
150
+
151
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v1.2.0...v1.2.2)
152
+
153
+ ## [v1.2.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v1.2.0) - 2014-03-28
154
+
155
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v1.1.1...v1.2.0)
156
+
157
+ ## [v1.1.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v1.1.1) - 2014-03-17
158
+
159
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v1.1.0...v1.1.1)
160
+
161
+ ## [v1.1.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v1.1.0) - 2013-09-06
162
+
163
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v1.0.0...v1.1.0)
164
+
165
+ ## [v1.0.0](https://github.com/puppetlabs/puppetlabs-syntax/tree/v1.0.0) - 2013-07-04
166
+
167
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v0.0.4...v1.0.0)
168
+
169
+ ## [v0.0.4](https://github.com/puppetlabs/puppetlabs-syntax/tree/v0.0.4) - 2013-06-14
170
+
171
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v0.0.3...v0.0.4)
172
+
173
+ ## [v0.0.3](https://github.com/puppetlabs/puppetlabs-syntax/tree/v0.0.3) - 2013-06-11
174
+
175
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v0.0.2...v0.0.3)
176
+
177
+ ## [v0.0.2](https://github.com/puppetlabs/puppetlabs-syntax/tree/v0.0.2) - 2013-06-10
178
+
179
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/v0.0.1...v0.0.2)
180
+
181
+ ## [v0.0.1](https://github.com/puppetlabs/puppetlabs-syntax/tree/v0.0.1) - 2013-06-10
182
+
183
+ [Full Changelog](https://github.com/puppetlabs/puppetlabs-syntax/compare/41f0e844618bf5f347aef25a930d34edf3d20975...v0.0.1)
data/CODEOWNERS ADDED
@@ -0,0 +1,2 @@
1
+ # Setting ownership to the tooling team and Tim
2
+ * @puppetlabs/devx
data/Gemfile ADDED
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ # For puppetcore, set GEM_SOURCE_PUPPETCORE = 'https://rubygems-puppetcore.puppet.com'
4
+ gemsource_default = ENV['GEM_SOURCE'] || 'https://rubygems.org'
5
+ gemsource_puppetcore = if ENV['GEM_SOURCE']
6
+ gemsource_default
7
+ elsif ENV['PUPPET_FORGE_TOKEN']
8
+ 'https://rubygems-puppetcore.puppet.com'
9
+ else
10
+ ENV['GEM_SOURCE_PUPPETCORE'] || gemsource_default
11
+ end
12
+ source gemsource_default
13
+
14
+ gemspec
15
+
16
+ def location_for(place_or_version, fake_version = nil, opts = {})
17
+ git_url_regex = /\A(?<url>(?:https?|git)[:@][^#]*)(?:#(?<branch>.*))?/
18
+ file_url_regex = %r{\Afile://(?<path>.*)}
19
+
20
+ if place_or_version && (git_url = place_or_version.match(git_url_regex))
21
+ [fake_version, { git: git_url[:url], branch: git_url[:branch], require: false }].compact
22
+ elsif place_or_version && (file_url = place_or_version.match(file_url_regex))
23
+ ['>= 0', { path: File.expand_path(file_url[:path]), require: false }]
24
+ else
25
+ [place_or_version, { require: false }.merge(opts)]
26
+ end
27
+ end
28
+
29
+ # Override gemspec for CI matrix builds.
30
+ # But only if the environment variable is set.
31
+ # Route through gemsource_puppetcore so CI can resolve puppet ~> 9.0 from the
32
+ # private Puppetcore registry (public rubygems.org tops out at puppet 8.10.0).
33
+ # When PUPPET_FORGE_TOKEN is unset (e.g. fork PRs, local dev without a token),
34
+ # gemsource_puppetcore falls through to gemsource_default (public rubygems.org)
35
+ # and no auth is attempted against Puppetcore.
36
+ gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'], nil, { source: gemsource_puppetcore }) if ENV['PUPPET_GEM_VERSION']
37
+ # Puppet on Ruby 3.3 / 3.4 has some missing dependencies
38
+ gem 'syslog', '~> 0.3' if RUBY_VERSION >= '3.4'
39
+
40
+ # Windows platform runtime deps. The published puppet/openvox rubygems.org
41
+ # artefacts are built on Linux and guard `ffi` / `win32ole` with build-host
42
+ # platform checks, so those deps never make it into the Linux-published
43
+ # artefact. Ruby 3.4+ removed win32ole from default gems, making the missing
44
+ # declaration fatal at require-time on Windows. Declaring them here in the
45
+ # Gemfile is evaluated on the install host at bundle time, so bundler pulls
46
+ # them on Windows only.
47
+ platforms :mingw, :x64_mingw, :mswin do
48
+ gem 'ffi', '>= 1.15.5', '< 1.17.0', '!= 1.16.0', '!= 1.16.1', '!= 1.16.2'
49
+ gem 'win32ole', '>= 1.8', '< 2.0'
50
+ end
51
+
52
+ group :test do
53
+ gem 'rspec'
54
+ end
55
+
56
+ group :release, optional: true do
57
+ gem 'faraday-retry', '~> 2.1', require: false
58
+ gem 'github_changelog_generator', '~> 1.18.0', require: false
59
+ end