releasinator 0.7.2 → 0.7.3
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 +4 -0
- data/lib/changelog/validator.rb +4 -4
- data/lib/releasinator/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc7ca397ac171e6e7f94da6204f60e42424d4e1e
|
|
4
|
+
data.tar.gz: 967d9bac804daa9d9a6090aa90212c74fe15fc35
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 04577f4337061b7cdfcb64383e8d2cc1136917519c155f69ff2485a25ca4bce2449a630e4aed7bba3c8cac3d506ef746a6d12d52ac636323dc69c1bdbf7070eb
|
|
7
|
+
data.tar.gz: ce559e15225fa3e9d41c153b733bf7d7b8e65a8d8ca959d6cc17ee4dcaa81f05b7800a742eb8edf09e4f4e52f8b3ab9439546cf8adf237809dfe68e1ba02e4c9
|
data/CHANGELOG.md
CHANGED
data/lib/changelog/validator.rb
CHANGED
|
@@ -68,20 +68,20 @@ module Releasinator
|
|
|
68
68
|
|
|
69
69
|
def validate_changelog_contents(changelog_contents)
|
|
70
70
|
# Modified version of Vandamme::Parser::DEFAULT_REGEX to disallow versions with leading alpha characters
|
|
71
|
-
changelog_regex = Regexp.new('^#{0,3} ?([\d\.-]+\.[\w\d\.-]+[a-zA-Z0-9])(?: \W (\w+ \d{1,2}(?:st|nd|rd|th)?,\s\d{4}|\d{4}-\d{2}-\d{2}|\w+))?\n?[=-]*')
|
|
71
|
+
changelog_regex = Regexp.new('^#{0,3} ?(v?[\d\.-]+\.[\w\d\.-]+[a-zA-Z0-9])(?: \W (\w+ \d{1,2}(?:st|nd|rd|th)?,\s\d{4}|\d{4}-\d{2}-\d{2}|\w+))?\n?[=-]*')
|
|
72
72
|
parser = Vandamme::Parser.new(changelog: changelog_contents, version_header_exp: changelog_regex, format: 'markdown')
|
|
73
73
|
changelog_hash = parser.parse
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
if changelog_hash.empty?
|
|
76
76
|
Printer.fail("Unable to find any releases in the CHANGELOG.md. Please check that the formatting is correct.")
|
|
77
77
|
abort()
|
|
78
78
|
end
|
|
79
|
-
|
|
79
|
+
|
|
80
80
|
Printer.success("Found " + changelog_hash.count.to_s.bold + " release(s) in CHANGELOG.md.")
|
|
81
81
|
|
|
82
82
|
validate_semver(changelog_hash)
|
|
83
83
|
|
|
84
|
-
changelog_hash.each { |release, changelog|
|
|
84
|
+
changelog_hash.each { |release, changelog|
|
|
85
85
|
validate_single_changelog_entry(changelog)
|
|
86
86
|
}
|
|
87
87
|
|
data/lib/releasinator/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: releasinator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PayPal
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-09-
|
|
11
|
+
date: 2017-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
206
206
|
version: '0'
|
|
207
207
|
requirements: []
|
|
208
208
|
rubyforge_project:
|
|
209
|
-
rubygems_version: 2.
|
|
209
|
+
rubygems_version: 2.6.11
|
|
210
210
|
signing_key:
|
|
211
211
|
specification_version: 4
|
|
212
212
|
summary: The releasinator assists in building and releasing open source projects.
|