puppetlabs-onceover-lookup 0.1.2
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 +7 -0
- data/.gitattributes +2 -0
- data/.github/dependabot.yml +17 -0
- data/.github/labeler.yml +3 -0
- data/.github/release.yml +40 -0
- data/.github/workflows/ci.yml +97 -0
- data/.github/workflows/labeler.yaml +15 -0
- data/.github/workflows/mend.yml +14 -0
- data/.github/workflows/nightly.yml +66 -0
- data/.github/workflows/release.yaml +16 -0
- data/.github/workflows/release_prep.yml +20 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.rubocop.yml +18 -0
- data/.rubocop_todo.yml +224 -0
- data/CHANGELOG.md +27 -0
- data/CODEOWNERS +1 -0
- data/Gemfile +59 -0
- data/LICENSE +201 -0
- data/README.md +197 -0
- data/Rakefile +47 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/puppetlabs-onceover/lookup/cli.rb +49 -0
- data/lib/puppetlabs-onceover/lookup/lookup.rb +131 -0
- data/lib/puppetlabs-onceover/lookup/version.rb +5 -0
- data/lib/puppetlabs-onceover/lookup.rb +8 -0
- data/puppetlabs-onceover-lookup.gemspec +28 -0
- data/res/puppet.conf.erb +13 -0
- data/res/ssl_readme.md +38 -0
- metadata +120 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: c057247f40ac8eebc9e1bde644bedfcf7a9338cb9c80471af1e8d56ee954e7a0
|
|
4
|
+
data.tar.gz: c6ce6e5d1cfbc526c7defe8d14fd16498704d312ced37690dbf7e989fcce6a92
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: b394d86ef2a30f556f9c5a9af6c1b2790851d0b89fad7bf33ffe323c6ae897dff14a3893d8f8c405ac9355b40e0119fc7ec5c68530ae7b6ea4353c46525abec3
|
|
7
|
+
data.tar.gz: 435eea713db36bf56e04fcd11ed0d17a62a36ebccf0f9bc47de696ea35e6c446442edac3ad442fa888ff7df1748439182503dc77dd619f9bc66873404b60b547
|
data/.gitattributes
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
# raise PRs for gem updates
|
|
4
|
+
- package-ecosystem: bundler
|
|
5
|
+
directory: "/"
|
|
6
|
+
schedule:
|
|
7
|
+
interval: daily
|
|
8
|
+
time: "13:00"
|
|
9
|
+
open-pull-requests-limit: 10
|
|
10
|
+
|
|
11
|
+
# Maintain dependencies for GitHub Actions
|
|
12
|
+
- package-ecosystem: github-actions
|
|
13
|
+
directory: "/"
|
|
14
|
+
schedule:
|
|
15
|
+
interval: daily
|
|
16
|
+
time: "13:00"
|
|
17
|
+
open-pull-requests-limit: 10
|
data/.github/labeler.yml
ADDED
data/.github/release.yml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
|
|
3
|
+
|
|
4
|
+
changelog:
|
|
5
|
+
exclude:
|
|
6
|
+
labels:
|
|
7
|
+
- duplicate
|
|
8
|
+
- invalid
|
|
9
|
+
- modulesync
|
|
10
|
+
- question
|
|
11
|
+
- skip-changelog
|
|
12
|
+
- wont-fix
|
|
13
|
+
- wontfix
|
|
14
|
+
- github_actions
|
|
15
|
+
|
|
16
|
+
categories:
|
|
17
|
+
- title: Breaking Changes 🛠
|
|
18
|
+
labels:
|
|
19
|
+
- backwards-incompatible
|
|
20
|
+
|
|
21
|
+
- title: New Features 🎉
|
|
22
|
+
labels:
|
|
23
|
+
- enhancement
|
|
24
|
+
|
|
25
|
+
- title: Bug Fixes 🐛
|
|
26
|
+
labels:
|
|
27
|
+
- bug
|
|
28
|
+
|
|
29
|
+
- title: Documentation Updates 📚
|
|
30
|
+
labels:
|
|
31
|
+
- documentation
|
|
32
|
+
- docs
|
|
33
|
+
|
|
34
|
+
- title: Dependency Updates ⬆️
|
|
35
|
+
labels:
|
|
36
|
+
- dependencies
|
|
37
|
+
|
|
38
|
+
- title: Other Changes
|
|
39
|
+
labels:
|
|
40
|
+
- "*"
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
- "macos-latest"
|
|
31
|
+
- "ubuntu-24.04-arm"
|
|
32
|
+
# NOTE: windows-latest is a separate, bespoke job below, not part of this
|
|
33
|
+
# matrix -- see that job for why.
|
|
34
|
+
name: "spec (${{ matrix.runs_on }} ruby ${{ matrix.ruby_version }} | puppet ${{ matrix.puppet_gem_version }})"
|
|
35
|
+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
|
|
36
|
+
secrets: "inherit"
|
|
37
|
+
with:
|
|
38
|
+
rake_task: "full_tests"
|
|
39
|
+
ruby_version: ${{ matrix.ruby_version }}
|
|
40
|
+
puppet_gem_version: ${{ matrix.puppet_gem_version }}
|
|
41
|
+
runs_on: ${{ matrix.runs_on }}
|
|
42
|
+
|
|
43
|
+
spec-windows:
|
|
44
|
+
strategy:
|
|
45
|
+
fail-fast: false
|
|
46
|
+
matrix:
|
|
47
|
+
ruby_version:
|
|
48
|
+
- "3.2"
|
|
49
|
+
- "4.0"
|
|
50
|
+
include:
|
|
51
|
+
- ruby_version: "3.2"
|
|
52
|
+
puppet_gem_version: "~> 8.0"
|
|
53
|
+
- ruby_version: "4.0"
|
|
54
|
+
puppet_gem_version: "~> 9.0"
|
|
55
|
+
name: "spec (windows-latest ruby ${{ matrix.ruby_version }} | puppet ${{ matrix.puppet_gem_version }})"
|
|
56
|
+
runs-on: "windows-latest"
|
|
57
|
+
env:
|
|
58
|
+
PUPPET_GEM_VERSION: ${{ matrix.puppet_gem_version }}
|
|
59
|
+
PUPPET_FORGE_TOKEN: ${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}
|
|
60
|
+
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}"
|
|
61
|
+
steps:
|
|
62
|
+
- uses: "actions/checkout@v4"
|
|
63
|
+
- uses: "ruby/setup-ruby@v1"
|
|
64
|
+
with:
|
|
65
|
+
ruby-version: ${{ matrix.ruby_version }}
|
|
66
|
+
bundler-cache: true
|
|
67
|
+
- name: "Enable Windows long paths"
|
|
68
|
+
run: |
|
|
69
|
+
Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -value 1
|
|
70
|
+
git config --global core.longpaths true
|
|
71
|
+
- name: "rubocop"
|
|
72
|
+
run: bundle exec rubocop --format github
|
|
73
|
+
- name: "spec"
|
|
74
|
+
run: bundle exec rake full_tests
|
|
75
|
+
|
|
76
|
+
build:
|
|
77
|
+
needs: "spec"
|
|
78
|
+
runs-on: "ubuntu-latest"
|
|
79
|
+
name: "Verify gem builds"
|
|
80
|
+
steps:
|
|
81
|
+
- uses: "actions/checkout@v4"
|
|
82
|
+
- uses: "ruby/setup-ruby@v1"
|
|
83
|
+
with:
|
|
84
|
+
ruby-version: "3.4"
|
|
85
|
+
bundler-cache: true
|
|
86
|
+
- name: "Verify gem builds"
|
|
87
|
+
run: "gem build --strict --verbose *.gemspec"
|
|
88
|
+
|
|
89
|
+
tests:
|
|
90
|
+
needs:
|
|
91
|
+
- "spec"
|
|
92
|
+
- "spec-windows"
|
|
93
|
+
- "build"
|
|
94
|
+
runs-on: "ubuntu-latest"
|
|
95
|
+
name: "Test suite"
|
|
96
|
+
steps:
|
|
97
|
+
- run: "echo Test suite completed"
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
- "macos-latest"
|
|
24
|
+
- "ubuntu-24.04-arm"
|
|
25
|
+
# See ci.yml's spec-windows job for why windows-latest isn't in this matrix.
|
|
26
|
+
name: "spec (${{ matrix.runs_on }} ruby ${{ matrix.ruby_version }} | puppet ${{ matrix.puppet_gem_version }})"
|
|
27
|
+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
|
|
28
|
+
secrets: "inherit"
|
|
29
|
+
with:
|
|
30
|
+
rake_task: "full_tests"
|
|
31
|
+
ruby_version: ${{ matrix.ruby_version }}
|
|
32
|
+
puppet_gem_version: ${{ matrix.puppet_gem_version }}
|
|
33
|
+
runs_on: ${{ matrix.runs_on }}
|
|
34
|
+
|
|
35
|
+
spec-windows:
|
|
36
|
+
strategy:
|
|
37
|
+
fail-fast: false
|
|
38
|
+
matrix:
|
|
39
|
+
ruby_version:
|
|
40
|
+
- "3.2"
|
|
41
|
+
- "4.0"
|
|
42
|
+
include:
|
|
43
|
+
- ruby_version: "3.2"
|
|
44
|
+
puppet_gem_version: "~> 8.0"
|
|
45
|
+
- ruby_version: "4.0"
|
|
46
|
+
puppet_gem_version: "~> 9.0"
|
|
47
|
+
name: "spec (windows-latest ruby ${{ matrix.ruby_version }} | puppet ${{ matrix.puppet_gem_version }})"
|
|
48
|
+
runs-on: "windows-latest"
|
|
49
|
+
env:
|
|
50
|
+
PUPPET_GEM_VERSION: ${{ matrix.puppet_gem_version }}
|
|
51
|
+
PUPPET_FORGE_TOKEN: ${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}
|
|
52
|
+
BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}"
|
|
53
|
+
steps:
|
|
54
|
+
- uses: "actions/checkout@v4"
|
|
55
|
+
- uses: "ruby/setup-ruby@v1"
|
|
56
|
+
with:
|
|
57
|
+
ruby-version: ${{ matrix.ruby_version }}
|
|
58
|
+
bundler-cache: true
|
|
59
|
+
- name: "Enable Windows long paths"
|
|
60
|
+
run: |
|
|
61
|
+
Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -value 1
|
|
62
|
+
git config --global core.longpaths true
|
|
63
|
+
- name: "rubocop"
|
|
64
|
+
run: bundle exec rubocop --format github
|
|
65
|
+
- name: "spec"
|
|
66
|
+
run: bundle exec rake full_tests
|
|
@@ -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.event.inputs.version }}"
|
|
20
|
+
secrets: "inherit"
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
inherit_from: .rubocop_todo.yml
|
|
3
|
+
|
|
4
|
+
AllCops:
|
|
5
|
+
NewCops: enable
|
|
6
|
+
DisplayCopNames: true
|
|
7
|
+
ExtraDetails: true
|
|
8
|
+
DisplayStyleGuide: true
|
|
9
|
+
TargetRubyVersion: 3.2
|
|
10
|
+
Exclude:
|
|
11
|
+
- vendor/**/*
|
|
12
|
+
- .vendor/**/*
|
|
13
|
+
|
|
14
|
+
# .gitattributes forces LF line endings everywhere, including Windows.
|
|
15
|
+
# The default EnforcedStyle is "native", which demands CRLF on Windows --
|
|
16
|
+
# that's incompatible with this repo's own LF-everywhere policy.
|
|
17
|
+
Layout/EndOfLine:
|
|
18
|
+
EnforcedStyle: lf
|
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
|
|
3
|
+
# using RuboCop version 1.91.0.
|
|
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
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
11
|
+
Gemspec/RequireMFA:
|
|
12
|
+
Exclude:
|
|
13
|
+
- 'puppetlabs-onceover-lookup.gemspec'
|
|
14
|
+
|
|
15
|
+
# Offense count: 1
|
|
16
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
17
|
+
Layout/EmptyLineAfterGuardClause:
|
|
18
|
+
Exclude:
|
|
19
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
20
|
+
|
|
21
|
+
# Offense count: 1
|
|
22
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
23
|
+
# Configuration parameters: NumberOfEmptyLines.
|
|
24
|
+
Layout/EmptyLineAfterMagicComment:
|
|
25
|
+
Exclude:
|
|
26
|
+
- 'puppetlabs-onceover-lookup.gemspec'
|
|
27
|
+
|
|
28
|
+
# Offense count: 2
|
|
29
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
30
|
+
# Configuration parameters: EnforcedStyle.
|
|
31
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
|
32
|
+
Layout/EmptyLinesAroundClassBody:
|
|
33
|
+
Exclude:
|
|
34
|
+
- 'lib/puppetlabs-onceover/lookup/cli.rb'
|
|
35
|
+
|
|
36
|
+
# Offense count: 2
|
|
37
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
38
|
+
Layout/HeredocIndentation:
|
|
39
|
+
Exclude:
|
|
40
|
+
- 'lib/puppetlabs-onceover/lookup/cli.rb'
|
|
41
|
+
|
|
42
|
+
# Offense count: 5
|
|
43
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
44
|
+
Layout/SpaceAfterNot:
|
|
45
|
+
Exclude:
|
|
46
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
47
|
+
|
|
48
|
+
# Offense count: 2
|
|
49
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
50
|
+
Lint/ErbNewArguments:
|
|
51
|
+
Exclude:
|
|
52
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
53
|
+
|
|
54
|
+
# Offense count: 2
|
|
55
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
56
|
+
Lint/NonAtomicFileOperation:
|
|
57
|
+
Exclude:
|
|
58
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
59
|
+
|
|
60
|
+
# Offense count: 5
|
|
61
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
62
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
63
|
+
Lint/UnusedBlockArgument:
|
|
64
|
+
Exclude:
|
|
65
|
+
- 'lib/puppetlabs-onceover/lookup/cli.rb'
|
|
66
|
+
|
|
67
|
+
# Offense count: 1
|
|
68
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
69
|
+
Lint/UselessAssignment:
|
|
70
|
+
Exclude:
|
|
71
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
72
|
+
|
|
73
|
+
# Offense count: 2
|
|
74
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
75
|
+
Metrics/AbcSize:
|
|
76
|
+
Max: 32
|
|
77
|
+
|
|
78
|
+
# Offense count: 2
|
|
79
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
80
|
+
# AllowedMethods: refine
|
|
81
|
+
Metrics/BlockLength:
|
|
82
|
+
Max: 121
|
|
83
|
+
|
|
84
|
+
# Offense count: 1
|
|
85
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
86
|
+
Metrics/CyclomaticComplexity:
|
|
87
|
+
Max: 8
|
|
88
|
+
|
|
89
|
+
# Offense count: 4
|
|
90
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
91
|
+
Metrics/MethodLength:
|
|
92
|
+
Max: 36
|
|
93
|
+
|
|
94
|
+
# Offense count: 1
|
|
95
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
96
|
+
Metrics/PerceivedComplexity:
|
|
97
|
+
Max: 10
|
|
98
|
+
|
|
99
|
+
# Offense count: 2
|
|
100
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
101
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
102
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
103
|
+
Naming/MemoizedInstanceVariableName:
|
|
104
|
+
Exclude:
|
|
105
|
+
- 'lib/puppetlabs-onceover/lookup/cli.rb'
|
|
106
|
+
|
|
107
|
+
# Offense count: 4
|
|
108
|
+
# Configuration parameters: AllowedConstants.
|
|
109
|
+
Style/Documentation:
|
|
110
|
+
Exclude:
|
|
111
|
+
- 'spec/**/*'
|
|
112
|
+
- 'test/**/*'
|
|
113
|
+
- 'lib/puppetlabs-onceover/lookup.rb'
|
|
114
|
+
- 'lib/puppetlabs-onceover/lookup/cli.rb'
|
|
115
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
116
|
+
|
|
117
|
+
# Offense count: 1
|
|
118
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
119
|
+
Style/Encoding:
|
|
120
|
+
Exclude:
|
|
121
|
+
- 'puppetlabs-onceover-lookup.gemspec'
|
|
122
|
+
|
|
123
|
+
# Offense count: 1
|
|
124
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
125
|
+
Style/ExpandPathArguments:
|
|
126
|
+
Exclude:
|
|
127
|
+
- 'puppetlabs-onceover-lookup.gemspec'
|
|
128
|
+
|
|
129
|
+
# Offense count: 1
|
|
130
|
+
Style/FileOpen:
|
|
131
|
+
Exclude:
|
|
132
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
133
|
+
|
|
134
|
+
# Offense count: 10
|
|
135
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
136
|
+
# Configuration parameters: EnforcedStyle.
|
|
137
|
+
# SupportedStyles: always, always_true, never
|
|
138
|
+
Style/FrozenStringLiteralComment:
|
|
139
|
+
Exclude:
|
|
140
|
+
- '**/*.arb'
|
|
141
|
+
- 'Gemfile'
|
|
142
|
+
- 'Rakefile'
|
|
143
|
+
- 'bin/console'
|
|
144
|
+
- 'lib/puppetlabs-onceover/lookup.rb'
|
|
145
|
+
- 'lib/puppetlabs-onceover/lookup/cli.rb'
|
|
146
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
147
|
+
- 'lib/puppetlabs-onceover/lookup/version.rb'
|
|
148
|
+
- 'puppetlabs-onceover-lookup.gemspec'
|
|
149
|
+
- 'spec/puppetlabs-onceover/lookup_spec.rb'
|
|
150
|
+
- 'spec/spec_helper.rb'
|
|
151
|
+
|
|
152
|
+
# Offense count: 3
|
|
153
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
154
|
+
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
155
|
+
Style/GuardClause:
|
|
156
|
+
Exclude:
|
|
157
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
158
|
+
|
|
159
|
+
# Offense count: 1
|
|
160
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
161
|
+
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
162
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
163
|
+
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
|
|
164
|
+
Style/HashSyntax:
|
|
165
|
+
Exclude:
|
|
166
|
+
- 'Rakefile'
|
|
167
|
+
|
|
168
|
+
# Offense count: 3
|
|
169
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
170
|
+
Style/IfUnlessModifier:
|
|
171
|
+
Exclude:
|
|
172
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
173
|
+
|
|
174
|
+
# Offense count: 4
|
|
175
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
176
|
+
# Configuration parameters: EnforcedStyle, Recursive.
|
|
177
|
+
# SupportedStyles: literals, strict
|
|
178
|
+
Style/MutableConstant:
|
|
179
|
+
Exclude:
|
|
180
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
181
|
+
- 'lib/puppetlabs-onceover/lookup/version.rb'
|
|
182
|
+
|
|
183
|
+
# Offense count: 5
|
|
184
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
185
|
+
# Configuration parameters: EnforcedStyle.
|
|
186
|
+
# SupportedStyles: both, prefix, postfix
|
|
187
|
+
Style/NegatedIf:
|
|
188
|
+
Exclude:
|
|
189
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
190
|
+
|
|
191
|
+
# Offense count: 1
|
|
192
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
193
|
+
# Configuration parameters: PreferredDelimiters.
|
|
194
|
+
Style/PercentLiteralDelimiters:
|
|
195
|
+
Exclude:
|
|
196
|
+
- 'puppetlabs-onceover-lookup.gemspec'
|
|
197
|
+
|
|
198
|
+
# Offense count: 1
|
|
199
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
200
|
+
Style/RedundantPercentQ:
|
|
201
|
+
Exclude:
|
|
202
|
+
- 'puppetlabs-onceover-lookup.gemspec'
|
|
203
|
+
|
|
204
|
+
# Offense count: 1
|
|
205
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
206
|
+
Style/SelectByRegexp:
|
|
207
|
+
Exclude:
|
|
208
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
209
|
+
|
|
210
|
+
# Offense count: 52
|
|
211
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
212
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
213
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
214
|
+
Style/StringLiterals:
|
|
215
|
+
Exclude:
|
|
216
|
+
- 'Rakefile'
|
|
217
|
+
- 'bin/console'
|
|
218
|
+
- 'lib/puppetlabs-onceover/lookup.rb'
|
|
219
|
+
- 'lib/puppetlabs-onceover/lookup/cli.rb'
|
|
220
|
+
- 'lib/puppetlabs-onceover/lookup/lookup.rb'
|
|
221
|
+
- 'lib/puppetlabs-onceover/lookup/version.rb'
|
|
222
|
+
- 'puppetlabs-onceover-lookup.gemspec'
|
|
223
|
+
- 'spec/puppetlabs-onceover/lookup_spec.rb'
|
|
224
|
+
- 'spec/spec_helper.rb'
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
## [v0.1.2](https://github.com/puppetlabs/puppetlabs-onceover-lookup/tree/v0.1.2) - 2026-09-14
|
|
9
|
+
|
|
10
|
+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-onceover-lookup/compare/v0.1.1...v0.1.2)
|
|
11
|
+
|
|
12
|
+
### Other
|
|
13
|
+
|
|
14
|
+
- Pin facter to the same Puppetcore source as puppet [#6](https://github.com/puppetlabs/puppetlabs-onceover-lookup/pull/6) ([actowery](https://github.com/actowery))
|
|
15
|
+
- Backport governance/CI parity gaps found vs puppetlabs-onceover-octocatalog-diff [#5](https://github.com/puppetlabs/puppetlabs-onceover-lookup/pull/5) ([actowery](https://github.com/actowery))
|
|
16
|
+
- Add CHANGELOG.md, changelog rake task, and real test coverage [#4](https://github.com/puppetlabs/puppetlabs-onceover-lookup/pull/4) ([actowery](https://github.com/actowery))
|
|
17
|
+
- Rename gem identity, namespace, and CLI hook to PuppetlabsOnceover::Lookup (CAT-2829, CAT-2830, CAT-2831) [#3](https://github.com/puppetlabs/puppetlabs-onceover-lookup/pull/3) ([actowery](https://github.com/actowery))
|
|
18
|
+
- Migrate to shared CI/release workflows, get the fork green (CAT-2828) [#2](https://github.com/puppetlabs/puppetlabs-onceover-lookup/pull/2) ([actowery](https://github.com/actowery))
|
|
19
|
+
- Add CODEOWNERS for puppetlabs/devx [#1](https://github.com/puppetlabs/puppetlabs-onceover-lookup/pull/1) ([actowery](https://github.com/actowery))
|
|
20
|
+
|
|
21
|
+
## [v0.1.1](https://github.com/puppetlabs/puppetlabs-onceover-lookup/tree/v0.1.1) - 2018-12-10
|
|
22
|
+
|
|
23
|
+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-onceover-lookup/compare/v0.1.0...v0.1.1)
|
|
24
|
+
|
|
25
|
+
## [v0.1.0](https://github.com/puppetlabs/puppetlabs-onceover-lookup/tree/v0.1.0) - 2018-11-13
|
|
26
|
+
|
|
27
|
+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-onceover-lookup/compare/7495f4207f17e6d6bba7798686d8a0f654ebab32...v0.1.0)
|
data/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @puppetlabs/devx
|
data/Gemfile
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# For puppetcore, set GEM_SOURCE_PUPPETCORE = 'https://rubygems-puppetcore.puppet.com'
|
|
2
|
+
gemsource_default = ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
|
3
|
+
gemsource_puppetcore = if ENV['GEM_SOURCE']
|
|
4
|
+
gemsource_default
|
|
5
|
+
elsif ENV['PUPPET_FORGE_TOKEN'] && !ENV['PUPPET_FORGE_TOKEN'].empty?
|
|
6
|
+
'https://rubygems-puppetcore.puppet.com'
|
|
7
|
+
else
|
|
8
|
+
ENV['GEM_SOURCE_PUPPETCORE'] || gemsource_default
|
|
9
|
+
end
|
|
10
|
+
source gemsource_default
|
|
11
|
+
|
|
12
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
13
|
+
|
|
14
|
+
# Specify your gem's dependencies in onceover-lookup.gemspec
|
|
15
|
+
gemspec
|
|
16
|
+
|
|
17
|
+
# Route through gemsource_puppetcore so CI can resolve puppet ~> 9.0 from the
|
|
18
|
+
# private Puppetcore registry (public rubygems.org tops out at puppet 8.10.0).
|
|
19
|
+
# When PUPPET_FORGE_TOKEN is unset (e.g. fork PRs, local dev without a token),
|
|
20
|
+
# gemsource_puppetcore falls through to gemsource_default (public rubygems.org)
|
|
21
|
+
# and no auth is attempted against Puppetcore.
|
|
22
|
+
gem 'puppet', ENV['PUPPET_GEM_VERSION'] || '~> 8', source: gemsource_puppetcore
|
|
23
|
+
|
|
24
|
+
# facter is a runtime dependency of puppet, but pinning `puppet`'s own source
|
|
25
|
+
# does NOT pin its transitive dependencies to that same source -- bundler
|
|
26
|
+
# still resolves facter from whichever source(s) declare it, so without this
|
|
27
|
+
# explicit pin facter would silently keep resolving from public rubygems.org
|
|
28
|
+
# (built from the public facter repo) even when puppet itself correctly comes
|
|
29
|
+
# from Puppetcore (built from the private facter-private source). Pin it
|
|
30
|
+
# explicitly so both come from the same place.
|
|
31
|
+
gem 'facter', source: gemsource_puppetcore
|
|
32
|
+
|
|
33
|
+
# Windows platform runtime deps. The published puppet/onceover rubygems.org
|
|
34
|
+
# artefacts are built on Linux and guard `ffi` / `win32ole` with build-host
|
|
35
|
+
# platform checks, so those deps never make it into the Linux-published
|
|
36
|
+
# artefact. Ruby 3.4+ removed win32ole from default gems, making the missing
|
|
37
|
+
# declaration fatal at require-time on Windows. Declaring them here in the
|
|
38
|
+
# Gemfile is evaluated on the install host at bundle time, so bundler pulls
|
|
39
|
+
# them on Windows only.
|
|
40
|
+
platforms :mingw, :x64_mingw, :mswin do
|
|
41
|
+
gem 'ffi', '>= 1.15.5', '< 1.17.0', '!= 1.16.0', '!= 1.16.1', '!= 1.16.2'
|
|
42
|
+
gem 'win32ole', '>= 1.8', '< 2.0'
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Puppet on Ruby 3.3 / 3.4 has some missing dependencies
|
|
46
|
+
gem 'syslog', '~> 0.3' if RUBY_VERSION >= '3.4'
|
|
47
|
+
|
|
48
|
+
group :development do
|
|
49
|
+
gem 'rubocop'
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
group :test do
|
|
53
|
+
gem 'simplecov', require: false
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
group :release, optional: true do
|
|
57
|
+
gem 'faraday-retry', '~> 2.1', require: false
|
|
58
|
+
gem 'github_changelog_generator', '~> 1.18', require: false
|
|
59
|
+
end
|