voxpupuli-release 3.2.2 → 4.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: fcefcfd92dc59e88b8af5626d2099563900abee03fa4d1e6e4727cbebb990a97
4
- data.tar.gz: f292439cfeff0e5adaf078ffebddce0270d69557e1dd1356474a164aaa28b13f
3
+ metadata.gz: 5583f0a291b9d61b49a6a261489d5cffe4c1bb799d0fc366cf0018f4eceea54b
4
+ data.tar.gz: 48590fade489ee68034e3435c74565fb9253b33b9ce28109315b530ec0730219
5
5
  SHA512:
6
- metadata.gz: bafd27fd45ac1e13e648c1cb1e5f5f0a474ad5c1f9f33c6911e5f10a5277d362779e15b777c85c12e1e2065f9ab2cab2920d6e03f8cc5f8047dc9b8a1d2519e8
7
- data.tar.gz: 9384a9bc56abb4ce85b9b47858168b9d3a6b0f202e9b6d3961f885ed2f5fcac7f5f9e470227971894f8c9ed73dee20fe1eaf06d173d03b8d3690b23b28fb12c7
6
+ metadata.gz: 73805a31e5a4457219928f713382f61eb76250e3ad8d865ae5f7a611fdc33d0d7dfeba17f7fd3f4cc0ad22802ac34437e95baf2801b6c7abba65740d44f88266
7
+ data.tar.gz: 3f9d8d7e78bea09cce8e58b594c34833d9ca08048d8f93452c49eb50e111c74c56fb212aec43b36783dc591a5f2503f78650be304e6aeb78f187fd0d85db5bf1
@@ -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
18
  - uses: actions/checkout@v4
14
- - name: Install Ruby 3.3
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@v4
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@v4
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@v4
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,32 +7,35 @@ 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
22
  - uses: actions/checkout@v4
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
41
  - uses: actions/checkout@v4
@@ -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_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.75.8.
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, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
28
28
  # URISchemes: http, https
29
29
  Layout/LineLength:
30
30
  Max: 128
data/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [v4.0.0](https://github.com/voxpupuli/voxpupuli-release/tree/v4.0.0) (2025-06-10)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v3.2.3...v4.0.0)
8
+
9
+ **Breaking changes:**
10
+
11
+ - Switch from puppet to openvox [\#82](https://github.com/voxpupuli/voxpupuli-release/pull/82) ([bastelfreak](https://github.com/bastelfreak))
12
+ - Remove deprecated reference task [\#70](https://github.com/voxpupuli/voxpupuli-release/pull/70) ([bastelfreak](https://github.com/bastelfreak))
13
+ - Remove deprecated changelog task [\#69](https://github.com/voxpupuli/voxpupuli-release/pull/69) ([bastelfreak](https://github.com/bastelfreak))
14
+ - Remove deprecated travis\_release task [\#68](https://github.com/voxpupuli/voxpupuli-release/pull/68) ([bastelfreak](https://github.com/bastelfreak))
15
+
16
+ ## [v3.2.3](https://github.com/voxpupuli/voxpupuli-release/tree/v3.2.3) (2024-12-22)
17
+
18
+ [Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v3.2.2...v3.2.3)
19
+
20
+ **Fixed bugs:**
21
+
22
+ - Add racc dependency [\#80](https://github.com/voxpupuli/voxpupuli-release/pull/80) ([bastelfreak](https://github.com/bastelfreak))
23
+
5
24
  ## [v3.2.2](https://github.com/voxpupuli/voxpupuli-release/tree/v3.2.2) (2024-12-22)
6
25
 
7
26
  [Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v3.2.1...v3.2.2)
@@ -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.2'
5
+ VERSION = '4.0.0'
6
6
  end
7
7
  end
@@ -20,11 +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 'openvox-strings', '~> 5'
23
24
  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
25
  s.add_dependency 'rake', '~> 13.0', '>= 13.0.6'
28
26
 
29
- s.add_development_dependency 'voxpupuli-rubocop', '~> 3.0.0'
27
+ s.add_development_dependency 'voxpupuli-rubocop', '~> 3.1.0'
30
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.2
4
+ version: 4.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,53 +44,33 @@ dependencies:
45
44
  - !ruby/object:Gem::Version
46
45
  version: 1.16.4
47
46
  - !ruby/object:Gem::Dependency
48
- name: puppet-blacksmith
47
+ name: openvox-strings
49
48
  requirement: !ruby/object:Gem::Requirement
50
49
  requirements:
51
50
  - - "~>"
52
51
  - !ruby/object:Gem::Version
53
- version: '8.0'
52
+ version: '5'
54
53
  type: :runtime
55
54
  prerelease: false
56
55
  version_requirements: !ruby/object:Gem::Requirement
57
56
  requirements:
58
57
  - - "~>"
59
58
  - !ruby/object:Gem::Version
60
- version: '8.0'
59
+ version: '5'
61
60
  - !ruby/object:Gem::Dependency
62
- name: puppet-strings
61
+ name: puppet-blacksmith
63
62
  requirement: !ruby/object:Gem::Requirement
64
63
  requirements:
65
64
  - - "~>"
66
65
  - !ruby/object:Gem::Version
67
- version: '4'
66
+ version: '8.0'
68
67
  type: :runtime
69
68
  prerelease: false
70
69
  version_requirements: !ruby/object:Gem::Requirement
71
70
  requirements:
72
71
  - - "~>"
73
72
  - !ruby/object:Gem::Version
74
- version: '4'
75
- - !ruby/object:Gem::Dependency
76
- name: puppet
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: '7'
82
- - - "<"
83
- - !ruby/object:Gem::Version
84
- version: '9'
85
- type: :runtime
86
- prerelease: false
87
- version_requirements: !ruby/object:Gem::Requirement
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- version: '7'
92
- - - "<"
93
- - !ruby/object:Gem::Version
94
- version: '9'
73
+ version: '8.0'
95
74
  - !ruby/object:Gem::Dependency
96
75
  name: rake
97
76
  requirement: !ruby/object:Gem::Requirement
@@ -118,15 +97,14 @@ dependencies:
118
97
  requirements:
119
98
  - - "~>"
120
99
  - !ruby/object:Gem::Version
121
- version: 3.0.0
100
+ version: 3.1.0
122
101
  type: :development
123
102
  prerelease: false
124
103
  version_requirements: !ruby/object:Gem::Requirement
125
104
  requirements:
126
105
  - - "~>"
127
106
  - !ruby/object:Gem::Version
128
- version: 3.0.0
129
- description:
107
+ version: 3.1.0
130
108
  email:
131
109
  - voxpupuli@groups.io
132
110
  executables: []
@@ -134,6 +112,7 @@ extensions: []
134
112
  extra_rdoc_files: []
135
113
  files:
136
114
  - ".github/dependabot.yml"
115
+ - ".github/release.yml"
137
116
  - ".github/workflows/release.yml"
138
117
  - ".github/workflows/test.yml"
139
118
  - ".gitignore"
@@ -153,7 +132,6 @@ homepage: https://github.com/voxpupuli/voxpupuli-release
153
132
  licenses:
154
133
  - Apache-2.0
155
134
  metadata: {}
156
- post_install_message:
157
135
  rdoc_options: []
158
136
  require_paths:
159
137
  - lib
@@ -171,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
149
  - !ruby/object:Gem::Version
172
150
  version: '0'
173
151
  requirements: []
174
- rubygems_version: 3.5.22
175
- signing_key:
152
+ rubygems_version: 3.6.7
176
153
  specification_version: 4
177
154
  summary: Helpers for deploying Vox Pupuli modules
178
155
  test_files: []