releasinator 0.7.2 → 0.7.3

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
  SHA1:
3
- metadata.gz: 5b20f93a033357d9693f22a79e902f877bb5fb66
4
- data.tar.gz: 12a453a37c9ab3cff00345b7ceb560978724e514
3
+ metadata.gz: dc7ca397ac171e6e7f94da6204f60e42424d4e1e
4
+ data.tar.gz: 967d9bac804daa9d9a6090aa90212c74fe15fc35
5
5
  SHA512:
6
- metadata.gz: 1c901d00a7f8f6177b60a7cf0c309f076f978a5ed988820dbe157b9b9c86e4716f05f8e522baa7704cc00e71d449cc1ef0f2427a93a993b284b99863fa57fb15
7
- data.tar.gz: 45f134a7199df5297dc9b4930bba9c1dc3ac271239a375c3169df3e2e096b81a50cb7f1469fb9ed14534ac2c75d988479fe1d493b2657ea0912d1a54a9d61ffd
6
+ metadata.gz: 04577f4337061b7cdfcb64383e8d2cc1136917519c155f69ff2485a25ca4bce2449a630e4aed7bba3c8cac3d506ef746a6d12d52ac636323dc69c1bdbf7070eb
7
+ data.tar.gz: ce559e15225fa3e9d41c153b733bf7d7b8e65a8d8ca959d6cc17ee4dcaa81f05b7800a742eb8edf09e4f4e52f8b3ab9439546cf8adf237809dfe68e1ba02e4c9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Releasinator release notes
2
2
  ==========================
3
3
 
4
+ 0.7.3
5
+ -----
6
+ * Fix changelog parsing regex to support "vX.Y.Z" version names.
7
+
4
8
  0.7.2
5
9
  -----
6
10
  * Fix changelog parsing regex to support beta/prerelease tags.
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Releasinator
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
3
3
  end
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.2
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-21 00:00:00.000000000 Z
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.2.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.