structured_changelog 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/structured_changelog/release_preview.rb +9 -4
- data/lib/structured_changelog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cac491ab13fd370431dc683aea84b1ce386d3331
|
4
|
+
data.tar.gz: 3d07c2896c7888ba2878ebb58777dad97b1ef961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 702bf465bfe2a3e7f138f8fb9bdd65aec91aa2f2edc432db5c1b10feb5b12ed1d9fd05459c7f3008abe8faec7c4cf775076c2a4e78bc59995094c51674895d57
|
7
|
+
data.tar.gz: 8fd1ed2a0d6d0be5b358fc3354e4e24333c5cce67c91b0cb608b0760a04682496218bc60f03de829956078806592a3191e58fb0181feef4726de6394e3fe82c7
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@
|
|
5
5
|
* require release block lines to be ordered in descending severity
|
6
6
|
* disable strict semver version validation before 1.0.0
|
7
7
|
|
8
|
+
## RELEASE 0.11.1
|
9
|
+
|
10
|
+
* FIX: changelog:preview and changelog:compile tasks now render more than just the first release line in the commit log
|
11
|
+
|
8
12
|
## RELEASE 0.11.0
|
9
13
|
|
10
14
|
* FEATURE: `changelog:preview` task will output a preview of the release section that `changelog:compile` would add to the changelog
|
@@ -21,14 +21,19 @@ class StructuredChangelog
|
|
21
21
|
attr_reader :changelog, :repo
|
22
22
|
|
23
23
|
def release_notes
|
24
|
-
@release_notes ||=
|
25
|
-
|
26
|
-
flat_map { |message| message.split("\n") }.
|
27
|
-
grep(/^\*\ (BREAKING|FEATURE|ENHANCEMENT|FIX|DEPRECATION)\:/).
|
24
|
+
@release_notes ||= git_log_since_last_release.
|
25
|
+
split("\n").
|
28
26
|
map(&:strip).
|
27
|
+
grep(/^\*\ (BREAKING|FEATURE|ENHANCEMENT|FIX|DEPRECATION)\:/).
|
29
28
|
join("\n")
|
30
29
|
end
|
31
30
|
|
31
|
+
def git_log_since_last_release
|
32
|
+
repo.chdir do
|
33
|
+
`git log v#{current_version}..HEAD`.chomp
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
32
37
|
def current_version
|
33
38
|
@current_version ||= changelog.version
|
34
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: structured_changelog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Hoffman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|