puppet-lint-lookup_in_parameter-check 2.0.0 → 3.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: 293087673f08d7e9d2fa3532a16c30cbb0f657d598911427eaf2e439801d2898
4
- data.tar.gz: dbb528ac933229b6a606e2000902db34fa6e623e8b44bfa8ec2c0bacc3e83928
3
+ metadata.gz: 757e3577a9837790b2d55071d6daa2efaacabd586965b0bb02835ddef33c776b
4
+ data.tar.gz: ac27ebad28cee661397cdb786f523a384f200559004778b5b73d11b13c452893
5
5
  SHA512:
6
- metadata.gz: 5fb5502e3aab6991586eabf0b016453d0b343eb230d57cc27ff11be139dd5ee9e42b1abc9528a0ad66cc58b63f4b550132a263795308ef25eb8f77d214a948c0
7
- data.tar.gz: 6c78cfc4d34f8c9c9d643aa05579317165f368e0d47a964d2a4608c316dd76bfdc094184ead67a5493b835210f965b3a4c157a7cc38606e304197d9e824a8f29
6
+ metadata.gz: 74c234d27c50d646149c3bb9bb0ddf8615f06a49e128b41195fdbbf62be74bd0722552d09ef33fbd3e8064ecb256815aa49149e8d38bd8036e85dd012e7d17d7
7
+ data.tar.gz: 56b25e9d44e11c63134de817b0469485f2a3202069fa47cdb14e5f87dd41f46fd3debedf6e779a99382bc7fde78ac4936485e80349fe775a013910d4a56b413e
@@ -0,0 +1,6 @@
1
+ ---
2
+ # Managed by modulesync - DO NOT EDIT
3
+ # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
4
+
5
+ skip-changelog:
6
+ - head-branch: ['^rel*']
@@ -0,0 +1,41 @@
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
+ - bugfix
29
+
30
+ - title: Documentation Updates 📚
31
+ labels:
32
+ - documentation
33
+ - docs
34
+
35
+ - title: Dependency Updates ⬆️
36
+ labels:
37
+ - dependencies
38
+
39
+ - title: Other Changes
40
+ labels:
41
+ - "*"
@@ -1,33 +1,106 @@
1
- name: Release
1
+ ---
2
+ name: Gem Release
2
3
 
3
4
  on:
4
5
  push:
5
6
  tags:
6
7
  - '*'
7
8
 
9
+ permissions: {}
10
+
8
11
  jobs:
9
- release:
10
- runs-on: ubuntu-latest
12
+ build-release:
13
+ # Prevent releases from forked repositories
11
14
  if: github.repository_owner == 'voxpupuli'
15
+ name: Build the gem
16
+ runs-on: ubuntu-24.04
12
17
  steps:
13
- - uses: actions/checkout@v3
14
- - name: Install Ruby 3.0
18
+ - uses: actions/checkout@v5
19
+ - name: Install Ruby
15
20
  uses: ruby/setup-ruby@v1
16
21
  with:
17
- ruby-version: '3.0'
18
- bundler: 'none'
19
- env:
20
- BUNDLE_WITHOUT: release:development:rubocop
22
+ ruby-version: 'ruby'
21
23
  - name: Build gem
22
- run: gem build --strict --verbose *.gemspec
24
+ shell: bash
25
+ run: gem build --verbose *.gemspec
26
+ - name: Upload gem to GitHub cache
27
+ uses: actions/upload-artifact@v4
28
+ with:
29
+ name: gem-artifact
30
+ path: '*.gem'
31
+ retention-days: 1
32
+ compression-level: 0
33
+
34
+ create-github-release:
35
+ needs: build-release
36
+ name: Create GitHub release
37
+ runs-on: ubuntu-24.04
38
+ permissions:
39
+ contents: write # clone repo and create release
40
+ steps:
41
+ - name: Download gem from GitHub cache
42
+ uses: actions/download-artifact@v5
43
+ with:
44
+ name: gem-artifact
45
+ - name: Create Release
46
+ shell: bash
47
+ env:
48
+ GH_TOKEN: ${{ github.token }}
49
+ run: gh release create --repo ${{ github.repository }} ${{ github.ref_name }} --generate-notes *.gem
50
+
51
+ release-to-github:
52
+ needs: build-release
53
+ name: Release to GitHub
54
+ runs-on: ubuntu-24.04
55
+ permissions:
56
+ packages: write # publish to rubygems.pkg.github.com
57
+ steps:
58
+ - name: Download gem from GitHub cache
59
+ uses: actions/download-artifact@v5
60
+ with:
61
+ name: gem-artifact
62
+ - name: Publish gem to GitHub packages
63
+ run: gem push --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
64
+ env:
65
+ GEM_HOST_API_KEY: ${{ secrets.GITHUB_TOKEN }}
66
+
67
+ release-to-rubygems:
68
+ needs: build-release
69
+ name: Release gem to rubygems.org
70
+ runs-on: ubuntu-24.04
71
+ environment: release # recommended by rubygems.org
72
+ permissions:
73
+ id-token: write # rubygems.org authentication
74
+ steps:
75
+ - name: Download gem from GitHub cache
76
+ uses: actions/download-artifact@v5
77
+ with:
78
+ name: gem-artifact
79
+ - uses: rubygems/configure-rubygems-credentials@v1.0.0
23
80
  - name: Publish gem to rubygems.org
81
+ shell: bash
24
82
  run: gem push *.gem
25
- env:
26
- GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
27
- - name: Setup GitHub packages access
83
+
84
+ release-verification:
85
+ name: Check that all releases are done
86
+ runs-on: ubuntu-24.04
87
+ permissions:
88
+ contents: read # minimal permissions that we have to grant
89
+ needs:
90
+ - create-github-release
91
+ - release-to-github
92
+ - release-to-rubygems
93
+ steps:
94
+ - name: Download gem from GitHub cache
95
+ uses: actions/download-artifact@v5
96
+ with:
97
+ name: gem-artifact
98
+ - name: Install Ruby
99
+ uses: ruby/setup-ruby@v1
100
+ with:
101
+ ruby-version: 'ruby'
102
+ - name: Wait for release to propagate
103
+ shell: bash
28
104
  run: |
29
- mkdir -p ~/.gem
30
- echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
31
- chmod 0600 ~/.gem/credentials
32
- - name: Publish gem to GitHub packages
33
- run: gem push --key github --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
105
+ gem install rubygems-await
106
+ gem await *.gem
@@ -1,3 +1,4 @@
1
+ ---
1
2
  name: Test
2
3
 
3
4
  on:
@@ -7,37 +8,36 @@ on:
7
8
  - master
8
9
  - main
9
10
 
10
- env:
11
- BUNDLE_WITHOUT: release
11
+ permissions:
12
+ contents: read
12
13
 
13
14
  jobs:
14
- rubocop:
15
- runs-on: ubuntu-latest
15
+ rubocop_and_matrix:
16
+ runs-on: ubuntu-24.04
17
+ outputs:
18
+ ruby: ${{ steps.ruby.outputs.versions }}
16
19
  steps:
17
- - uses: actions/checkout@v3
20
+ - uses: actions/checkout@v5
18
21
  - name: Setup ruby
19
22
  uses: ruby/setup-ruby@v1
20
23
  with:
21
- ruby-version: '3.0'
24
+ ruby-version: '3.3'
22
25
  bundler-cache: true
23
26
  - name: Run rake rubocop
24
27
  run: bundle exec rake rubocop
28
+ - id: ruby
29
+ uses: voxpupuli/ruby-version@v1
30
+
25
31
  test:
26
- runs-on: ubuntu-latest
32
+ runs-on: ubuntu-24.04
33
+ needs: rubocop_and_matrix
27
34
  strategy:
28
35
  fail-fast: false
29
36
  matrix:
30
- include:
31
- - ruby: "2.7"
32
- - ruby: "3.0"
33
- - ruby: "3.1"
34
- coverage: "yes"
35
- - ruby: "3.2"
36
- env:
37
- COVERAGE: ${{ matrix.coverage }}
37
+ ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
38
38
  name: Ruby ${{ matrix.ruby }}
39
39
  steps:
40
- - uses: actions/checkout@v3
40
+ - uses: actions/checkout@v5
41
41
  - name: Install Ruby ${{ matrix.ruby }}
