voxpupuli-release 5.3.1 → 5.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1244ba6e84fa215bf717b5487f42b27f19c77c6769fec26ca8a7208a8c69f072
4
- data.tar.gz: 3781b7d2bc948aecc761c0284c66e0acdf48a2454bd7abbf3748670039d392f3
3
+ metadata.gz: e829263fc682b4b0f84a57e6a3a41d2a0e3eb3da3b85e0ac2eee963b244b671c
4
+ data.tar.gz: f730a2b5507893853c6b0252f360839121b6ca302601657ec400e27b399e3472
5
5
  SHA512:
6
- metadata.gz: 62e89ef9908ef57ee06d70835ee29340117c71bcf1c415a721fc5e202776980d085e2ed5acca43d68bd5af70fd4e30045804dc5fa42bc02125ca7b904d240506
7
- data.tar.gz: 808b1ca80954157c45d5dcb78a6e53098acc90b19e87ea1df43aa544538d4f085a127f8a6e8dd06846d711772cf7fe2e441a58b17cdc39c560d1047c7b1ce811
6
+ metadata.gz: 26a2358faa125ff2eb58cf02d3a0f18022d2f9ad57ea363fed58839dd65e0697b0177d670055394d8b9a368f434b606f17bb3ea04b4e91574b1343bf3e092122
7
+ data.tar.gz: 85b516a4b592e1b579e932ce50ca683161250fc1a568916cbc2c12ed6eb6c11cf4205c109becf9ebff6908ad3837f14f39080400a2db425afbdae8041912d574
@@ -67,7 +67,7 @@ jobs:
67
67
  uses: actions/download-artifact@v8
68
68
  with:
69
69
  name: gem-artifact
70
- - uses: rubygems/configure-rubygems-credentials@v1.0.0
70
+ - uses: rubygems/configure-rubygems-credentials@v2.0.0
71
71
  - name: Publish gem to rubygems.org
72
72
  shell: bash
73
73
  run: gem push *.gem
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config --no-auto-gen-timestamp`
3
- # using RuboCop version 1.81.7.
3
+ # using RuboCop version 1.85.1.
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
@@ -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, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
27
+ # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
28
28
  # URISchemes: http, https
29
29
  Layout/LineLength:
30
30
  Max: 128
data/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [v5.4.1](https://github.com/voxpupuli/voxpupuli-release/tree/v5.4.1) (2026-05-08)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v5.4.0...v5.4.1)
8
+
9
+ **Fixed bugs:**
10
+
11
+ - Fix missing variables in release task [\#122](https://github.com/voxpupuli/voxpupuli-release/pull/122) ([jpartlow](https://github.com/jpartlow))
12
+
13
+ ## [v5.4.0](https://github.com/voxpupuli/voxpupuli-release/tree/v5.4.0) (2026-03-27)
14
+
15
+ [Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v5.3.1...v5.4.0)
16
+
17
+ **Implemented enhancements:**
18
+
19
+ - Add release task without version bump: `release:tag_and_push` [\#120](https://github.com/voxpupuli/voxpupuli-release/pull/120) ([bastelfreak](https://github.com/bastelfreak))
20
+
5
21
  ## [v5.3.1](https://github.com/voxpupuli/voxpupuli-release/tree/v5.3.1) (2026-03-15)
6
22
 
7
23
  [Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v5.3.0...v5.3.1)
data/README.md CHANGED
@@ -28,13 +28,20 @@ To cut a new release of your module, ensure the `metadata.json` reflects the exp
28
28
  bundle exec rake release:prepare
29
29
  ```
30
30
 
31
- Commit these changes (likely in a new branch, open a Pull-Request and wait for it to be reviewed and merged). When ready to ship the new release, ensure you are on the main branch, it is up-to-date, and run:
31
+ Commit these changes (likely in a new branch, open a Pull-Request and wait for it to be reviewed and merged).
32
+ When ready to ship the new release, ensure you are on the main branch, it is up-to-date, and run:
32
33
 
33
34
  ```plain
34
35
  bundle exec rake release
35
36
  ```
36
37
 
37
- This will perform some sanity checks, tag the current commit with the version number, and bump the version number to ensure no conflict will happen by mistake.
38
+ This will perform some sanity checks, tag the current commit with the version number, and bump the version number to ensure no conflict will happen by mistake and then run `git push && git push --tags`.
39
+
40
+ It's also possible to not bump the version to the next rc:
41
+
42
+ ```plain
43
+ bundle exec rake release:tag_and_push
44
+ ```
38
45
 
39
46
  ## License
40
47
 
@@ -46,36 +46,19 @@ end
46
46
 
47
47
  desc 'Release via GitHub Actions'
48
48
  task :release do
