runger_release_assistant 3.0.0 → 3.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 +6 -0
- data/Gemfile.lock +2 -2
- data/lib/runger_release_assistant/version.rb +1 -1
- data/lib/runger_release_assistant.rb +13 -8
- 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: 11b27e7e856109119682f7f9679b45ae9080808c202fe06f41fcc25c17f9b2b0
|
4
|
+
data.tar.gz: ee1afb9d76030c8a3162270942a3ea1ceea8908b4482de6f79eac503acb63944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962284d0d77a4b778d954a32547c835a042e24e94416335e6fce3b9cb90c666290f7c83942d94526d2091f9bcdad8560fd602d9d2a8e98e3ff46f6bd515a6562
|
7
|
+
data.tar.gz: 1f215fe7db9888c011c4a40ba16a75729ffab4ea24b21102e2b740dbfc9a5daa50c3812e932cb357821aad325073a4e54811fd8d45ece20cdeb9f227d53a06b0
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
## Unreleased
|
2
2
|
[no unreleased changes yet]
|
3
3
|
|
4
|
+
## v3.1.0 (2025-03-20)
|
5
|
+
- Put tag name before tag message in git command.
|
6
|
+
|
7
|
+
## v3.0.1 (2025-03-20)
|
8
|
+
- Actually push to git even if RubyGems is also enabled.
|
9
|
+
|
4
10
|
## v3.0.0 (2025-03-20)
|
5
11
|
- Stop creating a new alpha version after release.
|
6
12
|
- Push to git even if pushing to RubyGems is not enabled.
|
data/Gemfile.lock
CHANGED
@@ -9,7 +9,7 @@ GIT
|
|
9
9
|
PATH
|
10
10
|
remote: .
|
11
11
|
specs:
|
12
|
-
runger_release_assistant (3.
|
12
|
+
runger_release_assistant (3.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 (3.
|
193
|
+
runger_release_assistant (3.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
|
@@ -81,12 +81,7 @@ class RungerReleaseAssistant
|
|
81
81
|
bundle_install
|
82
82
|
commit_changes(message: "Prepare to release v#{next_version}")
|
83
83
|
create_tag
|
84
|
-
|
85
|
-
if @options[:rubygems] && @options[:git]
|
86
|
-
push_to_rubygems_and_git
|
87
|
-
elsif @options[:git]
|
88
|
-
push_to_git
|
89
|
-
end
|
84
|
+
push_to_rubygems_and_or_git
|
90
85
|
rescue => error
|
91
86
|
logger.error(<<~ERROR_LOG)
|
92
87
|
\n
|
@@ -192,20 +187,30 @@ class RungerReleaseAssistant
|
|
192
187
|
end
|
193
188
|
|
194
189
|
def create_tag
|
195
|
-
execute_command(%(git tag
|
190
|
+
execute_command(%(git tag '#{git_tag_version(next_version)}' -m 'Version #{next_version}'))
|
196
191
|
end
|
197
192
|
|
198
193
|
def git_tag_version(version)
|
199
194
|
"v#{version}"
|
200
195
|
end
|
201
196
|
|
197
|
+
def push_to_rubygems_and_or_git
|
198
|
+
if @options[:rubygems]
|
199
|
+
push_to_rubygems
|
200
|
+
end
|
201
|
+
|
202
|
+
if @options[:git]
|
203
|
+
push_to_git
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
202
207
|
def push_to_git
|
203
208
|
logger.debug('Pushing to git remote')
|
204
209
|
execute_command('git push')
|
205
210
|
execute_command('git push --tags')
|
206
211
|
end
|
207
212
|
|
208
|
-
def
|
213
|
+
def push_to_rubygems
|
209
214
|
logger.debug('Pushing to RubyGems and git')
|
210
215
|
# Always show system output because 2FA should be enabled, which requires user to see the prompt
|
211
216
|
execute_command('bundle exec rake release', show_system_output: true)
|