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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be75d779c18c4c812b6d42568422f7204fbcf7c2
4
- data.tar.gz: 109cb7700121b7ca516b81dbbfcd93b8f4efcf7c
3
+ metadata.gz: cac491ab13fd370431dc683aea84b1ce386d3331
4
+ data.tar.gz: 3d07c2896c7888ba2878ebb58777dad97b1ef961
5
5
  SHA512:
6
- metadata.gz: eb30d9b5f2bf621ba062a8aa1d70b8eb3f9224bccadf13ac7e08a3a36856c551761f35affec2c653f4b6f16c4b1d5af75fb16cf126ba77be5d14b4e0918178c0
7
- data.tar.gz: a18d973aefddb4c97b5dbfb3d7e92b4d5396c59aba1dd8b3fc9694c5dd95da3e94f0cfc0a7d93595f25827e5268683a3786fbbcc3fc018e91e21286929edcb3d
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 ||= repo.log.between("v#{current_version}").
25
- map(&:message).
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
@@ -1,3 +1,3 @@
1
1
  class StructuredChangelog
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  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.0
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-08-22 00:00:00.000000000 Z
11
+ date: 2018-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler