runger_release_assistant 2.0.1 → 3.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c64fb43dfbe91b1c74a31ca9be643acbd962066cf88af3b15eac5f015cbafdf
4
- data.tar.gz: d3c9c7be04b2090ec11b2e1b8d921d290016a482dbcffaec6736f842b49ad301
3
+ metadata.gz: ffa8ec1176a4f808d47d73a770f827c00d54ab9fcc33055066a80c682960c4d1
4
+ data.tar.gz: f6fd6895dc4166f549caea645239702dc7dfa6e7423ade900c26347f872b3078
5
5
  SHA512:
6
- metadata.gz: 99766ce92a2d6d84f062cc10c894ac2fd907eb69a68bf5b4c67804dae349d42c65adae287a92a6d43364668d4ade008bd662df19bdebd766d594be62a160b95c
7
- data.tar.gz: 4401ed53ff4dffa618da6739583597691d31063a1cdb4364ecb086e6444b9d33e73abab77355561d3e75e61c60c44db42ab3d4db581b68825a7d4de09b145e28
6
+ metadata.gz: b119572e24db21699e050d13a108b39e561e7f9b2e4e2dffa307254baaafded360820ca790579642cd73ab9c5ac632297b3e11f59d93ee0493e5b8cbe81988c7
7
+ data.tar.gz: 5ef00860230351fd6de133aa076925872bf384de53e0788c9d9f1598615a9e11eb0d1324ce4779d40cd2acdda1e5a8c0b3af66c65b071321b0c5fc2da2424135
@@ -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,10 @@
1
+ ## Unreleased
2
+ [no unreleased changes yet]
3
+
4
+ ## v3.0.0 (2025-03-20)
5
+ - Stop creating a new alpha version after release.
6
+ - Push to git even if pushing to RubyGems is not enabled.
7
+
1
8
  ## v2.0.1 (2025-03-19)
2
9
  - Add `rake` as a dependency.
3
10
 
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.0)
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.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
@@ -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.0'
6
6
  end
7
7
  # rubocop:enable Style/StaticClass
@@ -81,13 +81,12 @@ 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
84
 
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]
85
+ if @options[:rubygems] && @options[:git]
86
+ push_to_rubygems_and_git
87
+ elsif @options[:git]
88
+ push_to_git
89
+ end
91
90
  rescue => error
92
91
  logger.error(<<~ERROR_LOG)
93
92
  \n
@@ -116,7 +115,6 @@ class RungerReleaseAssistant
116
115
  def print_release_info
117
116
  logger.info("You are running the release process with options #{@options.to_h}.")
118
117
  logger.info("Current released version is #{current_released_version.blue}.")
119
- logger.info("Current alpha version is #{current_version.yellow}.")
120
118
  logger.info("Next version will be #{next_version.green}.")
121
119
 
122
120
  print_changelog_content_of_upcoming_release
@@ -168,16 +166,12 @@ class RungerReleaseAssistant
168
166
  /(#+) Unreleased/,
169
167
  "\\1 v#{next_version} (#{Date.current.iso8601})",
170
168
  )
171
- write_file(changelog_path, new_changelog_content)
172
- end
173
169
 
174
- def update_changelog_for_alpha
175
- old_changelog_content = file_contents(changelog_path)
176
170
  write_file(changelog_path, <<~NEW_CHANGELOG_CONTENT)
177
171
  ## Unreleased
178
172
  [no unreleased changes yet]
179
173
 
180
- #{old_changelog_content.rstrip}
174
+ #{new_changelog_content.rstrip}
181
175
  NEW_CHANGELOG_CONTENT
182
176
  end
183
177
 
@@ -328,14 +322,6 @@ class RungerReleaseAssistant
328
322
  version_calculator.increment_for(@options[:type])
329
323
  end
330
324
 
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
325
  memo_wise \
340
326
  def version_calculator
341
327
  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.0
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