voxpupuli-release 3.2.3 → 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: fd46d60b9b0457b023ffffdb9d32e5b89130009ef629225c8cef5ef5a2d3ef05
4
- data.tar.gz: c78b834ae2d8359f84656fbc2f1fce5ecb7d4193b5081eea36fa90a54024e138
3
+ metadata.gz: d83057c199c6174f700959cb0e855661c7dbc28324f8f56bd2ab1461a762a0de
4
+ data.tar.gz: 5e45660cda84bceac73ad164aef002ac49c3b25d8c06cd815477103c5d83ef7f
5
5
  SHA512:
6
- metadata.gz: c9bfa217dc31df182376717678d6159b94b9ebf4bda9813215b495380b203cea2db33c755717351a0a6a5707963e2dc99ceb9f624c2fe9934e55b2cbea9a159d
7
- data.tar.gz: bf1ccba08ab46e43d4c03ee496d71c5ad7dbbac569193ea267290c93180dd0cf3a7a0ad07b32f33674527715c36d3bdfa26aaad8f80880e8b5e3dd24d90535d1
6
+ metadata.gz: 4e668b233809c22f9f0597740636619bff30c5a521eb7c8f65d0914c78e8779d1e0a63a1791a6844d1cd1777087989016fc543d8485e17200c01f3fe304b1c51
7
+ data.tar.gz: a6a98b1c792b8e884c1eac0c6ecd3206512d57dd0571081f4f6db3d64f6734c981a393d352cb145980c9a54ed18f51099871894287fd1ca1ab5eee16c3983d15
@@ -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,4 +1,5 @@
1
- name: Release
1
+ ---
2
+ name: Gem Release
2
3
 
3
4
  on:
4
5
  push:
@@ -6,27 +7,95 @@ on:
6
7
  - '*'
7
8
 
8
9
  jobs:
9
- release:
10
- runs-on: ubuntu-latest
10
+ build-release:
11
+ # Prevent releases from forked repositories
11
12
  if: github.repository_owner == 'voxpupuli'
13
+ name: Build the gem
14
+ runs-on: ubuntu-24.04
15
+ permissions:
16
+ contents: write # clone repo and create release
12
17
  steps:
13
- - uses: actions/checkout@v4
14
- - name: Install Ruby 3.3
18
+ - uses: actions/checkout@v5
19
+ - name: Install Ruby
15
20
  uses: ruby/setup-ruby@v1
16
21
  with:
17
- ruby-version: '3.3'
18
- env:
19
- BUNDLE_WITHOUT: release
22
+ ruby-version: 'ruby'
20
23
  - name: Build gem
21
- run: gem build --strict --verbose *.gemspec
22
- - name: Publish gem to rubygems.org
23
- run: gem push *.gem
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
+ - name: Create Release Page
34
+ shell: bash
35
+ env:
36
+ GH_TOKEN: ${{ github.token }}
37
+ run: gh release create ${{ github.ref_name }} --generate-notes
38
+ - name: Attach gem to GitHub Release
39
+ shell: bash
24
40
  env:
25
- GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
41
+ GH_TOKEN: ${{ github.token }}
42
+ run: gh release upload ${{ github.ref_name }} *.gem
43
+
44
+ release-to-github:
45
+ needs: build-release
46
+ name: Release to GitHub
47
+ runs-on: ubuntu-24.04
48
+ permissions:
49
+ packages: write # publish to rubygems.pkg.github.com
50
+ steps:
51
+ - name: Download gem from GitHub cache
52
+ uses: actions/download-artifact@v5
53
+ with:
54
+ name: gem-artifact
26
55
  - name: Setup GitHub packages access
27
56
  run: |
28
57
  mkdir -p ~/.gem
29
58
  echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
30
59
  chmod 0600 ~/.gem/credentials
31
60
  - name: Publish gem to GitHub packages