42
42
  uses: ruby/setup-ruby@v1
43
43
  with:
@@ -47,11 +47,16 @@ jobs:
47
47
  run: bundle exec rake spec
48
48
  - name: Verify gem builds
49
49
  run: gem build --strict --verbose *.gemspec
50
+
50
51
  tests:
52
+ if: always()
51
53
  needs:
52
- - rubocop
54
+ - rubocop_and_matrix
53
55
  - test
54
- runs-on: ubuntu-latest
56
+ runs-on: ubuntu-24.04
55
57
  name: Test suite
56
58
  steps:
57
- - run: echo Test suite completed
59
+ - name: Decide whether the needed jobs succeeded or failed
60
+ uses: re-actors/alls-green@release/v1
61
+ with:
62
+ jobs: ${{ toJSON(needs) }}
data/.msync.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ # Managed by modulesync - DO NOT EDIT
3
+ # https://github.com/voxpupuli/puppet-lint_modulesync_configs
4
+ # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
5
+
6
+ modulesync_config_version: '2.0.0'
data/.rubocop.yml CHANGED
@@ -1,12 +1,14 @@
1
1
  ---
2
- inherit_from: .rubocop_todo.yml
3
-
4
2
  # Managed by modulesync - DO NOT EDIT
5
3
  # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
6
4
 
5
+ inherit_from: .rubocop_todo.yml
7
6
  inherit_gem:
8
7
  voxpupuli-rubocop: rubocop.yml
9
8
 
10
9
  Naming/FileName:
11
10
  Exclude:
12
11
  - "*.gemspec"
12
+
13
+ AllCops:
14
+ 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 2023-04-21 11:42:36 UTC using RuboCop version 1.50.2.
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
@@ -23,12 +23,3 @@ RSpec/DescribeClass:
23
23
  - '**/spec/system/**/*'
24
24
  - '**/spec/views/**/*'
25
25
  - 'spec/puppet-lint/plugins/lookup_in_parameter/lookup_in_parameter_spec.rb'
