voxpupuli-release 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +33 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +17 -0
- data/Gemfile +2 -2
- data/README.md +8 -6
- data/Rakefile_ci +3 -0
- data/lib/voxpupuli/release/rake_tasks.rb +7 -7
- data/lib/voxpupuli/release/version.rb +1 -1
- data/voxpupuli-release.gemspec +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 751f19a8d08f56a9532bb4fbd39cc13b2b1c2ab9da80a94fff1c475fbd077afd
|
4
|
+
data.tar.gz: 7517e3e13fc487bf58975b0581835a901c9e3cfebc9f11f374e91fef2397527f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5b8bac00028d16dd462c129adcf275ecbb2295581ffeeb4187d6fd6ddc4efbaebec7786ebbb4fde12aa80047091505a48013be27cf425256c10d22094b5591c
|
7
|
+
data.tar.gz: 92ebe8cd30cc86a27e37d46ce0103b23ce657035efe13d97d4461c3346ecf82f8fde2aee6c02f9541460f82b8db903e3b84f87ee60c5f587dab91665d760f258
|
@@ -0,0 +1,33 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
- pull_request
|
5
|
+
- push
|
6
|
+
|
7
|
+
env:
|
8
|
+
BUNDLE_WITHOUT: release
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
test:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
fail-fast: false
|
15
|
+
matrix:
|
16
|
+
ruby:
|
17
|
+
- "2.4"
|
18
|
+
- "2.5"
|
19
|
+
- "2.6"
|
20
|
+
- "2.7"
|
21
|
+
- "3.0"
|
22
|
+
name: Ruby ${{ matrix.ruby }}
|
23
|
+
steps:
|
24
|
+
- uses: actions/checkout@v2
|
25
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
26
|
+
uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby }}
|
29
|
+
bundler-cache: true
|
30
|
+
- name: Run tests
|
31
|
+
run: bundle exec rake --rakefile Rakefile_ci -T | grep release
|
32
|
+
- name: Verify gem builds
|
33
|
+
run: gem build *.gemspec
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,23 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [v1.2.0](https://github.com/voxpupuli/voxpupuli-release-gem/tree/v1.2.0) (2021-10-28)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/voxpupuli-release-gem/compare/v1.1.0...v1.2.0)
|
8
|
+
|
9
|
+
**Implemented enhancements:**
|
10
|
+
|
11
|
+
- Cleanup references to Travis CI in rake tasks [\#32](https://github.com/voxpupuli/voxpupuli-release-gem/pull/32) ([genebean](https://github.com/genebean))
|
12
|
+
|
13
|
+
**Fixed bugs:**
|
14
|
+
|
15
|
+
- Fix syntax highlighting & add warning to travis\_release [\#33](https://github.com/voxpupuli/voxpupuli-release-gem/pull/33) ([ekohl](https://github.com/ekohl))
|
16
|
+
|
17
|
+
**Merged pull requests:**
|
18
|
+
|
19
|
+
- Enable basic gem testing [\#31](https://github.com/voxpupuli/voxpupuli-release-gem/pull/31) ([bastelfreak](https://github.com/bastelfreak))
|
20
|
+
- gemspec: switch to https URLs [\#30](https://github.com/voxpupuli/voxpupuli-release-gem/pull/30) ([bastelfreak](https://github.com/bastelfreak))
|
21
|
+
|
5
22
|
## [v1.1.0](https://github.com/voxpupuli/voxpupuli-release-gem/tree/v1.1.0) (2021-10-15)
|
6
23
|
|
7
24
|
[Full Changelog](https://github.com/voxpupuli/voxpupuli-release-gem/compare/v1.0.2...v1.1.0)
|
data/Gemfile
CHANGED
@@ -2,6 +2,6 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
group :release do
|
6
|
-
gem 'github_changelog_generator', '>= 1.16.1', :require => false
|
5
|
+
group :release, optional: true do
|
6
|
+
gem 'github_changelog_generator', '>= 1.16.1', :require => false if RUBY_VERSION >= '2.5.0'
|
7
7
|
end
|
data/README.md
CHANGED
@@ -7,10 +7,11 @@
|
|
7
7
|
|
8
8
|
This is a helper Gem for the Vox Pupuli release workflow. This Gem currently serves only to encapsulate common `rake` tasks related to releasing modules.
|
9
9
|
|
10
|
-
|
10
|
+
## Usage
|
11
|
+
|
11
12
|
Add the `voxpupuli-release` Gem to your `Gemfile`:
|
12
13
|
|
13
|
-
```
|
14
|
+
```ruby
|
14
15
|
gem 'voxpupuli-release', git: 'https://github.com/voxpupuli/voxpupuli-release-gem'
|
15
16
|
```
|
16
17
|
|
@@ -22,8 +23,8 @@ require 'voxpupuli-release'
|
|
22
23
|
|
23
24
|
To cut a new release of your module, ensure the `metadata.json` reflects the proper version. Also ensure that the `CHANGELOG.md` has a note about the release and that it actually is named Release or release, some old modules refer to it as Version, which won't work. Lastly check that no tag exists with that version number (format `v#.#.#`), and then run:
|
24
25
|
|
25
|
-
```
|
26
|
-
bundle exec rake
|
26
|
+
```plain
|
27
|
+
bundle exec rake release
|
27
28
|
```
|
28
29
|
|
29
30
|
## License
|
@@ -33,9 +34,10 @@ This gem is licensed under the Apache-2 license.
|
|
33
34
|
## Release information
|
34
35
|
|
35
36
|
To make a new release, please do:
|
36
|
-
|
37
|
+
|
38
|
+
* update the version in `lib/voxpupuli/release/version.rb`
|
37
39
|
* Install gems with `bundle install --with release --path .vendor`
|
38
40
|
* generate the changelog with `bundle exec rake changelog`
|
39
41
|
* Check if the new version matches the closed issues/PRs in the changelog
|
40
42
|
* Create a PR with it
|
41
|
-
* After it got merged, push a tag. GitHub
|
43
|
+
* After it got merged, push a tag. GitHub Actions will do the actual release to Rubygems and GitHub Packages
|
data/Rakefile_ci
ADDED
@@ -1,8 +1,7 @@
|
|
1
1
|
require 'puppet_blacksmith/rake_tasks'
|
2
2
|
|
3
|
-
desc '
|
4
|
-
task
|
5
|
-
|
3
|
+
desc 'Release via GitHub Actions'
|
4
|
+
task :release do
|
6
5
|
Blacksmith::RakeTask.new do |t|
|
7
6
|
t.build = false # do not build the module nor push it to the Forge
|
8
7
|
t.tag_sign = true # sign release with gpg
|
@@ -28,14 +27,15 @@ task "travis_release" do
|
|
28
27
|
ENV['BLACKSMITH_FULL_VERSION'] = v_new
|
29
28
|
Rake::Task["module:bump:full"].invoke
|
30
29
|
|
31
|
-
# push it out, and let
|
30
|
+
# push it out, and let GitHub Actions do the release:
|
32
31
|
g.commit_modulefile!(v_new)
|
33
32
|
g.push!
|
34
33
|
end
|
35
34
|
|
36
|
-
desc '
|
37
|
-
task
|
38
|
-
|
35
|
+
desc 'Depreciated: use the "release" task instead'
|
36
|
+
task "travis_release" do
|
37
|
+
STDERR.puts "Depreciated: use the 'release' task instead"
|
38
|
+
Rake::Task['release'].invoke
|
39
39
|
end
|
40
40
|
|
41
41
|
desc 'Check Changelog.'
|
data/voxpupuli-release.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Voxpupuli::Release::VERSION
|
8
8
|
s.authors = ['Vox Pupuli']
|
9
9
|
s.email = ['voxpupuli@groups.io']
|
10
|
-
s.homepage = '
|
10
|
+
s.homepage = 'https://github.com/voxpupuli/voxpupuli-release-gem'
|
11
11
|
s.summary = 'Helpers for deploying Vox Pupuli modules'
|
12
12
|
s.description = s.summary
|
13
13
|
s.licenses = 'Apache-2.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voxpupuli-release
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -47,17 +47,19 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- ".github/dependabot.yml"
|
49
49
|
- ".github/workflows/release.yml"
|
50
|
+
- ".github/workflows/test.yml"
|
50
51
|
- ".gitignore"
|
51
52
|
- CHANGELOG.md
|
52
53
|
- Gemfile
|
53
54
|
- LICENSE
|
54
55
|
- README.md
|
55
56
|
- Rakefile
|
57
|
+
- Rakefile_ci
|
56
58
|
- lib/voxpupuli/release.rb
|
57
59
|
- lib/voxpupuli/release/rake_tasks.rb
|
58
60
|
- lib/voxpupuli/release/version.rb
|
59
61
|
- voxpupuli-release.gemspec
|
60
|
-
homepage:
|
62
|
+
homepage: https://github.com/voxpupuli/voxpupuli-release-gem
|
61
63
|
licenses:
|
62
64
|
- Apache-2.0
|
63
65
|
metadata: {}
|