voxpupuli-release 5.3.1 → 5.4.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: 1244ba6e84fa215bf717b5487f42b27f19c77c6769fec26ca8a7208a8c69f072
4
- data.tar.gz: 3781b7d2bc948aecc761c0284c66e0acdf48a2454bd7abbf3748670039d392f3
3
+ metadata.gz: 55384d90f8f7d6baf31bc72ee1c566471ff7de53402e7f9e9a630aeabb8844f0
4
+ data.tar.gz: 6ca315a5e87d092612bbef8fd20d7fd88199996059469d76c4b071bde840bc29
5
5
  SHA512:
6
- metadata.gz: 62e89ef9908ef57ee06d70835ee29340117c71bcf1c415a721fc5e202776980d085e2ed5acca43d68bd5af70fd4e30045804dc5fa42bc02125ca7b904d240506
7
- data.tar.gz: 808b1ca80954157c45d5dcb78a6e53098acc90b19e87ea1df43aa544538d4f085a127f8a6e8dd06846d711772cf7fe2e441a58b17cdc39c560d1047c7b1ce811
6
+ metadata.gz: fe09c7284a57a111505195e38c58a88340d419f0036fcb5f2b77ad629fc01c626322d9f2b205831bb01b227762e3f4aac7c119e7afab3f47ac2c2ce5497e67b8
7
+ data.tar.gz: c2417ebda3e4f6b0431b1ad08131c86bea7ef3b5721dbe66bf1cb7ea6289276720f6295c8fb4c7b5c214202d20aaeb79c342fbf2e95132672d58ad0ab2461758
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,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [v5.4.0](https://github.com/voxpupuli/voxpupuli-release/tree/v5.4.0) (2026-03-27)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v5.3.1...v5.4.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - Add release task without version bump: `release:tag_and_push` [\#120](https://github.com/voxpupuli/voxpupuli-release/pull/120) ([bastelfreak](https://github.com/bastelfreak))
12
+
5
13
  ## [v5.3.1](https://github.com/voxpupuli/voxpupuli-release/tree/v5.3.1) (2026-03-15)
6
14
 
7
15
  [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,29 +46,9 @@ 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
55
-
56
- m = Blacksmith::Modulefile.new
57
- 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
49
+ Rake::Task['release:validate'].invoke
68
50
 
69
- # idempotently create tags
70
- g = Blacksmith::Git.new
71
- Rake::Task['module:tag'].invoke unless g.has_version_tag?(v)
51
+ Rake::Task['release:tag_and_push'].invoke
72
52
 
73
53
  v_inc = m.increase_version(v)
74
54
  v_new = "#{v_inc}-rc0"
@@ -94,6 +74,39 @@ task :check_changelog do
94
74
  end
95
75
 
96
76
  namespace :release do
77
+ desc 'prepare puppet-blacksmith'
78
+ task :prepare_blacksmith do
79
+ Blacksmith::RakeTask.new do |t|
80
+ t.build = false # do not build the module nor push it to the Forge
81
+ t.tag_sign = true # sign release with gpg
82
+ t.tag_message_pattern = 'Version %s' # required tag message for gpg-signed tags
83
+ end
84
+ end
85
+
86
+ # checks if we have a clean git checkout and REFERENCE.md/CHANGELOG.md are correct
87
+ desc 'validate module'
88
+ task :validate do
89
+ version = Blacksmith::Modulefile.new.version
90
+ unless version.match?(/^\d+\.\d+\.\d+$/)
91
+ raise "Refusing to release an RC or build-release (#{version}).\n" \
92
+ 'Please set a semver *release* version.'
93
+ end
94
+
95
+ # validate that the REFERENCE.md is up2date, if it exists
96
+ Rake::Task['strings:validate:reference'].invoke if File.exist?('REFERENCE.md')
97
+ Rake::Task[:check_changelog].invoke
98
+ Rake::Task['module:clean'].invoke # just deletes old artifacts in pkg/
99
+ end
100
+
101
+ desc 'tag module and push it'
102
+ task tag_and_push: %w[validate prepare_blacksmith] do
103
+ # idempotently create tags
104
+ git = Blacksmith::Git.new
105
+ version = Blacksmith::Modulefile.new.version
106
+ Rake::Task['module:tag'].invoke unless git.has_version_tag?(version)
107
+ git.push!
108
+ end
109
+
97
110
  desc 'Prepare a release'
98
111
  task prepare: ['release:porcelain:changelog'] do
99
112
  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.0'
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.0
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: []