reissue 0.1.3 → 0.1.5
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 -13
- data/Rakefile +1 -2
- data/lib/reissue/parser.rb +4 -2
- data/lib/reissue/rake.rb +5 -1
- data/lib/reissue/version.rb +1 -1
- 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: fe285dfda18d82a77561abf6281b96f1fb2e3739cbbf5c7b6b072f6e3fe12c94
|
4
|
+
data.tar.gz: 36c3e171e17214892f9cef24724c3c901cc56406c39218a4239a656ac02a354e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 189dbe15b33aff0e110d5b823e24cbc8444242f90a7f2e5543a7cce414213d428795dac6c7fedbe1e7eef6b1786238ecae61b4e0ae5e56947ee1e2ef77bac4cd
|
7
|
+
data.tar.gz: 39a8b27c26db53c0fe31ac39b0b6d0c5cef559bb67d3100b585ab5ee01a29b83907eb3241118dd481e8572647107f27101926ee11144cb1281f64176379f1ff3
|
data/CHANGELOG.md
CHANGED
@@ -5,22 +5,15 @@ 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.1.
|
9
|
-
|
10
|
-
### Added
|
11
|
-
|
12
|
-
- Support for alhpa characters in version numbers
|
13
|
-
- Support for English names for Greek alphabet letters in version numbers
|
8
|
+
## [0.1.5] - 2024-06-09
|
14
9
|
|
15
10
|
### Fixed
|
16
11
|
|
17
|
-
-
|
18
|
-
- Documentation on the refined redo method in Gem::Version
|
19
|
-
- Limit major numbers to Integers
|
20
|
-
- Handle empty changelog files
|
12
|
+
- Fixed incorrect handling of missing empty last line
|
21
13
|
|
22
|
-
## [0.1.
|
14
|
+
## [0.1.4] - 2024-06-09
|
23
15
|
|
24
|
-
### Fixed
|
16
|
+
### Fixed
|
25
17
|
|
26
|
-
-
|
18
|
+
- Handle changlog files without an empty last line
|
19
|
+
- Handle empty version_limit in reformat task
|
data/Rakefile
CHANGED
data/lib/reissue/parser.rb
CHANGED
@@ -13,7 +13,7 @@ module Reissue
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def parse
|
16
|
-
scanner = StringScanner.new(@changelog)
|
16
|
+
scanner = StringScanner.new(@changelog) << "\n"
|
17
17
|
@parts << parse_title(scanner)
|
18
18
|
@parts << parse_preamble(scanner)
|
19
19
|
@parts << parse_versions(scanner)
|
@@ -67,7 +67,9 @@ module Reissue
|
|
67
67
|
scanner.skip(/\s+/)
|
68
68
|
|
69
69
|
next_line = scanner.scan_until(/\n/)
|
70
|
-
if next_line.nil? || next_line.strip.empty?
|
70
|
+
if next_line.nil? || next_line.strip.empty?
|
71
|
+
return changes
|
72
|
+
elsif next_line.match?(VERSION_MATCH)
|
71
73
|
scanner.unscan
|
72
74
|
return changes
|
73
75
|
end
|
data/lib/reissue/rake.rb
CHANGED
@@ -74,7 +74,11 @@ module Reissue
|
|
74
74
|
|
75
75
|
desc "Reformat the changelog file to ensure it is correctly formatted."
|
76
76
|
task "#{name}:reformat", [:version_limit] do |task, args|
|
77
|
-
version_limit = args[:version_limit].
|
77
|
+
version_limit = if args[:version_limit].nil?
|
78
|
+
self.version_limit
|
79
|
+
else
|
80
|
+
args[:version_limit].to_i
|
81
|
+
end
|
78
82
|
Reissue.reformat(changelog_file, version_limit:)
|
79
83
|
end
|
80
84
|
|
data/lib/reissue/version.rb
CHANGED