reissue 0.3.1 → 0.3.3

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: c6ac7b4c6d82f57ed9e9733bfa072344ea79c3b5075aaf4789f40815be528ebd
4
- data.tar.gz: a6eb54ae8e1037521b227f21869853292339c1b189e5ad8f060e62e044fdeaa4
3
+ metadata.gz: a5dba48c0385224669c8a69c5c660d6517a4cbd1fd567e81d8f3865db22c0d9c
4
+ data.tar.gz: fe1dc9b6633ead5fa21279ea7b43f67f394d36543452da65d811e12ba9ff7523
5
5
  SHA512:
6
- metadata.gz: 2481e4f823168b94f3374e97a3e2c55b7e394e4110c5fdd9cf8b4635b2919049e22de219f07d9efac7ec62168a97bc50a83227b30cad7fe5b8830268d95a43ca
7
- data.tar.gz: 9ca6fa4a75c7c9037f4289febae72552b777fb31fe5576a349fcd8f608c350d89e9f6beb4a66662e298afb67c2ee2bef44cc81a5a86be57ef04486f5a8a4d2ed
6
+ metadata.gz: 602db215d03fc43201417a833ca54d415293d947fd78c2ca36b94c698fcdc634c895b1a92b2c66fa7e274a738fb68dd3cd4b75d6d8ed342af5ff5ec6018b1e6d
7
+ data.tar.gz: ac01da29894ea7f2760e2b0e678d8b449c98aac52f30863f068709910732d306b506f40fb067597f9fd752a96eae610c0064ce1fd12f09d2b51a80f776bf16ce
data/CHANGELOG.md CHANGED
@@ -5,24 +5,18 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
- ## [0.3.1] - 2025-01-16
8
+ ## [0.3.3] - 2025-01-17
9
9
 
10
10
  ### Added
11
11
 
12
- - Add `retain_changelogs` option to control how to retain the changelog files for the previous versions.
12
+ - CODEOWNERS file
13
13
 
14
- ### Changed
14
+ ### Fixed
15
15
 
16
- - Set the name of the `reissue:branch` argument to `branch_name` to be clearer.
17
- - Inject the constants in the `create` method.
18
- - Updated the tested Ruby version to 3.4.
16
+ - Properly retain changelog on `reissue:finalize`
19
17
 
20
- ## [0.3.0] - 2024-09-06
18
+ ## [0.3.2] - 2025-01-16
21
19
 
22
- ### Added
23
-
24
- - Add `push_reissue` option to control pushing changes to the remote repository.
25
-
26
- ### Changed
20
+ ### Fixed
27
21
 
28
- - Default behavior of _this_ gem's release is to push finalize without a branch.
22
+ - Parser will handle nil changes
@@ -18,7 +18,7 @@ module Reissue
18
18
  private
19
19
 
20
20
  def versions
21
- @changelog["versions"].map do |data|
21
+ @changelog["versions"].to_a.map do |data|
22
22
  version = data["version"]
23
23
  date = data["date"]
24
24
  changes = data.fetch("changes") do
data/lib/reissue/rake.rb CHANGED
@@ -148,7 +148,7 @@ module Reissue
148
148
  desc "Finalize the changelog for an unreleased version to set the release date."
149
149
  task "#{name}:finalize", [:date] do |task, args|
150
150
  date = args[:date] || Time.now.strftime("%Y-%m-%d")
151
- version, date = formatter.finalize(date, changelog_file:)
151
+ version, date = formatter.finalize(date, changelog_file:, retain_changelogs:)
152
152
  finalize_message = "Finalize the changelog for version #{version} on #{date}"
153
153
  if commit_finalize
154
154
  tasker["#{name}:branch"].invoke("reissue/#{version}") if finalize_with_branch?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reissue
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.3"
5
5
  end
data/lib/reissue.rb CHANGED
@@ -41,9 +41,9 @@ module Reissue
41
41
  # @param changelog_file [String] The path to the changelog file.
42
42
  #
43
43
  # @return [Array] The version number and release date.
44
- def self.finalize(date = Date.today, changelog_file: "CHANGELOG.md")
44
+ def self.finalize(date = Date.today, changelog_file: "CHANGELOG.md", retain_changelogs: false)
45
45
  changelog_updater = ChangelogUpdater.new(changelog_file)
46
- changelog = changelog_updater.finalize(date:, changelog_file:)
46
+ changelog = changelog_updater.finalize(date:, changelog_file:, retain_changelogs:)
47
47
  changelog["versions"].first.slice("version", "date").values
48
48
  end
49
49
 
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reissue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 2025-01-16 00:00:00.000000000 Z
11
+ date: 2025-01-17 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: rake
@@ -49,6 +50,7 @@ metadata:
49
50
  homepage_uri: https://github.com/SOFware/reissue
50
51
  source_code_uri: https://github.com/SOFware/reissue
51
52
  changelog_uri: https://github.com/SOFware/reissue/blob/main/CHANGELOG.md
53
+ post_install_message:
52
54
  rdoc_options: []
53
55
  require_paths:
54
56
  - lib
@@ -63,7 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
65
  - !ruby/object:Gem::Version
64
66
  version: '0'
65
67
  requirements: []
66
- rubygems_version: 3.6.2
68
+ rubygems_version: 3.5.9
69
+ signing_key:
67
70
  specification_version: 4
68
71
  summary: Keep your versions and changelogs up to date and prepared for release.
69
72
  test_files: []