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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f27889f6d76a5e88ff44237fff80ff0364d9659bc8d656d23a508a6c5950dd44
4
- data.tar.gz: 102c22650f1cc0e74775efe6b79646bc4f4aec3063aef2a9b8c6c0492849725e
3
+ metadata.gz: a7c66c77dcfbdb035092802d02176419055145251987dda7cfc528c33cea8fce
4
+ data.tar.gz: 25a7dcf2f67a043c4f35bb779fa8603eac936f1633d71915068581beff1295af
5
5
  SHA512:
6
- metadata.gz: ef4281eae4ac476c5373b3980df1a5680664fa5a29eef206ff11649363e032d50d877dda2c6fb0d568fcd431de8a00653b8f13383f73cd7dbc4054ecfe0c8456
7
- data.tar.gz: 56581361691afd94738f157cf7b0d85d0fdfe9e449575ca95ea61d5f8c1de0a9c3d329e2a12162c0165082e41425016cb78482a088018128f06ac0a6ab7ecb4c
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
@@ -17,5 +17,5 @@ require_relative "lib/reissue/gem"
17
17
  Reissue::Task.create :reissue do |task|
18
18
  task.updated_paths << "checksums"
19
19
  task.version_file = "lib/reissue/version.rb"
20
- task.commit = false
20
+ task.commit = true
21
21
  end
@@ -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? || next_line.match?(VERSION_MATCH)
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].to_i || 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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reissue
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reissue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay