voxpupuli-release 2.0.0 → 3.0.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 +4 -4
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/test.yml +26 -6
- data/.rubocop.yml +5 -0
- data/.rubocop_todo.yml +30 -0
- data/CHANGELOG.md +32 -1
- data/Gemfile +4 -1
- data/Rakefile +13 -3
- data/lib/voxpupuli/release/rake_tasks.rb +63 -59
- data/lib/voxpupuli/release/version.rb +3 -1
- data/lib/voxpupuli/release.rb +2 -0
- data/voxpupuli-release.gemspec +12 -9
- metadata +69 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b3a21c33b0dea9c630f58ca630c5883bc6497d925fec507430f114a559927c9
|
|
4
|
+
data.tar.gz: ccdd5da7ecad3dd79eb1fb564abfd04b73a9c35dd94705fbe46e39c46b4f2c86
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a84750dfbb697a3d6683dced24731d4598f2cdaa9a76953eacacc5b8a663a98eab7e2abdfdae830afabe95d9e2ac6cabbf10348a16730db1650347d1c8c2544
|
|
7
|
+
data.tar.gz: 4f691f1de83b07555396dea02b793df9cc4e86ce7484aa51fade04f6ae18c0cd7162b8def636b8a7c03f9329c962933e3e66bc07ef3840f273ab585a6f97a571
|
|
@@ -10,7 +10,7 @@ jobs:
|
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
if: github.repository_owner == 'voxpupuli'
|
|
12
12
|
steps:
|
|
13
|
-
- uses: actions/checkout@
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
14
|
- name: Install Ruby 3.0
|
|
15
15
|
uses: ruby/setup-ruby@v1
|
|
16
16
|
with:
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
env:
|
|
19
19
|
BUNDLE_WITHOUT: release
|
|
20
20
|
- name: Build gem
|
|
21
|
-
run: gem build *.gemspec
|
|
21
|
+
run: gem build --strict --verbose *.gemspec
|
|
22
22
|
- name: Publish gem to rubygems.org
|
|
23
23
|
run: gem push *.gem
|
|
24
24
|
env:
|
data/.github/workflows/test.yml
CHANGED
|
@@ -1,28 +1,39 @@
|
|
|
1
1
|
name: Test
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
pull_request: {}
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- master
|
|
6
8
|
|
|
7
9
|
env:
|
|
8
10
|
BUNDLE_WITHOUT: release
|
|
9
11
|
|
|
10
12
|
jobs:
|
|
13
|
+
rubocop:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
|
18
|
+
uses: ruby/setup-ruby@v1
|
|
19
|
+
with:
|
|
20
|
+
ruby-version: "3.2"
|
|
21
|
+
bundler-cache: true
|
|
22
|
+
- name: Run Rubocop
|
|
23
|
+
run: bundle exec rake rubocop
|
|
11
24
|
test:
|
|
12
25
|
runs-on: ubuntu-latest
|
|
13
26
|
strategy:
|
|
14
27
|
fail-fast: false
|
|
15
28
|
matrix:
|
|
16
29
|
ruby:
|
|
17
|
-
- "2.5"
|
|
18
|
-
- "2.6"
|
|
19
30
|
- "2.7"
|
|
20
31
|
- "3.0"
|
|
21
32
|
- "3.1"
|
|
22
33
|
- "3.2"
|
|
23
34
|
name: Ruby ${{ matrix.ruby }}
|
|
24
35
|
steps:
|
|
25
|
-
- uses: actions/checkout@
|
|
36
|
+
- uses: actions/checkout@v4
|
|
26
37
|
- name: Install Ruby ${{ matrix.ruby }}
|
|
27
38
|
uses: ruby/setup-ruby@v1
|
|
28
39
|
with:
|
|
@@ -31,4 +42,13 @@ jobs:
|
|
|
31
42
|
- name: Run tests
|
|
32
43
|
run: bundle exec rake --rakefile Rakefile_ci -T | grep release
|
|
33
44
|
- name: Verify gem builds
|
|
34
|
-
run: gem build *.gemspec
|
|
45
|
+
run: gem build --strict --verbose *.gemspec
|
|
46
|
+
|
|
47
|
+
tests:
|
|
48
|
+
needs:
|
|
49
|
+
- rubocop
|
|
50
|
+
- test
|
|
51
|
+
runs-on: ubuntu-latest
|
|
52
|
+
name: Test suite
|
|
53
|
+
steps:
|
|
54
|
+
- run: echo Test suite completed
|
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 1
|
|
10
|
+
# Configuration parameters: AllowedConstants.
|
|
11
|
+
Style/Documentation:
|
|
12
|
+
Exclude:
|
|
13
|
+
- 'spec/**/*'
|
|
14
|
+
- 'test/**/*'
|
|
15
|
+
- 'lib/voxpupuli/release/rake_tasks.rb'
|
|
16
|
+
|
|
17
|
+
# Offense count: 1
|
|
18
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
19
|
+
# Configuration parameters: EnforcedStyle, AllowComments.
|
|
20
|
+
# SupportedStyles: empty, nil, both
|
|
21
|
+
Style/EmptyElse:
|
|
22
|
+
Exclude:
|
|
23
|
+
- 'lib/voxpupuli/release/rake_tasks.rb'
|
|
24
|
+
|
|
25
|
+
# Offense count: 1
|
|
26
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
27
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
|
28
|
+
# URISchemes: http, https
|
|
29
|
+
Layout/LineLength:
|
|
30
|
+
Max: 128
|
data/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
## [
|
|
5
|
+
## [v3.0.1](https://github.com/voxpupuli/voxpupuli-release/tree/v3.0.1) (2023-10-05)
|
|
6
|
+
|
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v3.0.0...v3.0.1)
|
|
8
|
+
|
|
9
|
+
**Fixed bugs:**
|
|
10
|
+
|
|
11
|
+
- Add github\_changelog\_generator & faraday-retry as dependencies [\#60](https://github.com/voxpupuli/voxpupuli-release/pull/60) ([bastelfreak](https://github.com/bastelfreak))
|
|
12
|
+
- rake tasks: fix regexp escaping [\#59](https://github.com/voxpupuli/voxpupuli-release/pull/59) ([kenyon](https://github.com/kenyon))
|
|
13
|
+
|
|
14
|
+
**Merged pull requests:**
|
|
15
|
+
|
|
16
|
+
- voxpupuli-rubocop: Use 2.x [\#61](https://github.com/voxpupuli/voxpupuli-release/pull/61) ([bastelfreak](https://github.com/bastelfreak))
|
|
17
|
+
- CI: Run on PRs+merges to master [\#57](https://github.com/voxpupuli/voxpupuli-release/pull/57) ([bastelfreak](https://github.com/bastelfreak))
|
|
18
|
+
- Encourage a signed commit [\#56](https://github.com/voxpupuli/voxpupuli-release/pull/56) ([traylenator](https://github.com/traylenator))
|
|
19
|
+
|
|
20
|
+
## [v3.0.0](https://github.com/voxpupuli/voxpupuli-release/tree/v3.0.0) (2023-05-09)
|
|
21
|
+
|
|
22
|
+
[Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v2.0.0...v3.0.0)
|
|
23
|
+
|
|
24
|
+
**Breaking changes:**
|
|
25
|
+
|
|
26
|
+
- Drop Ruby 2.5/2.6 support; introduce voxpupuli-rubocop; cleanup CI [\#53](https://github.com/voxpupuli/voxpupuli-release/pull/53) ([bastelfreak](https://github.com/bastelfreak))
|
|
27
|
+
|
|
28
|
+
**Implemented enhancements:**
|
|
29
|
+
|
|
30
|
+
- Avoid producing a backtrace for deprecated tasks [\#52](https://github.com/voxpupuli/voxpupuli-release/pull/52) ([smortex](https://github.com/smortex))
|
|
31
|
+
|
|
32
|
+
**Merged pull requests:**
|
|
33
|
+
|
|
34
|
+
- gemspec: Add version constraints for dependencies & build gem with strictness and verbosity [\#54](https://github.com/voxpupuli/voxpupuli-release/pull/54) ([bastelfreak](https://github.com/bastelfreak))
|
|
35
|
+
|
|
36
|
+
## [v2.0.0](https://github.com/voxpupuli/voxpupuli-release/tree/v2.0.0) (2023-02-22)
|
|
6
37
|
|
|
7
38
|
[Full Changelog](https://github.com/voxpupuli/voxpupuli-release/compare/v1.3.0...v2.0.0)
|
|
8
39
|
|
data/Gemfile
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
|
2
4
|
|
|
3
5
|
gemspec
|
|
4
6
|
|
|
5
7
|
group :release, optional: true do
|
|
6
|
-
gem '
|
|
8
|
+
gem 'faraday-retry', '~> 2.1', require: false
|
|
9
|
+
gem 'github_changelog_generator', '~> 1.16.4', require: false
|
|
7
10
|
end
|
data/Rakefile
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
|
2
4
|
require 'voxpupuli/release/version'
|
|
3
5
|
|
|
4
|
-
task :
|
|
6
|
+
task default: :dummy
|
|
5
7
|
|
|
6
8
|
desc 'Dummy rake task'
|
|
7
9
|
task 'dummy' do
|
|
@@ -10,13 +12,21 @@ end
|
|
|
10
12
|
|
|
11
13
|
begin
|
|
12
14
|
require 'github_changelog_generator/task'
|
|
15
|
+
rescue LoadError
|
|
16
|
+
# github_changelog_generator is an optional group
|
|
17
|
+
else
|
|
13
18
|
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
|
14
19
|
version = Voxpupuli::Release::VERSION
|
|
15
|
-
config.future_release = "v#{version}" if
|
|
20
|
+
config.future_release = "v#{version}" if /^\d+\.\d+.\d+$/.match?(version)
|
|
16
21
|
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file."
|
|
17
|
-
config.exclude_labels = %w
|
|
22
|
+
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog github_actions]
|
|
18
23
|
config.user = 'voxpupuli'
|
|
19
24
|
config.project = 'voxpupuli-release'
|
|
20
25
|
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
begin
|
|
29
|
+
require 'voxpupuli/rubocop/rake'
|
|
21
30
|
rescue LoadError
|
|
31
|
+
# the voxpupuli-rubocop gem is optional
|
|
22
32
|
end
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require 'puppet_blacksmith/rake_tasks'
|
|
2
4
|
|
|
3
5
|
class GCGConfig
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
class << self
|
|
7
|
+
attr_writer :user
|
|
6
8
|
end
|
|
7
9
|
|
|
8
10
|
def self.user
|
|
9
11
|
@user || project.split(%r{[-/]}).first
|
|
10
12
|
end
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
class << self
|
|
15
|
+
attr_writer :project
|
|
14
16
|
end
|
|
15
17
|
|
|
16
18
|
def self.project
|
|
@@ -22,8 +24,8 @@ class GCGConfig
|
|
|
22
24
|
@metadata ||= Blacksmith::Modulefile.new.metadata
|
|
23
25
|
end
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
class << self
|
|
28
|
+
attr_writer :tag_pattern
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
def self.tag_pattern
|
|
@@ -31,7 +33,7 @@ class GCGConfig
|
|
|
31
33
|
end
|
|
32
34
|
|
|
33
35
|
def self.future_release
|
|
34
|
-
if metadata['version'].match?(/^\d+\.\d
|
|
36
|
+
if metadata['version'].match?(/^\d+\.\d+\.\d+$/)
|
|
35
37
|
format(tag_pattern, metadata['version'])
|
|
36
38
|
else
|
|
37
39
|
# Not formatted like a release, might be a pre-release and the future
|
|
@@ -46,29 +48,31 @@ task :release do
|
|
|
46
48
|
Blacksmith::RakeTask.new do |t|
|
|
47
49
|
t.build = false # do not build the module nor push it to the Forge
|
|
48
50
|
t.tag_sign = true # sign release with gpg
|
|
49
|
-
t.tag_message_pattern =
|
|
51
|
+
t.tag_message_pattern = 'Version %s' # required tag message for gpg-signed tags
|
|
50
52
|
# just do the tagging [:clean, :tag, :bump_commit]
|
|
51
53
|
end
|
|
52
54
|
|
|
53
55
|
m = Blacksmith::Modulefile.new
|
|
54
56
|
v = m.version
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
unless v.match?(/^\d+\.\d+\.\d+$/)
|
|
58
|
+
raise "Refusing to release an RC or build-release (#{v}).\n" \
|
|
59
|
+
'Please set a semver *release* version.'
|
|
60
|
+
end
|
|
57
61
|
|
|
58
62
|
# validate that the REFERENCE.md is up2date, if it exists
|
|
59
63
|
Rake::Task['strings:validate:reference'].invoke if File.exist?('REFERENCE.md')
|
|
60
64
|
Rake::Task[:check_changelog].invoke
|
|
61
65
|
# do a "manual" module:release (clean, tag, bump, commit, push tags)
|
|
62
|
-
Rake::Task[
|
|
66
|
+
Rake::Task['module:clean'].invoke
|
|
63
67
|
|
|
64
68
|
# idempotently create tags
|
|
65
69
|
g = Blacksmith::Git.new
|
|
66
|
-
Rake::Task[
|
|
70
|
+
Rake::Task['module:tag'].invoke unless g.has_version_tag?(v)
|
|
67
71
|
|
|
68
72
|
v_inc = m.increase_version(v)
|
|
69
73
|
v_new = "#{v_inc}-rc0"
|
|
70
74
|
ENV['BLACKSMITH_FULL_VERSION'] = v_new
|
|
71
|
-
Rake::Task[
|
|
75
|
+
Rake::Task['module:bump:full'].invoke
|
|
72
76
|
|
|
73
77
|
# push it out, and let GitHub Actions do the release:
|
|
74
78
|
g.commit_modulefile!(v_new)
|
|
@@ -76,8 +80,8 @@ task :release do
|
|
|
76
80
|
end
|
|
77
81
|
|
|
78
82
|
desc 'Deprecated: use the "release" task instead'
|
|
79
|
-
task
|
|
80
|
-
|
|
83
|
+
task 'travis_release' do
|
|
84
|
+
warn "Deprecated: use the 'release' task instead"
|
|
81
85
|
Rake::Task['release'].invoke
|
|
82
86
|
end
|
|
83
87
|
|
|
@@ -89,86 +93,86 @@ task :check_changelog do
|
|
|
89
93
|
# ## 2016-11-20 Release 4.0.2
|
|
90
94
|
# ## [v4.0.3-rc0](https://github.com/voxpupuli/puppet-r10k/tree/v4.0.3-rc0) (2016-12-13)
|
|
91
95
|
# ## [2.1.0](https://github.com/opus-codium/puppet-odoo/tree/2.1.0) (2021-12-02)
|
|
92
|
-
if File.readlines('CHANGELOG.md').grep(
|
|
93
|
-
|
|
96
|
+
if File.readlines('CHANGELOG.md').grep(/^(#.+[Rr]eleas.+#{Regexp.escape(v)}|## \[v?#{Regexp.escape(v)}\])/).empty?
|
|
97
|
+
raise "Unable to find a CHANGELOG.md entry for the #{v} release."
|
|
94
98
|
end
|
|
95
99
|
end
|
|
96
100
|
|
|
97
101
|
namespace :release do
|
|
98
|
-
desc
|
|
102
|
+
desc 'Prepare a release'
|
|
99
103
|
task prepare: ['release:porcelain:changelog'] do
|
|
100
104
|
v = Blacksmith::Modulefile.new.version
|
|
101
|
-
Rake::Task[
|
|
105
|
+
Rake::Task['strings:generate:reference'].invoke if File.exist?('REFERENCE.md')
|
|
102
106
|
puts <<~MESSAGE
|
|
103
107
|
|
|
104
108
|
Please review these changes and commit them to a new branch:
|
|
105
109
|
|
|
106
110
|
git checkout -b release-#{v}
|
|
107
|
-
git commit -m "Release #{v}"
|
|
111
|
+
git commit --gpg-sign -m "Release #{v}"
|
|
108
112
|
|
|
109
113
|
Then open a Pull-Request and wait for it to be reviewed and merged).
|
|
110
114
|
MESSAGE
|
|
111
115
|
end
|
|
112
116
|
|
|
113
117
|
namespace :porcelain do
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
log.gsub!("\r\n", "\n")
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
File.write(output_filename, log)
|
|
150
|
-
puts "Generated log placed in #{File.absolute_path(output_filename)}"
|
|
118
|
+
require 'github_changelog_generator/task'
|
|
119
|
+
rescue LoadError
|
|
120
|
+
desc 'Dummy'
|
|
121
|
+
task :changelog do
|
|
122
|
+
puts 'Skipping CHANGELOG.md generation. Ensure github_changelog_generator is present if you expected it to be generated.'
|
|
123
|
+
end
|
|
124
|
+
else
|
|
125
|
+
task :changelog do
|
|
126
|
+
# This is taken from lib/github_changelog_generator/task
|
|
127
|
+
# The generator cannot be used because we want to lazyly evaluate
|
|
128
|
+
# GCGConfig.user which might be overrider in the module Rakefile.
|
|
129
|
+
options = GitHubChangelogGenerator::Parser.default_options
|
|
130
|
+
options[:user] = GCGConfig.user
|
|
131
|
+
options[:project] = GCGConfig.project
|
|
132
|
+
options[:future_release] = GCGConfig.future_release
|
|
133
|
+
options[:header] = <<~HEADER.chomp
|
|
134
|
+
# Changelog
|
|
135
|
+
|
|
136
|
+
All notable changes to this project will be documented in this file.
|
|
137
|
+
Each new release typically also includes the latest modulesync defaults.
|
|
138
|
+
These should not affect the functionality of the module.
|
|
139
|
+
HEADER
|
|
140
|
+
options[:exclude_labels] = %w[duplicate question invalid wontfix wont-fix modulesync skip-changelog]
|
|
141
|
+
generator = GitHubChangelogGenerator::Generator.new(options)
|
|
142
|
+
log = generator.compound_changelog
|
|
143
|
+
output_filename = options[:output].to_s
|
|
144
|
+
|
|
145
|
+
# Workaround for https://github.com/github-changelog-generator/github-changelog-generator/issues/715
|
|
146
|
+
require 'rbconfig'
|
|
147
|
+
unless RbConfig::CONFIG['host_os'].include?('windows')
|
|
148
|
+
puts 'Fixing line endings...'
|
|
149
|
+
log.gsub!("\r\n", "\n")
|
|
151
150
|
end
|
|
151
|
+
|
|
152
|
+
File.write(output_filename, log)
|
|
153
|
+
puts "Generated log placed in #{File.absolute_path(output_filename)}"
|
|
152
154
|
end
|
|
153
155
|
end
|
|
154
156
|
end
|
|
155
157
|
|
|
156
158
|
# For backward compatibility
|
|
157
159
|
task :changelog do
|
|
158
|
-
|
|
160
|
+
warn <<-ERROR
|
|
159
161
|
The "changelog" task is deprecated.
|
|
160
162
|
|
|
161
163
|
Prefer "release:prepare" which manage all pre-release steps, or directly run
|
|
162
164
|
the "release:porcelain:changelog" task.
|
|
163
165
|
ERROR
|
|
166
|
+
exit(1)
|
|
164
167
|
end
|
|
165
168
|
|
|
166
169
|
# For backward compatibility
|
|
167
170
|
task :reference do
|
|
168
|
-
|
|
171
|
+
warn <<-ERROR
|
|
169
172
|
The "reference" task is deprecated.
|
|
170
173
|
|
|
171
174
|
Prefer "release:prepare" which manage all pre-release steps, or directly run
|
|
172
175
|
the "strings:generate:reference" task.
|
|
173
176
|
ERROR
|
|
177
|
+
exit(1)
|
|
174
178
|
end
|
data/lib/voxpupuli/release.rb
CHANGED
data/voxpupuli-release.gemspec
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
|
3
4
|
require 'voxpupuli/release/version'
|
|
4
5
|
|
|
5
6
|
Gem::Specification.new do |s|
|
|
@@ -9,17 +10,19 @@ Gem::Specification.new do |s|
|
|
|
9
10
|
s.email = ['voxpupuli@groups.io']
|
|
10
11
|
s.homepage = 'https://github.com/voxpupuli/voxpupuli-release'
|
|
11
12
|
s.summary = 'Helpers for deploying Vox Pupuli modules'
|
|
12
|
-
s.description = s.summary
|
|
13
13
|
s.licenses = 'Apache-2.0'
|
|
14
14
|
|
|
15
|
-
s.required_ruby_version = '>= 2.
|
|
15
|
+
s.required_ruby_version = '>= 2.7', '< 4'
|
|
16
16
|
|
|
17
17
|
s.files = `git ls-files`.split("\n")
|
|
18
|
-
s.
|
|
19
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
|
20
19
|
|
|
21
20
|
# Runtime dependencies, but also probably dependencies of requiring projects
|
|
22
|
-
s.add_runtime_dependency '
|
|
23
|
-
s.add_runtime_dependency '
|
|
24
|
-
s.add_runtime_dependency 'puppet-
|
|
21
|
+
s.add_runtime_dependency 'faraday-retry', '~> 2.1'
|
|
22
|
+
s.add_runtime_dependency 'github_changelog_generator', '~> 1.16', '>= 1.16.4'
|
|
23
|
+
s.add_runtime_dependency 'puppet-blacksmith', '~> 7.0'
|
|
24
|
+
s.add_runtime_dependency 'puppet-strings', '~> 4'
|
|
25
|
+
s.add_runtime_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
|
26
|
+
|
|
27
|
+
s.add_development_dependency 'voxpupuli-rubocop', '~> 2.0.0'
|
|
25
28
|
end
|
metadata
CHANGED
|
@@ -1,58 +1,112 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: voxpupuli-release
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vox Pupuli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: faraday-retry
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '2.1'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '2.1'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: github_changelog_generator
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '1.16'
|
|
17
34
|
- - ">="
|
|
18
35
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
36
|
+
version: 1.16.4
|
|
20
37
|
type: :runtime
|
|
21
38
|
prerelease: false
|
|
22
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
40
|
requirements:
|
|
41
|
+
- - "~>"
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '1.16'
|
|
24
44
|
- - ">="
|
|
25
45
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
46
|
+
version: 1.16.4
|
|
27
47
|
- !ruby/object:Gem::Dependency
|
|
28
48
|
name: puppet-blacksmith
|
|
29
49
|
requirement: !ruby/object:Gem::Requirement
|
|
30
50
|
requirements:
|
|
31
|
-
- - "
|
|
51
|
+
- - "~>"
|
|
32
52
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
53
|
+
version: '7.0'
|
|
34
54
|
type: :runtime
|
|
35
55
|
prerelease: false
|
|
36
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
57
|
requirements:
|
|
38
|
-
- - "
|
|
58
|
+
- - "~>"
|
|
39
59
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
60
|
+
version: '7.0'
|
|
41
61
|
- !ruby/object:Gem::Dependency
|
|
42
62
|
name: puppet-strings
|
|
43
63
|
requirement: !ruby/object:Gem::Requirement
|
|
44
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: rake
|
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '13.0'
|
|
45
82
|
- - ">="
|
|
46
83
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
84
|
+
version: 13.0.6
|
|
48
85
|
type: :runtime
|
|
49
86
|
prerelease: false
|
|
50
87
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
88
|
requirements:
|
|
89
|
+
- - "~>"
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: '13.0'
|
|
52
92
|
- - ">="
|
|
53
93
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
55
|
-
|
|
94
|
+
version: 13.0.6
|
|
95
|
+
- !ruby/object:Gem::Dependency
|
|
96
|
+
name: voxpupuli-rubocop
|
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- - "~>"
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: 2.0.0
|
|
102
|
+
type: :development
|
|
103
|
+
prerelease: false
|
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
+
requirements:
|
|
106
|
+
- - "~>"
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: 2.0.0
|
|
109
|
+
description:
|
|
56
110
|
email:
|
|
57
111
|
- voxpupuli@groups.io
|
|
58
112
|
executables: []
|
|
@@ -63,6 +117,8 @@ files:
|
|
|
63
117
|
- ".github/workflows/release.yml"
|
|
64
118
|
- ".github/workflows/test.yml"
|
|
65
119
|
- ".gitignore"
|
|
120
|
+
- ".rubocop.yml"
|
|
121
|
+
- ".rubocop_todo.yml"
|
|
66
122
|
- CHANGELOG.md
|
|
67
123
|
- Gemfile
|
|
68
124
|
- LICENSE
|
|
@@ -85,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
85
141
|
requirements:
|
|
86
142
|
- - ">="
|
|
87
143
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: '2.
|
|
144
|
+
version: '2.7'
|
|
89
145
|
- - "<"
|
|
90
146
|
- !ruby/object:Gem::Version
|
|
91
147
|
version: '4'
|