gantree 0.6.9 → 0.6.10
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/lib/gantree/release_notes.rb +4 -1
- data/lib/gantree/version.rb +1 -1
- data/spec/lib/gantree/1_release_notes_spec.rb +21 -0
- 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: 216ead17051468fc9d0b27b6b6b12c2059b71ffe
|
4
|
+
data.tar.gz: 1a6b633b99db501cccbbb13f712b485beb59f5e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aee8a6a1a500e83c2fc66a2cfbf4a50e3bb01a93621e62acd38ff5eb2c353a6d8cdfbfcb4713420850af054ac827804e047f5f4d29f9a210ace4e5cce283413
|
7
|
+
data.tar.gz: 73f6820e917a04d2ad10bbe81a9dd342e75b3edc93c6cc97574078851d9e184ab9f2f6eab1ab037fdc3ed68578a0c6ed508fd04e9ea8adba122d32e4066eae1d
|
@@ -48,7 +48,10 @@ module Gantree
|
|
48
48
|
# Get commits for this release
|
49
49
|
commits = git_log
|
50
50
|
commits = commits.split("COMMIT_SEPARATOR")
|
51
|
-
commits = commits.
|
51
|
+
commits = commits.
|
52
|
+
collect {|x| x.strip }.
|
53
|
+
reject {|x| x.empty? }.
|
54
|
+
collect {|x| x.gsub(/\n+/, ", ")}
|
52
55
|
tickets = []
|
53
56
|
commits.each do |msg|
|
54
57
|
md = msg.match(/(\w+-\d+)/)
|
data/lib/gantree/version.rb
CHANGED
@@ -71,4 +71,25 @@ EOL
|
|
71
71
|
expect(commits).to include("CMS-423 Edit Content modal waits for Preview object to be fetched")
|
72
72
|
expect(commits).to_not include("CMS-423 WIP PreviewView area read from/write to area of tracks' embed code")
|
73
73
|
end
|
74
|
+
|
75
|
+
it "should remove newlines from each commit" do
|
76
|
+
git_log_mock = <<-EOL
|
77
|
+
CMS-296 sortable tweaks
|
78
|
+
|
79
|
+
Commit with a newline
|
80
|
+
COMMIT_SEPARATOR
|
81
|
+
CMS-296 tweak test to match implementation
|
82
|
+
COMMIT_SEPARATOR
|
83
|
+
CMS-423 Edit Content modal waits for Preview object to be fetched
|
84
|
+
COMMIT_SEPARATOR
|
85
|
+
CMS-423 WIP PreviewView area read from/write to area of tracks' embed code
|
86
|
+
COMMIT_SEPARATOR
|
87
|
+
EOL
|
88
|
+
|
89
|
+
allow(@rn).to receive(:git_log).and_return(git_log_mock)
|
90
|
+
commits = @rn.commits
|
91
|
+
p commits if ENV['DEBUG']
|
92
|
+
expect(commits).to include("CMS-296 sortable tweaks, Commit with a newline")
|
93
|
+
expect(commits).to include("CMS-423 Edit Content modal waits for Preview object to be fetched")
|
94
|
+
end
|
74
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gantree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|