49
- Blacksmith::RakeTask.new do |t|
50
- t.build = false # do not build the module nor push it to the Forge
51
- t.tag_sign = true # sign release with gpg
52
- t.tag_message_pattern = 'Version %s' # required tag message for gpg-signed tags
53
- # just do the tagging [:clean, :tag, :bump_commit]
54
- end
49
+ Rake::Task['release:validate'].invoke
50
+
51
+ Rake::Task['release:tag_and_push'].invoke
55
52
 
56
53
  m = Blacksmith::Modulefile.new
57
54
  v = m.version
58
- unless v.match?(/^\d+\.\d+\.\d+$/)
59
- raise "Refusing to release an RC or build-release (#{v}).\n" \
60
- 'Please set a semver *release* version.'
61
- end
62
-
63
- # validate that the REFERENCE.md is up2date, if it exists
64
- Rake::Task['strings:validate:reference'].invoke if File.exist?('REFERENCE.md')
65
- Rake::Task[:check_changelog].invoke
66
- # do a "manual" module:release (clean, tag, bump, commit, push tags)
67
- Rake::Task['module:clean'].invoke
68
-
69
- # idempotently create tags
70
- g = Blacksmith::Git.new
71
- Rake::Task['module:tag'].invoke unless g.has_version_tag?(v)
72
-
73
55
  v_inc = m.increase_version(v)
74
56
  v_new = "#{v_inc}-rc0"
75
57
  ENV['BLACKSMITH_FULL_VERSION'] = v_new
76
58
  Rake::Task['module:bump:full'].invoke
77
59
 
78
- # push it out, and let GitHub Actions do the release:
60
+ # Push up the new rc version commit.
61
+ g = Blacksmith::Git.new
79
62
  g.commit_modulefile!(v_new)
80
63
  g.push!
81
64
  end
@@ -94,6 +77,39 @@ task :check_changelog do
94
77
  end
95
78
 
96
79
  namespace :release do
80
+ desc 'prepare puppet-blacksmith'
81
+ task :prepare_blacksmith do
82
+ Blacksmith::RakeTask.new do |t|
83
+ t.build = false # do not build the module nor push it to the Forge
84
+ t.tag_sign = true # sign release with gpg
85
+ t.tag_message_pattern = 'Version %s' # required tag message for gpg-signed tags
86
+ end
87
+ end
88
+
89
+ # checks if we have a clean git checkout and REFERENCE.md/CHANGELOG.md are correct
90
+ desc 'validate module'
91
+ task :validate do
92
+ version = Blacksmith::Modulefile.new.version
93
+ unless version.match?(/^\d+\.\d+\.\d+$/)
94
+ raise "Refusing to release an RC or build-release (#{version}).\n" \
95
+ 'Please set a semver *release* version.'
96
+ end
97
+
98
+ # validate that the REFERENCE.md is up2date, if it exists
99
+ Rake::Task['strings:validate:reference'].invoke if File.exist?('REFERENCE.md')
100
+ Rake::Task[:check_changelog].invoke
101
+ Rake::Task['module:clean'].invoke # just deletes old artifacts in pkg/
102
+ end
103
+
104
+ desc 'tag module and push it'
105
+ task tag_and_push: %w[validate prepare_blacksmith] do
106
+ # idempotently create tags
107
+ git = Blacksmith::Git.new
108
+ version = Blacksmith::Modulefile.new.version
109
+ Rake::Task['module:tag'].invoke unless git.has_version_tag?(version)
110
+ git.push!
111
+ end
112
+
97
113
  desc 'Prepare a release'
98
114
  task prepare: ['release:porcelain:changelog'] do
99
115
  v = Blacksmith::Modulefile.new.version
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Voxpupuli
4
4
  module Release
5
- VERSION = '5.3.1'
5
+ VERSION = '5.4.1'
6
6
  end
7
7
  end
@@ -29,5 +29,5 @@ Gem::Specification.new do |s|
29
29
  # https://github.com/OpenVoxProject/puppet/issues/90
30
30
  s.add_dependency 'syslog', '>= 0.3.0', '< 0.5'
31
31
 
32
- s.add_development_dependency 'voxpupuli-rubocop', '~> 5.1.0'
32
+ s.add_development_dependency 'voxpupuli-rubocop', '~> 5.2.0'
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voxpupuli-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.1
4
+ version: 5.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
@@ -137,14 +137,14 @@ dependencies:
137
137
  requirements:
138
138
  - - "~>"
139
139
  - !ruby/object:Gem::Version
140
- version: 5.1.0
140
+ version: 5.2.0
141
141
  type: :development
142
142
  prerelease: false
143
143
  version_requirements: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - "~>"
146
146
  - !ruby/object:Gem::Version
147
- version: 5.1.0
147
+ version: 5.2.0
148
148
  email:
149
149
  - voxpupuli@groups.io
150
150
  executables: []
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  requirements: []
189
- rubygems_version: 4.0.3
189
+ rubygems_version: 4.0.6
190
190
  specification_version: 4
191
191
  summary: Helpers for deploying Vox Pupuli modules
192
192
  test_files: []