conventional-changelog 1.2.0 → 1.2.1
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/README.md +1 -1
- data/conventional-changelog.gemspec +1 -1
- data/lib/conventional_changelog/git.rb +1 -1
- data/lib/conventional_changelog/version.rb +1 -1
- data/spec/generator_spec.rb +9 -5
- 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: ce0cf32de55422c10a531945e26796461ea641e2
|
4
|
+
data.tar.gz: 7d31b4086fabc18b11380d1cdae9700c1036af31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 530c060bb2db10a50be6df9df2dbb2abec50886b344687b17910c4e0197ce29d1a9ecca37b6c87e57ce22a67946bd03b617f3bcae412f7b73728da62359a9322
|
7
|
+
data.tar.gz: d0600c7e482b0b77bf1f22cc2dc9209a292ba88f7a58753af3875b64f52ec5e2718a2e50368f6873e66a1e19385c6b5ac67283ca845f08a8b863b766b1b87a12
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Generates a CHANGELOG.md file from Git metadata using the AngularJS commit conve
|
|
8
8
|
|
9
9
|
- [AngularJS Git Commit Message Conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/)
|
10
10
|
|
11
|
-
Since version 1.2.0
|
11
|
+
Since version 1.2.0 the scopes are optional.
|
12
12
|
|
13
13
|
|
14
14
|
## Installation
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["dc.rec1@gmail.com"]
|
11
11
|
spec.summary = %q{Ruby binary to generate a conventional changelog — Edit}
|
12
12
|
spec.description = %q{}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/dcrec1/conventional-changelog-ruby"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -12,7 +12,7 @@ module ConventionalChangelog
|
|
12
12
|
private
|
13
13
|
|
14
14
|
def self.log(options)
|
15
|
-
`git log --pretty=format:
|
15
|
+
`git log --pretty=format:"%h#{DELIMITER}%ad#{DELIMITER}%s%x09" --date=short --grep="^(feat|fix)(\\(.*\\))?:" -E #{version_filter(options)}`
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.version_filter(options)
|
data/spec/generator_spec.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe ConventionalChangelog::Generator do
|
4
|
+
let(:changelog) { File.open("CHANGELOG.md").read }
|
5
|
+
|
4
6
|
describe "#generate!" do
|
5
7
|
before :each do
|
6
8
|
FileUtils.rm "CHANGELOG.md", force: true
|
@@ -8,6 +10,8 @@ describe ConventionalChangelog::Generator do
|
|
8
10
|
|
9
11
|
it 'runs clean' do
|
10
12
|
expect { subject.generate! }.to_not raise_exception
|
13
|
+
expect(changelog).to include "support commits without scope"
|
14
|
+
expect(changelog).to include "change mocked code to correctly return commits without scope"
|
11
15
|
end
|
12
16
|
|
13
17
|
context "with no commits" do
|
@@ -17,7 +21,7 @@ describe ConventionalChangelog::Generator do
|
|
17
21
|
|
18
22
|
it 'creates an empty changelog when no commits' do
|
19
23
|
subject.generate!
|
20
|
-
expect(
|
24
|
+
expect(changelog).to eql "\n"
|
21
25
|
end
|
22
26
|
end
|
23
27
|
|
@@ -72,7 +76,7 @@ describe ConventionalChangelog::Generator do
|
|
72
76
|
|
73
77
|
|
74
78
|
BODY
|
75
|
-
expect(
|
79
|
+
expect(changelog).to eql body
|
76
80
|
end
|
77
81
|
|
78
82
|
it 'preserves previous changes' do
|
@@ -111,7 +115,7 @@ describe ConventionalChangelog::Generator do
|
|
111
115
|
#{previous_body}
|
112
116
|
BODY
|
113
117
|
subject.generate!
|
114
|
-
expect(
|
118
|
+
expect(changelog + "\n").to eql body
|
115
119
|
end
|
116
120
|
end
|
117
121
|
|
@@ -158,7 +162,7 @@ describe ConventionalChangelog::Generator do
|
|
158
162
|
#{previous_body}
|
159
163
|
BODY
|
160
164
|
subject.generate! version: '0.2.0'
|
161
|
-
expect(
|
165
|
+
expect(changelog + "\n").to eql body
|
162
166
|
end
|
163
167
|
end
|
164
168
|
|
@@ -188,7 +192,7 @@ describe ConventionalChangelog::Generator do
|
|
188
192
|
|
189
193
|
|
190
194
|
BODY
|
191
|
-
expect(
|
195
|
+
expect(changelog).to eql body
|
192
196
|
end
|
193
197
|
end
|
194
198
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conventional-changelog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Carrion
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,7 +108,7 @@ files:
|
|
108
108
|
- spec/cli_spec.rb
|
109
109
|
- spec/generator_spec.rb
|
110
110
|
- spec/spec_helper.rb
|
111
|
-
homepage:
|
111
|
+
homepage: https://github.com/dcrec1/conventional-changelog-ruby
|
112
112
|
licenses:
|
113
113
|
- MIT
|
114
114
|
metadata: {}
|