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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 724786d19b6ef703b0ed05b6b15a1bdbba9bc2f6
4
- data.tar.gz: 6e430f3120a124243b4a70d198e9c2be0bbb5c2b
3
+ metadata.gz: 216ead17051468fc9d0b27b6b6b12c2059b71ffe
4
+ data.tar.gz: 1a6b633b99db501cccbbb13f712b485beb59f5e6
5
5
  SHA512:
6
- metadata.gz: a3f4dbe495348aaaa7da6bcc80d532daa58c6e64f1c5393d93f17be8d8532d1fa6c65ce11b7cfa60be28284e3fa08522d20303451b050c0fbae761eb2fc35399
7
- data.tar.gz: d2c494f3d606e48c56106a5b39a4ec999857bf2d41a6278157242f0ca2ecfd834ff174873bf16c53321b25e346bfc15cce0c6fe5c1a14e5d788a1402accdfe61
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.collect { |x| x.strip }.reject {|x| x.empty? }
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+)/)
@@ -1,3 +1,3 @@
1
1
  module Gantree
2
- VERSION = "0.6.9"
2
+ VERSION = "0.6.10"
3
3
  end
@@ -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.9
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-19 00:00:00.000000000 Z
11
+ date: 2015-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor