qa_release_tasks 1.2.1 → 1.3.0

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.
Files changed (3) hide show
  1. data/lib/git/wiki.rb +18 -2
  2. data/lib/qa_release_tasks.rb +1 -1
  3. metadata +4 -4
data/lib/git/wiki.rb CHANGED
@@ -45,12 +45,28 @@ module Git
45
45
  subject = subject + ' [REVERT]'
46
46
  end
47
47
  pivotal.split('/').each do |p|
48
- stories[p.to_i][commit] = { :pair => pair, :message => subject.gsub("\"", '').strip } if match
48
+ stories[p.to_i][commit] = { :pair => pair, :message => subject.gsub("\"", '').strip }
49
49
  end
50
50
  else
51
51
  stories[0][log_line] = {:pair => '', :message => log_line}
52
52
  end
53
53
  end
54
+ deploy_log = `git log --no-merges --pretty=format:"%h %s" #{range} config Capfile`.strip.split("\n")
55
+ project_name = `pwd`.chomp.split('/').last
56
+ deploy_log.each do |log_line|
57
+ # (commit, pair, pivotal, subject) = log_line.split(/\s+/, 4)
58
+ #[(.+?)]\s*[(\d+)](.+)
59
+ (match, commit, pair, pivotal, subject) = *log_line.match(/(.+?)\s*\[([a-zA-Z\/]{2,})\]\s*\[\#?([\d\/]+)\](.*)/)
60
+ if match
61
+ commit.gsub!(/\s*Revert.*/, '')
62
+ pivotal.split('/').each do |p|
63
+ stories[p.to_i][commit].merge!({:red => true})
64
+ end
65
+ else
66
+ stories[0][commit].merge!({:red => true})
67
+ end
68
+ end
69
+
54
70
 
55
71
  table_start
56
72
  Struct.new("UnknownStory", :id, :name, :story_type, :url)
@@ -61,7 +77,7 @@ module Git
61
77
  row += story.url ? "[#{story.url} #{story.id}]" : "#{story.id}"
62
78
  row += "\n| #{story.name}\n| #{story.story_type.capitalize}\n|\n{|\n"
63
79
  commits.each do |commit, details|
64
- row += "|-\n| [http://github.com/primedia/#{project_name}/commit/#{commit} #{commit}]\n| #{details[:pair]}\n| #{details[:message]}\n"
80
+ row += "|-#{'style="background-color:#ffcccc;"' if details[:red]}\n| [http://github.com/primedia/#{project_name}/commit/#{commit} #{commit}]\n| #{details[:pair]}\n| #{details[:message]}\n"
65
81
  end
66
82
  row += "|}"
67
83
 
@@ -7,7 +7,7 @@ require 'git/wiki'
7
7
  require 'tasks/qa_release'
8
8
 
9
9
  module QaReleaseTasks
10
- VERSION = '1.2.1'
10
+ VERSION = '1.3.0'
11
11
 
12
12
  def self.version
13
13
  VERSION
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 2
8
- - 1
9
- version: 1.2.1
7
+ - 3
8
+ - 0
9
+ version: 1.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jason Noble
@@ -15,7 +15,7 @@ autorequire: qa_release_tasks
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-29 00:00:00 -04:00
18
+ date: 2010-07-20 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21