reissue 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -6
- data/Rakefile +1 -1
- data/lib/reissue/parser.rb +3 -1
- 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: a7c66c77dcfbdb035092802d02176419055145251987dda7cfc528c33cea8fce
|
4
|
+
data.tar.gz: 25a7dcf2f67a043c4f35bb779fa8603eac936f1633d71915068581beff1295af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0f14e1bd96f8da42a1cf5b55485c26b2dcf941200228b0032ec0a1686b71e23c37ff73ee4925422744c4a0818be15bb20dffb0e8f64f8d5e8bc991f97181e0d
|
7
|
+
data.tar.gz: 8d2e7d47bc7a8d81238370cd635f5998c01a3091894da80524473aafd3e4d628423896101f6f91478d3427ed278553703215dfd77ea2c5971bbb6391860ccf4d
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ 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.4] - 2024-06-09
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
- Handle changlog files without an empty last line
|
13
|
+
- Handle empty version_limit in reformat task
|
14
|
+
|
8
15
|
## [0.1.3] - 2024-06-09
|
9
16
|
|
10
17
|
### Added
|
@@ -18,9 +25,3 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
18
25
|
- Documentation on the refined redo method in Gem::Version
|
19
26
|
- Limit major numbers to Integers
|
20
27
|
- Handle empty changelog files
|
21
|
-
|
22
|
-
## [0.1.2] - 2024-06-08
|
23
|
-
|
24
|
-
### Fixed:
|
25
|
-
|
26
|
-
- Fix references to Gem::Version from the top level
|
data/Rakefile
CHANGED
data/lib/reissue/parser.rb
CHANGED
@@ -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