reissue 0.1.3 → 0.1.5

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: fe285dfda18d82a77561abf6281b96f1fb2e3739cbbf5c7b6b072f6e3fe12c94
4
+ data.tar.gz: 36c3e171e17214892f9cef24724c3c901cc56406c39218a4239a656ac02a354e
5
5
  SHA512:
6
- metadata.gz: ef4281eae4ac476c5373b3980df1a5680664fa5a29eef206ff11649363e032d50d877dda2c6fb0d568fcd431de8a00653b8f13383f73cd7dbc4054ecfe0c8456
7
- data.tar.gz: 56581361691afd94738f157cf7b0d85d0fdfe9e449575ca95ea61d5f8c1de0a9c3d329e2a12162c0165082e41425016cb78482a088018128f06ac0a6ab7ecb4c
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.3] - 2024-06-09
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
- - Reissue.finalize returns the version and value as an array
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.2] - 2024-06-08
14
+ ## [0.1.4] - 2024-06-09
23
15
 
24
- ### Fixed:
16
+ ### Fixed
25
17
 
26
- - Fix references to Gem::Version from the top level
18
+ - Handle changlog files without an empty last line
19
+ - Handle empty version_limit in reformat task
data/Rakefile CHANGED
@@ -15,7 +15,6 @@ task default: :test
15
15
  require_relative "lib/reissue/gem"
16
16
 
17
17
  Reissue::Task.create :reissue do |task|
18
- task.updated_paths << "checksums"
19
18
  task.version_file = "lib/reissue/version.rb"
20
- task.commit = false
19
+ task.commit = true
21
20
  end
@@ -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? || 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.5"
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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay