runger_release_assistant 4.0.0 → 4.1.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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/README.md +10 -0
- data/lib/runger_release_assistant/version.rb +1 -1
- data/lib/runger_release_assistant.rb +10 -5
- 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: 5ad2c73ce4962b251c902dbe5bdb69f65cd30efc604fa9de98ac16be34a964a9
|
4
|
+
data.tar.gz: ab3f19726d8156a7a16443e9898229c77a75a5b6a228d1a87ef8ae90c1b28d05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84899c866e3fa6935233cdca4ac0f2dea0e032160b10091830d50efb0f9e4ada98c2edc3bebf70236b2280638e2867879b15183786a094b3f0a2a6a807435656
|
7
|
+
data.tar.gz: d6193ba1d6e26f48e3d13dd09c8f884b1bbf89397bc207e22ef7a4ad477b3818607bddee70f57d115fae36354770e30b4e8a43280ad3c3d972a9a000de8b9ec2
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
## Unreleased
|
2
2
|
[no unreleased changes yet]
|
3
3
|
|
4
|
+
## v4.1.0 (2025-03-20)
|
5
|
+
- Support optional tag prefix (via a `tag_prefix` in `.release_assistant.yml`).
|
6
|
+
|
4
7
|
## v4.0.0 (2025-03-20)
|
5
8
|
- **BREAKING:** Always push to git, rather than requiring `git: true` to be specified in the config (or respecting at all a `git` option in the config).
|
6
9
|
|
data/Gemfile.lock
CHANGED
@@ -9,7 +9,7 @@ GIT
|
|
9
9
|
PATH
|
10
10
|
remote: .
|
11
11
|
specs:
|
12
|
-
runger_release_assistant (4.
|
12
|
+
runger_release_assistant (4.1.0)
|
13
13
|
activesupport (>= 6)
|
14
14
|
memo_wise (>= 1.7)
|
15
15
|
rainbow (>= 3.0)
|
@@ -190,7 +190,7 @@ CHECKSUMS
|
|
190
190
|
rubocop-rspec (3.5.0) sha256=710c942fe1af884ba8eea75cbb8bdbb051929a2208880a6fc2e2dce1eed5304c
|
191
191
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
192
192
|
runger_byebug (11.4.0) sha256=569e22ba2215f57e7f69e145fcb63be401e29fcd312f7936d813e12d0c7bbee6
|
193
|
-
runger_release_assistant (4.
|
193
|
+
runger_release_assistant (4.1.0)
|
194
194
|
runger_style (5.7.0) sha256=200790f3998e0b924df17efc9d440ddec99508bae983ba2a63f42b80624762f0
|
195
195
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
196
196
|
slop (4.10.1) sha256=844322b5ffcf17ed4815fdb173b04a20dd82b4fd93e3744c88c8fafea696d9c7
|
data/README.md
CHANGED
@@ -132,6 +132,16 @@ you'd also like to release the gem via RubyGems, then create a `.release_assista
|
|
132
132
|
executing `release --init`. Within that file, modify the default `rubygems: false` option to
|
133
133
|
`rubygems: true`.
|
134
134
|
|
135
|
+
## Tag prefix
|
136
|
+
|
137
|
+
By default, Git tags are created like `v1.0.0`. If you would like to prefix the git tag with any additional content, you may specify a `tag_prefix` in `.release_assistant.yml`, such as:
|
138
|
+
|
139
|
+
```yml
|
140
|
+
tag_prefix: gem/
|
141
|
+
```
|
142
|
+
|
143
|
+
This example would generate tags in the form `gem/v1.0.0`.
|
144
|
+
|
135
145
|
## Development
|
136
146
|
|
137
147
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run
|
@@ -180,11 +180,11 @@ class RungerReleaseAssistant
|
|
180
180
|
end
|
181
181
|
|
182
182
|
def create_tag
|
183
|
-
execute_command(%(git tag -a '#{
|
183
|
+
execute_command(%(git tag -a '#{git_tag(next_version)}' -m 'Version #{next_version}'))
|
184
184
|
end
|
185
185
|
|
186
|
-
def
|
187
|
-
"v#{version}"
|
186
|
+
def git_tag(version)
|
187
|
+
"#{@options[:tag_prefix]}v#{version}"
|
188
188
|
end
|
189
189
|
|
190
190
|
def push_to_rubygems_and_or_git
|
@@ -275,7 +275,7 @@ class RungerReleaseAssistant
|
|
275
275
|
{ 'DELTA_PAGER' => 'cat' },
|
276
276
|
'git',
|
277
277
|
'diff',
|
278
|
-
"#{
|
278
|
+
"#{latest_tag}...",
|
279
279
|
)
|
280
280
|
end
|
281
281
|
|
@@ -301,9 +301,14 @@ class RungerReleaseAssistant
|
|
301
301
|
file_path('CHANGELOG.md')
|
302
302
|
end
|
303
303
|
|
304
|
+
memo_wise \
|
305
|
+
def latest_tag
|
306
|
+
`git tag -l 'v[0-9]*.[0-9]*.[0-9]*' | sort -V | tail -1`.rstrip
|
307
|
+
end
|
308
|
+
|
304
309
|
memo_wise \
|
305
310
|
def current_released_version
|
306
|
-
|
311
|
+
latest_tag.match(/v(\d.*)$/)&.[](1)
|
307
312
|
end
|
308
313
|
|
309
314
|
memo_wise \
|