runger_release_assistant 2.0.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c64fb43dfbe91b1c74a31ca9be643acbd962066cf88af3b15eac5f015cbafdf
4
- data.tar.gz: d3c9c7be04b2090ec11b2e1b8d921d290016a482dbcffaec6736f842b49ad301
3
+ metadata.gz: 3522c9bec05a80dc5bdb7f4c116e58eb9bddf47d3f28686c644d4b6f08f9f28b
4
+ data.tar.gz: 8a8cf83bb094b37c53f6fcc000c884e268827f7affde2f1749d8cecd396ba6c0
5
5
  SHA512:
6
- metadata.gz: 99766ce92a2d6d84f062cc10c894ac2fd907eb69a68bf5b4c67804dae349d42c65adae287a92a6d43364668d4ade008bd662df19bdebd766d594be62a160b95c
7
- data.tar.gz: 4401ed53ff4dffa618da6739583597691d31063a1cdb4364ecb086e6444b9d33e73abab77355561d3e75e61c60c44db42ab3d4db581b68825a7d4de09b145e28
6
+ metadata.gz: 12b81930e8f9397998f1d4d2b1b908890c763c20e450f20f9595944baa827ddf662bf09d1f8b5dd105771dca405299f853ffb586481f58a3a665fafb539773db
7
+ data.tar.gz: 3bac8b7ab749befa4037fc8ad2fb6dffed46b33602a109ce14e2af0ee027719ef588586e45e2b6fe570fddf4b0a318b55dd437efea2fb4ab1f634f8f7e880090
@@ -20,7 +20,5 @@ jobs:
20
20
  run: bin/rubocop --format clang
21
21
  - name: Run RSpec tests
22
22
  run: bin/rspec --format progress
23
- - name: Ensure alpha version
24
- run: grep alpha lib/runger_release_assistant/version.rb
25
23
  - name: Ensure no git diff
26
24
  run: git diff --exit-code
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## Unreleased
2
+ [no unreleased changes yet]
3
+
4
+ ## v3.0.1 (2025-03-20)
5
+ [no unreleased changes yet]
6
+
7
+ ## v3.0.0 (2025-03-20)
8
+ - Stop creating a new alpha version after release.
9
+ - Push to git even if pushing to RubyGems is not enabled.
10
+
1
11
  ## v2.0.1 (2025-03-19)
2
12
  - Add `rake` as a dependency.
3
13
 
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- runger_release_assistant (2.0.1)
12
+ runger_release_assistant (3.0.1)
13
13
  activesupport (>= 6)
14
14
  memo_wise (>= 1.7)
15
15
  rainbow (>= 3.0)
@@ -32,7 +32,7 @@ GEM
32
32
  securerandom (>= 0.3)
33
33
  tzinfo (~> 2.0, >= 2.0.5)
34
34
  uri (>= 0.13.1)
35
- ast (2.4.2)
35
+ ast (2.4.3)
36
36
  base64 (0.2.0)
37
37
  benchmark (0.4.0)
38
38
  bigdecimal (3.1.9)
@@ -57,7 +57,7 @@ GEM
57
57
  method_source (1.1.0)
58
58
  minitest (5.25.5)
59
59
  parallel (1.26.3)
60
- parser (3.3.7.1)
60
+ parser (3.3.7.2)
61
61
  ast (~> 2.4.1)
62
62
  racc
63
63
  pp (0.6.2)
@@ -145,7 +145,7 @@ DEPENDENCIES
145
145
 
146
146
  CHECKSUMS
147
147
  activesupport (8.0.2) sha256=8565cddba31b900cdc17682fd66ecd020441e3eef320a9930285394e8c07a45e
148
- ast (2.4.2) sha256=1e280232e6a33754cde542bc5ef85520b74db2aac73ec14acef453784447cc12
148
+ ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
149
149
  base64 (0.2.0) sha256=0f25e9b21a02a0cc0cea8ef92b2041035d39350946e8789c562b2d1a3da01507
150
150
  benchmark (0.4.0) sha256=0f12f8c495545e3710c3e4f0480f63f06b4c842cc94cec7f33a956f5180e874a
151
151
  bigdecimal (3.1.9) sha256=2ffc742031521ad69c2dfc815a98e426a230a3d22aeac1995826a75dabfad8cc
@@ -166,7 +166,7 @@ CHECKSUMS
166
166
  method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
167
167
  minitest (5.25.5) sha256=391b6c6cb43a4802bfb7c93af1ebe2ac66a210293f4a3fb7db36f2fc7dc2c756
168
168
  parallel (1.26.3) sha256=d86babb7a2b814be9f4b81587bf0b6ce2da7d45969fab24d8ae4bf2bb4d4c7ef
169
- parser (3.3.7.1) sha256=7dbe61618025519024ac72402a6677ead02099587a5538e84371b76659e6aca1
169
+ parser (3.3.7.2) sha256=c71de9076be0b84459a268581b5aa75e5eeaac892b564430371d1f8eb55fb65f
170
170
  pp (0.6.2) sha256=947ec3120c6f92195f8ee8aa25a7b2c5297bb106d83b41baa02983686577b6ff
171
171
  prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
172
172
  prism (1.4.0) sha256=dc0e3e00e93160213dc2a65519d9002a4a1e7b962db57d444cf1a71565bb703e
@@ -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 (2.0.1)
193
+ runger_release_assistant (3.0.1)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  # rubocop:disable Style/StaticClass
4
4
  class RungerReleaseAssistant
5
- VERSION = '2.0.1'
5
+ VERSION = '3.0.1'
6
6
  end
7
7
  # rubocop:enable Style/StaticClass
@@ -81,13 +81,7 @@ class RungerReleaseAssistant
81
81
  bundle_install
82
82
  commit_changes(message: "Prepare to release v#{next_version}")
83
83
  create_tag
84
- push_to_rubygems_and_git if @options[:rubygems] && @options[:git]
85
-
86
- update_changelog_for_alpha
87
- update_version_file(alpha_version_after_next_version)
88
- bundle_install
89
- commit_changes(message: "Bump to v#{alpha_version_after_next_version}")
90
- push_to_git if @options[:git]
84
+ push_to_rubygems_and_or_git
91
85
  rescue => error
92
86
  logger.error(<<~ERROR_LOG)
93
87
  \n
@@ -116,7 +110,6 @@ class RungerReleaseAssistant
116
110
  def print_release_info
117
111
  logger.info("You are running the release process with options #{@options.to_h}.")
118
112
  logger.info("Current released version is #{current_released_version.blue}.")
119
- logger.info("Current alpha version is #{current_version.yellow}.")
120
113
  logger.info("Next version will be #{next_version.green}.")
121
114
 
122
115
  print_changelog_content_of_upcoming_release
@@ -168,16 +161,12 @@ class RungerReleaseAssistant
168
161
  /(#+) Unreleased/,
169
162
  "\\1 v#{next_version} (#{Date.current.iso8601})",
170
163
  )
171
- write_file(changelog_path, new_changelog_content)
172
- end
173
164
 
174
- def update_changelog_for_alpha
175
- old_changelog_content = file_contents(changelog_path)
176
165
  write_file(changelog_path, <<~NEW_CHANGELOG_CONTENT)
177
166
  ## Unreleased
178
167
  [no unreleased changes yet]
179
168
 
180
- #{old_changelog_content.rstrip}
169
+ #{new_changelog_content.rstrip}
181
170
  NEW_CHANGELOG_CONTENT
182
171
  end
183
172
 
@@ -205,13 +194,23 @@ class RungerReleaseAssistant
205
194
  "v#{version}"
206
195
  end
207
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
+
208
207
  def push_to_git
209
208
  logger.debug('Pushing to git remote')
210
209
  execute_command('git push')
211
210
  execute_command('git push --tags')
212
211
  end
213
212
 
214
- def push_to_rubygems_and_git
213
+ def push_to_rubygems
215
214
  logger.debug('Pushing to RubyGems and git')
216
215
  # Always show system output because 2FA should be enabled, which requires user to see the prompt
217
216
  execute_command('bundle exec rake release', show_system_output: true)
@@ -328,14 +327,6 @@ class RungerReleaseAssistant
328
327
  version_calculator.increment_for(@options[:type])
329
328
  end
330
329
 
331
- def alpha_version_after_next_version
332
- next_patch_version =
333
- RungerReleaseAssistant::VersionCalculator.new(
334
- current_version: next_version,
335
- ).increment_for('patch')
336
- "#{next_patch_version}.alpha"
337
- end
338
-
339
330
  memo_wise \
340
331
  def version_calculator
341
332
  RungerReleaseAssistant::VersionCalculator.new(current_version:)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runger_release_assistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-19 00:00:00.000000000 Z
10
+ date: 2025-03-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport