ruby-gem-release 0.2.1 → 0.2.2
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/CHANGELOG.md +5 -0
- data/README.md +3 -3
- data/lib/ruby-gem-release/source_control/git.rb +4 -2
- data/lib/ruby-gem-release/tasks.rb +1 -1
- data/lib/ruby-gem-release/version.rb +1 -1
- data/lib/ruby-gem-release/workflow/ruby_gem.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 469e595224af37d45f614a03b2a921a4dbf95cd48cce2e06a22a77afaaae1309
|
|
4
|
+
data.tar.gz: 4ca11264c3d08b8ab09c877e7405466d96c368db09937beb70bbd004fea83118
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 820916d325fa76a47d54aca30813ff79af9e565a8463df8fddc73ec69cd629ff256fa72dd36dad2cf01f1317bf015ee519342e823abcdb767a5338fd53eea773
|
|
7
|
+
data.tar.gz: 2b0185aa185436463e69b398371b8932bd8f1ed59964f1278f16274026c7c8d13fc1f7df51e2a8a1e2051782a43ad762a4355a4f45239159727b904df5e66372
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.2 (2026/11/08)
|
|
4
|
+
|
|
5
|
+
- [#18](https://github.com/dblock/ruby-gem-release/pull/18): Update README release tags as part of the next development iteration - [@dblock](https://github.com/dblock).
|
|
6
|
+
- [#19](https://github.com/dblock/ruby-gem-release/pull/19): Use the incremented version in next development iteration commit messages and update terminology throughout workflows and documentation - [@dblock](https://github.com/dblock).
|
|
7
|
+
|
|
3
8
|
## 0.2.1 (2026/11/07)
|
|
4
9
|
|
|
5
10
|
- [#17](https://github.com/dblock/ruby-gem-release/pull/17): Avoid extra blank lines when releasing an empty changelog section and document release adoption and collaborator permissions - [@dblock](https://github.com/dblock).
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Release your Ruby gem from GitHub Actions—without maintaining custom release scripts or storing a RubyGems API key.**
|
|
8
8
|
|
|
9
|
-
Update your changelog, validate and publish your gem, create its GitHub Release, and prepare the next development
|
|
9
|
+
Update your changelog, validate and publish your gem, create its GitHub Release, and prepare the next development iteration with one workflow dispatch. Choose your version and changelog formats; the standard workflow handles the release sequence.
|
|
10
10
|
|
|
11
11
|
- **No stored RubyGems API key:** Authenticate with RubyGems Trusted Publishing using OpenID Connect (OIDC).
|
|
12
12
|
- **Let collaborators release:** After one-time setup, collaborators with write access, including on personal repositories, can dispatch releases without repository admin access or their own RubyGems credentials.
|
|
@@ -31,7 +31,7 @@ RubyGemRelease::Workflow::RubyGem.new(
|
|
|
31
31
|
).install_tasks
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
The standard workflow handles changelog updates, publication, and the next development
|
|
34
|
+
The standard workflow handles changelog updates, publication, and the next development iteration, selecting the gemspec and repository using unambiguous defaults. See [Detailed Usage](docs/usage.md) for file examples and custom release callbacks.
|
|
35
35
|
|
|
36
36
|
### 2. Add the Release Workflow
|
|
37
37
|
|
|
@@ -54,7 +54,7 @@ permissions:
|
|
|
54
54
|
|
|
55
55
|
jobs:
|
|
56
56
|
release:
|
|
57
|
-
uses: dblock/ruby-gem-release/.github/workflows/release.yml@v0.2.
|
|
57
|
+
uses: dblock/ruby-gem-release/.github/workflows/release.yml@v0.2.1
|
|
58
58
|
with:
|
|
59
59
|
ruby-version: '3.3'
|
|
60
60
|
rubygems-owner: ${{ inputs.rubygems-owner }}
|
|
@@ -45,9 +45,11 @@ module RubyGemRelease
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def commit_next!(release)
|
|
48
|
+
raise ArgumentError, 'next development iteration version is required' if release.next_version.to_s.empty?
|
|
49
|
+
|
|
48
50
|
@release = release
|
|
49
51
|
@next_commit_parent = head
|
|
50
|
-
commit_changes("Prepare next development
|
|
52
|
+
commit_changes("Prepare next development iteration, #{release.next_version}", required: true)
|
|
51
53
|
end
|
|
52
54
|
|
|
53
55
|
def tag!(release)
|
|
@@ -90,7 +92,7 @@ module RubyGemRelease
|
|
|
90
92
|
def commit_changes(message, required:)
|
|
91
93
|
run('add', '-A')
|
|
92
94
|
output = run('diff', '--cached', '--name-only')
|
|
93
|
-
raise '
|
|
95
|
+
raise 'Preparing the next development iteration did not change any files' if required && output.empty?
|
|
94
96
|
return head if output.empty?
|
|
95
97
|
|
|
96
98
|
run('commit', '-m', message)
|
|
@@ -69,7 +69,7 @@ module RubyGemRelease
|
|
|
69
69
|
release = context(before_release: true)
|
|
70
70
|
@before_release&.call(release)
|
|
71
71
|
end
|
|
72
|
-
desc 'Run the next
|
|
72
|
+
desc 'Run the next development iteration preparation callback'
|
|
73
73
|
task(:after_release) do
|
|
74
74
|
release = context
|
|
75
75
|
@after_release&.call(release)
|