32
- run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
61
+ run: gem push --key github --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
62
+
63
+ release-to-rubygems:
64
+ needs: build-release
65
+ name: Release gem to rubygems.org
66
+ runs-on: ubuntu-24.04
67
+ environment: release # recommended by rubygems.org
68
+ permissions:
69
+ id-token: write # rubygems.org authentication
70
+ steps:
71
+ - name: Download gem from GitHub cache
72
+ uses: actions/download-artifact@v5
73
+ with:
74
+ name: gem-artifact
75
+ - uses: rubygems/configure-rubygems-credentials@v1.0.0
76
+ - name: Publish gem to rubygems.org
77
+ shell: bash
78
+ run: gem push *.gem
79
+
80
+ release-verification:
81
+ name: Check that all releases are done
82
+ runs-on: ubuntu-24.04
83
+ permissions:
84
+ contents: read # minimal permissions that we have to grant
85
+ needs:
86
+ - release-to-github
87
+ - release-to-rubygems
88
+ steps:
89
+ - name: Download gem from GitHub cache
90
+ uses: actions/download-artifact@v5
91
+ with:
92
+ name: gem-artifact
93
+ - name: Install Ruby
94
+ uses: ruby/setup-ruby@v1
95
+ with:
96
+ ruby-version: 'ruby'
97
+ - name: Wait for release to propagate
98
+ shell: bash
99
+ run: |
100
+ gem install rubygems-await
101
+ gem await *.gem
@@ -1,3 +1,4 @@
1
+ ---
1
2
  name: Test
2
3
 
3
4
  on:
@@ -6,35 +7,38 @@ on:
6
7
  branches:
7
8
  - master
8
9
 
10
+ permissions:
11
+ contents: read # minimal permissions that we have to grant
12
+
9
13
  env:
10
14
  BUNDLE_WITHOUT: release
11
15
 
12
16
  jobs:
13
- rubocop:
14
- runs-on: ubuntu-latest
17
+ rubocop_and_matrix:
18
+ runs-on: ubuntu-24.04
19
+ outputs:
20
+ ruby: ${{ steps.ruby.outputs.versions }}
15
21
  steps:
16
- - uses: actions/checkout@v4
22
+ - uses: actions/checkout@v5
17
23
  - name: Install Ruby ${{ matrix.ruby }}
18
24
  uses: ruby/setup-ruby@v1
19
25
  with:
20
- ruby-version: "3.3"
26
+ ruby-version: "3.4"
21
27
  bundler-cache: true
22
28
  - name: Run Rubocop
23
29
  run: bundle exec rake rubocop
30
+ - id: ruby
31
+ uses: voxpupuli/ruby-version@v1
24
32
  test:
25
- runs-on: ubuntu-latest
33
+ needs: rubocop_and_matrix
34
+ runs-on: ubuntu-24.04
26
35
  strategy:
27
36
  fail-fast: false
28
37
  matrix:
29
- ruby:
30
- - "2.7"
31
- - "3.0"
32
- - "3.1"
33
- - "3.2"
34
- - "3.3"
38
+ ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
35
39
  name: Ruby ${{ matrix.ruby }}
36
40
  steps:
37
- - uses: actions/checkout@v4
41
+ - uses: actions/checkout@v5
38
42
  - name: Install Ruby ${{ matrix.ruby }}
39
43
  uses: ruby/setup-ruby@v1
40
44
  with:
@@ -49,9 +53,9 @@ jobs:
49
53
 
50
54
  tests:
51
55
  needs:
52
- - rubocop
56
+ - rubocop_and_matrix
53
57
  - test
54
- runs-on: ubuntu-latest
58
+ runs-on: ubuntu-24.04
55
59
  name: Test suite
56
60
  steps:
57
61
  - run: echo Test suite completed
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 2023-10-05 19:25:42 UTC using RuboCop version 1.54.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
@@ -16,7 +16,7 @@ Style/Documentation:
16
16
 
17
17
  # Offense count: 1
18
18
  # This cop supports safe autocorrection (--autocorrect).
19
- # Configuration parameters: EnforcedStyle, AllowComments.
19
+ # Configuration parameters: AutoCorrect, EnforcedStyle, AllowComments.
20
20
  # SupportedStyles: empty, nil, both
21
21
  Style/EmptyElse:
22
22
  Exclude:
@@ -24,7 +24,7 @@ Style/EmptyElse:
24
24
 
25
25
  # Offense count: 1
26
26
  # This cop supports safe autocorrection (--autocorrect).
27
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
27
+ # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
28
28
  # URISchemes: http, https
29
29
  Layout/LineLength:
30
30
  Max: 128