26
-
27
- # Offense count: 2
28
- # This cop supports unsafe autocorrection (--autocorrect-all).
29
- # Configuration parameters: EnforcedStyle.
30
- # SupportedStyles: always, always_true, never
31
- Style/FrozenStringLiteralComment:
32
- Exclude:
33
- - 'Gemfile'
34
- - 'Rakefile'
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [3.0.0](https://github.com/voxpupuli/puppet-lint-lookup_in_parameter-check/tree/3.0.0) (2025-09-25)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-lookup_in_parameter-check/compare/2.0.0...3.0.0)
8
+
9
+ **Breaking changes:**
10
+
11
+ - Require Ruby 3.2+ & puppet-lint 5.1+ [\#14](https://github.com/voxpupuli/puppet-lint-lookup_in_parameter-check/pull/14) ([bastelfreak](https://github.com/bastelfreak))
12
+
5
13
  ## [2.0.0](https://github.com/voxpupuli/puppet-lint-lookup_in_parameter-check/tree/2.0.0) (2023-04-21)
6
14
 
7
15
  [Full Changelog](https://github.com/voxpupuli/puppet-lint-lookup_in_parameter-check/compare/1.1.0...2.0.0)
data/Gemfile CHANGED
@@ -1,21 +1,18 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source ENV['GEM_SOURCE'] || 'https://rubygems.org'
2
4
 
3
5
  gemspec
4
6
 
5
- group :release do
7
+ group :release, optional: true do
6
8
  gem 'faraday-retry', '~> 2.1', require: false
7
9
  gem 'github_changelog_generator', '~> 1.16.4', require: false
8
10
  end
9
11
 
10
- group :coverage, optional: ENV['COVERAGE'] != 'yes' do
11
- gem 'codecov', require: false
12
- gem 'simplecov-console', require: false
13
- end
14
-
15
12
  group :development do
16
13
  gem 'rake', '~> 13.0', '>= 13.0.6'
17
14
  gem 'rspec', '~> 3.12'
18
15
  gem 'rspec-collection_matchers', '~> 1.2'
19
- gem 'rspec-its', '~> 1.3'
20
- gem 'voxpupuli-rubocop', '~> 1.1'
16
+ gem 'rspec-its', '>= 1.3', '< 3'
17
+ gem 'voxpupuli-rubocop', '~> 4.2.0'
21
18
  end
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rspec/core/rake_task'
2
4
 
3
5
  RSpec::Core::RakeTask.new(:spec)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'puppet-lint-lookup_in_parameter-check'
5
- spec.version = '2.0.0'
5
+ spec.version = '3.0.0'
6
6
  spec.authors = ['Romain Tartière', 'Vox Pupuli']
7
7
  spec.email = ['voxpupuli@groups.io']
8
8
 
@@ -11,7 +11,6 @@ Gem::Specification.new do |spec|
11
11
  spec.license = 'MIT'
12
12
 
13
13
  spec.metadata['homepage_uri'] = spec.homepage
14
- spec.metadata['source_code_uri'] = spec.homepage
15
14
  spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/main/CHANGELOG.md"
16
15
 
17
16
  # Specify which files should be added to the gem when it is released.
@@ -23,7 +22,7 @@ Gem::Specification.new do |spec|
23
22
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
24
23
  spec.require_paths = ['lib']
25
24
 
26
- spec.required_ruby_version = '>= 2.7.0'
25
+ spec.required_ruby_version = '>= 3.2'
27
26
 
28
- spec.add_dependency 'puppet-lint', '>= 3', '< 5'
27
+ spec.add_dependency 'puppet-lint', '~> 5.1'
29
28
  end
metadata CHANGED
@@ -1,37 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-lookup_in_parameter-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Romain Tartière
8
8
  - Vox Pupuli
9
- autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2023-04-21 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: puppet-lint
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - ">="
17
+ - - "~>"
19
18
  - !ruby/object:Gem::Version
20
- version: '3'
21
- - - "<"
22
- - !ruby/object:Gem::Version
23
- version: '5'
19
+ version: '5.1'
24
20
  type: :runtime
25
21
  prerelease: false
26
22
  version_requirements: !ruby/object:Gem::Requirement
27
23
  requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- version: '3'
31
- - - "<"
24
+ - - "~>"
32
25
  - !ruby/object:Gem::Version
33
- version: '5'
34
- description:
26
+ version: '5.1'
35
27
  email:
36
28
  - voxpupuli@groups.io
37
29
  executables: []
@@ -42,10 +34,12 @@ files:
42
34
  - ".github/ISSUE_TEMPLATE.md"
43
35
  - ".github/PULL_REQUEST_TEMPLATE.md"
44
36
  - ".github/SECURITY.md"
45
- - ".github/dependabot.yml"
37
+ - ".github/labeler.yml"
38
+ - ".github/release.yml"
46
39
  - ".github/workflows/release.yml"
47
40
  - ".github/workflows/test.yml"
48
41
  - ".gitignore"
42
+ - ".msync.yml"
49
43
  - ".rspec"
50
44
  - ".rubocop.yml"
51
45
  - ".rubocop_todo.yml"
@@ -64,9 +58,7 @@ licenses:
64
58
  - MIT
65
59
  metadata:
66
60
  homepage_uri: https://github.com/voxpupuli/puppet-lint-lookup_in_parameter-check
67
- source_code_uri: https://github.com/voxpupuli/puppet-lint-lookup_in_parameter-check
68
61
  changelog_uri: https://github.com/voxpupuli/puppet-lint-lookup_in_parameter-check/blob/main/CHANGELOG.md
69
- post_install_message:
70
62
  rdoc_options: []
71
63
  require_paths:
72
64
  - lib
@@ -74,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
66
  requirements:
75
67
  - - ">="
76
68
  - !ruby/object:Gem::Version
77
- version: 2.7.0
69
+ version: '3.2'
78
70
  required_rubygems_version: !ruby/object:Gem::Requirement
79
71
  requirements:
80
72
  - - ">="
81
73
  - !ruby/object:Gem::Version
82
74
  version: '0'
83
75
  requirements: []
84
- rubygems_version: 3.2.33
85
- signing_key:
76
+ rubygems_version: 3.6.9
86
77
  specification_version: 4
87
78
  summary: Check lookup is not used in parameters
88
79
  test_files: []
@@ -1,17 +0,0 @@
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