parse_a_changelog 1.1.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -1
  3. data/VERSION +1 -1
  4. data/lib/grammar.tt +15 -3
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e045590cfc9f23d38e8f2defb7eef9e0922d03abb4912a8b7b89f241e71e1163
4
- data.tar.gz: 22fb2fbc1e1a1cdee66307a2808b83ca1469028d9bae4f94e86f260f6169e1f5
3
+ metadata.gz: 00e6ad2d290f5f06bae47ddee2972e9621f1210083644ee3918a775f5a55ae6b
4
+ data.tar.gz: bbb0a503e5c628806c07217f1e5924b660b35855397a7e425ecd6418e42c6108
5
5
  SHA512:
6
- metadata.gz: 4c7f832c309f8ce46d459ba44016213b89ecd5465e6a6395f8b8fe2142deae05da2894a133fead184b0fc9d555eba54cc6251c211c267dfe8e1feff98496aa44
7
- data.tar.gz: 3dd90696a9fd42f3e05ec0d3c3f2faed89dc0fb50089382cd144f3772288ad6ef3272da5a31ed440ef38fc323582b0a73cd20dce1b0a29b3082bdf1c1259c713
6
+ metadata.gz: d6c18d140b5e252a3556fe4310006258866b9518f87cc185fe38f87ca81447cbfa75517c5d980d137c1a518dda50e3cf0671f7e9b454d0cebfe38782296f4730
7
+ data.tar.gz: 11f832db1f87b4f09b71b9aa564ada6004a2e745ffbb6e8c7a88432f2c4d1841aa60a95d33dc8c46999152a0f362738b9775aa43c1d5a3b44f2560f4e9426a11
data/CHANGELOG.md CHANGED
@@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.3.0] - 2023-07-12
10
+ ### Changed
11
+ - Allow versions to have 4 digits (eg., x.x.x.x)
12
+ [cyberark/parse-a-changelog#41](https://github.com/cyberark/parse-a-changelog/pulls/41)
13
+
14
+ ## [1.2.0] - 2021-06-20
15
+ ### Changed
16
+ - Allow CHANGELOG without SemVer declaration.
17
+ [cyberark/parse-a-changelog#37](https://github.com/cyberark/parse-a-changelog/issues/37)
18
+
9
19
  ## [1.1.0] - 2020-11-12
10
20
  ### Added
11
21
  - Allow for metadata section in version string.
@@ -72,7 +82,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
72
82
  - Open source license and contributing information
73
83
  - Change log and versioning information
74
84
 
75
- [Unreleased]: https://github.com/cyberark/parse-a-changelog/compare/v1.1.0...HEAD
85
+ [Unreleased]: https://github.com/cyberark/parse-a-changelog/compare/v1.3.0...HEAD
86
+ [1.2.0]: https://github.com/cyberark/parse-a-changelog/compare/v1.2.0...v1.3.0
87
+ [1.2.0]: https://github.com/cyberark/parse-a-changelog/compare/v1.1.0...v1.2.0
76
88
  [1.1.0]: https://github.com/cyberark/parse-a-changelog/compare/v1.0.2...v1.1.0
77
89
  [1.0.2]: https://github.com/cyberark/parse-a-changelog/compare/v1.0.1...v1.0.2
78
90
  [1.0.1]: https://github.com/cyberark/parse-a-changelog/compare/v1.0.0...v1.0.1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.3.0
data/lib/grammar.tt CHANGED
@@ -7,11 +7,19 @@ grammar KeepAChangelog
7
7
  '# Changelog' new_line
8
8
  'All notable changes to this project will be documented in this file.' new_line
9
9
  new_line
10
- 'The format is based on [Keep a Changelog](http' 's'? '://keepachangelog.com/en/1.0.0/)' new_line
11
- 'and this project adheres to [Semantic Versioning](http' 's'? '://semver.org/spec/v2.0.0.html).' new_line
10
+ keep_a_changelog_format '.'? new_line
11
+ (semver_convention new_line)?
12
12
  new_line
13
13
  end
14
14
 
15
+ rule keep_a_changelog_format
16
+ 'The format is based on [Keep a Changelog](http' 's'? '://keepachangelog.com/en/1.0.0/)'
17
+ end
18
+
19
+ rule semver_convention
20
+ 'and this project adheres to [Semantic Versioning](http' 's'? '://semver.org/spec/v2.0.0.html).'
21
+ end
22
+
15
23
  rule unreleased_section
16
24
  unreleased_header change_section? (new_line change_section)*
17
25
  end
@@ -45,7 +53,7 @@ grammar KeepAChangelog
45
53
  end
46
54
 
47
55
  rule release_version
48
- [0-9]+ '.' [0-9]+ '.' [0-9]+ pre_release_version metadata
56
+ [0-9]+ '.' [0-9]+ '.' [0-9]+ fourth_version_digit pre_release_version metadata
49
57
  end
50
58
 
51
59
  rule pre_release_version
@@ -56,6 +64,10 @@ grammar KeepAChangelog
56
64
  ( '+' [0-9A-Za-z-]+ dot_separated_group* ) / ''
57
65
  end
58
66
 
67
+ rule fourth_version_digit
68
+ ( '.' [0-9]+) / ''
69
+ end
70
+
59
71
  rule dot_separated_group
60
72
  '.' [0-9A-Za-z-]+
61
73
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parse_a_changelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Tuttle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-12 00:00:00.000000000 Z
11
+ date: 2023-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: treetop
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubygems_version: 3.1.2
103
+ rubygems_version: 3.1.6
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: A validator for the keep-a-changelog format