data/CHANGELOG.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [v5.0.0](https://github.com/voxpupuli/voxpupuli-release/tree/v5.0.0) (2025-09-26)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v4.0.0...v5.0.0)
8
+
9
+ **Breaking changes:**
10
+
11
+ - Require Ruby 3.2+ [\#88](https://github.com/voxpupuli/voxpupuli-release/pull/88) ([bastelfreak](https://github.com/bastelfreak))
12
+
13
+ **Implemented enhancements:**
14
+
15
+ - puppet-blacksmith: Allow 9.x [\#90](https://github.com/voxpupuli/voxpupuli-release/pull/90) ([bastelfreak](https://github.com/bastelfreak))
16
+ - openvox-strings: Allow 6.x [\#89](https://github.com/voxpupuli/voxpupuli-release/pull/89) ([bastelfreak](https://github.com/bastelfreak))
17
+
18
+ ## [v4.0.0](https://github.com/voxpupuli/voxpupuli-release/tree/v4.0.0) (2025-06-10)
19
+
20
+ [Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v3.2.3...v4.0.0)
21
+
22
+ **Breaking changes:**
23
+
24
+ - Switch from puppet to openvox [\#82](https://github.com/voxpupuli/voxpupuli-release/pull/82) ([bastelfreak](https://github.com/bastelfreak))
25
+ - Remove deprecated reference task [\#70](https://github.com/voxpupuli/voxpupuli-release/pull/70) ([bastelfreak](https://github.com/bastelfreak))
26
+ - Remove deprecated changelog task [\#69](https://github.com/voxpupuli/voxpupuli-release/pull/69) ([bastelfreak](https://github.com/bastelfreak))
27
+ - Remove deprecated travis\_release task [\#68](https://github.com/voxpupuli/voxpupuli-release/pull/68) ([bastelfreak](https://github.com/bastelfreak))
28
+
5
29
  ## [v3.2.3](https://github.com/voxpupuli/voxpupuli-release/tree/v3.2.3) (2024-12-22)
6
30
 
7
31
  [Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v3.2.2...v3.2.3)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'puppet_blacksmith/rake_tasks'
4
- require 'puppet-strings/tasks'
4
+ require 'openvox-strings/tasks'
5
5
 
6
6
  class GCGConfig
7
7
  class << self
@@ -80,12 +80,6 @@ task :release do
80
80
  g.push!
81
81
  end
82
82
 
83
- desc 'Deprecated: use the "release" task instead'
84
- task 'travis_release' do
85
- warn "Deprecated: use the 'release' task instead"
86
- Rake::Task['release'].invoke
87
- end
88
-
89
83
  desc 'Check Changelog.'
90
84
  task :check_changelog do
91
85
  v = Blacksmith::Modulefile.new.version
@@ -155,25 +149,3 @@ namespace :release do
155
149
  end
156
150
  end
157
151
  end
158
-
159
- # For backward compatibility
160
- task :changelog do
161
- warn <<-ERROR
162
- The "changelog" task is deprecated.
163
-
164
- Prefer "release:prepare" which manage all pre-release steps, or directly run
165
- the "release:porcelain:changelog" task.
166
- ERROR
167
- exit(1)
168
- end
169
-
170
- # For backward compatibility
171
- task :reference do
172
- warn <<-ERROR
173
- The "reference" task is deprecated.
174
-
175
- Prefer "release:prepare" which manage all pre-release steps, or directly run
176
- the "strings:generate:reference" task.
177
- ERROR
178
- exit(1)
179
- end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Voxpupuli
4
4
  module Release
5
- VERSION = '3.2.3'
5
+ VERSION = '5.0.0'
6
6
  end
7
7
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.summary = 'Helpers for deploying Vox Pupuli modules'
13
13
  s.licenses = 'Apache-2.0'
14
14
 
15
- s.required_ruby_version = '>= 2.7', '< 4'
15
+ s.required_ruby_version = '>= 3.2'
16
16
 
17
17
  s.files = `git ls-files`.split("\n")
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
@@ -20,13 +20,9 @@ Gem::Specification.new do |s|
20
20
  # Runtime dependencies, but also probably dependencies of requiring projects
21
21
  s.add_dependency 'faraday-retry', '~> 2.1'
22
22
  s.add_dependency 'github_changelog_generator', '~> 1.16', '>= 1.16.4'
23
- s.add_dependency 'puppet-blacksmith', '~> 8.0'
24
- s.add_dependency 'puppet-strings', '~> 4'
25
- # workaround for https://github.com/puppetlabs/puppet-strings/pull/404
26
- s.add_dependency 'puppet', '>= 7', '< 9'
27
- # workaround for https://github.com/puppetlabs/puppet/issues/9535
28
- s.add_dependency 'racc', '~> 1.8', '>= 1.8.1'
23
+ s.add_dependency 'openvox-strings', '>= 5', '< 7'
24
+ s.add_dependency 'puppet-blacksmith', '~> 8.0', '< 10'
29
25
  s.add_dependency 'rake', '~> 13.0', '>= 13.0.6'
30
26
 
31
- s.add_development_dependency 'voxpupuli-rubocop', '~> 3.0.0'
27
+ s.add_development_dependency 'voxpupuli-rubocop', '~> 4.2.0'
32
28
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voxpupuli-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-22 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday-retry
@@ -45,73 +44,45 @@ dependencies:
45
44
  - !ruby/object:Gem::Version
46
45
  version: 1.16.4
47
46
  - !ruby/object:Gem::Dependency
48
- name: puppet-blacksmith
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '8.0'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '8.0'
61
- - !ruby/object:Gem::Dependency
62
- name: puppet-strings
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '4'
68
- type: :runtime
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '4'
75
- - !ruby/object:Gem::Dependency
76
- name: puppet
47
+ name: openvox-strings
77
48
  requirement: !ruby/object:Gem::Requirement
78
49
  requirements:
79
50
  - - ">="
80
51
  - !ruby/object:Gem::Version
81
- version: '7'
52
+ version: '5'
82
53
  - - "<"
83
54
  - !ruby/object:Gem::Version
84
- version: '9'
55
+ version: '7'
85
56
  type: :runtime
86
57
  prerelease: false
87
58
  version_requirements: !ruby/object:Gem::Requirement
88
59
  requirements:
89
60
  - - ">="
90
61
  - !ruby/object:Gem::Version
91
- version: '7'
62
+ version: '5'
92
63
  - - "<"
93
64
  - !ruby/object:Gem::Version
94
- version: '9'
65
+ version: '7'
95
66
  - !ruby/object:Gem::Dependency
96
- name: racc
67
+ name: puppet-blacksmith
97
68
  requirement: !ruby/object:Gem::Requirement
98
69
  requirements:
99
70
  - - "~>"
100
71
  - !ruby/object:Gem::Version
101
- version: '1.8'
102
- - - ">="
72
+ version: '8.0'
73
+ - - "<"
103
74
  - !ruby/object:Gem::Version
104
- version: 1.8.1
75
+ version: '10'
105
76
  type: :runtime
106
77
  prerelease: false
107
78
  version_requirements: !ruby/object:Gem::Requirement
108
79
  requirements:
109
80
  - - "~>"
110
81
  - !ruby/object:Gem::Version
111
- version: '1.8'
112
- - - ">="
82
+ version: '8.0'
83
+ - - "<"
113
84
  - !ruby/object:Gem::Version
114
- version: 1.8.1
85
+ version: '10'
115
86
  - !ruby/object:Gem::Dependency
116
87
  name: rake
117
88
  requirement: !ruby/object:Gem::Requirement
@@ -138,15 +109,14 @@ dependencies:
138
109
  requirements:
139
110
  - - "~>"
140
111
  - !ruby/object:Gem::Version
141
- version: 3.0.0
112
+ version: 4.2.0
142
113
  type: :development
143
114
  prerelease: false
144
115
  version_requirements: !ruby/object:Gem::Requirement
145
116
  requirements:
146
117
  - - "~>"
147
118
  - !ruby/object:Gem::Version
148
- version: 3.0.0
149
- description:
119
+ version: 4.2.0
150
120
  email:
151
121
  - voxpupuli@groups.io
152
122
  executables: []
@@ -154,6 +124,7 @@ extensions: []
154
124
  extra_rdoc_files: []
155
125
  files:
156
126
  - ".github/dependabot.yml"
127
+ - ".github/release.yml"
157
128
  - ".github/workflows/release.yml"
158
129
  - ".github/workflows/test.yml"
159
130
  - ".gitignore"
@@ -173,7 +144,6 @@ homepage: https://github.com/voxpupuli/voxpupuli-release
173
144
  licenses:
174
145
  - Apache-2.0
175
146
  metadata: {}
176
- post_install_message:
177
147
  rdoc_options: []
178
148
  require_paths:
179
149
  - lib
@@ -181,18 +151,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
151
  requirements:
182
152
  - - ">="
183
153
  - !ruby/object:Gem::Version
184
- version: '2.7'
185
- - - "<"
186
- - !ruby/object:Gem::Version
187
- version: '4'
154
+ version: '3.2'
188
155
  required_rubygems_version: !ruby/object:Gem::Requirement
189
156
  requirements:
190
157
  - - ">="
191
158
  - !ruby/object:Gem::Version
192
159
  version: '0'
193
160
  requirements: []
194
- rubygems_version: 3.5.22
195
- signing_key:
161
+ rubygems_version: 3.6.9
196
162
  specification_version: 4
197
163
  summary: Helpers for deploying Vox Pupuli modules
198
164
  test_files: []