shiftzilla 0.2.14 → 0.2.15

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
  SHA256:
3
- metadata.gz: 20ef0cd5868692f7aba05283e9c1bf4f5d7109171c08a82e56ad38ac759f0e11
4
- data.tar.gz: dd9e2f5e02492c1d878301411083814f01240b20d9e13fc1088dc8d138703bb4
3
+ metadata.gz: 478411588ec39cf81eac3cbcea041260bfa3e2c060973f73242254dc9beef0a5
4
+ data.tar.gz: b103663a493996b7c610a8c427e63642238e7e490cd75b54b191c4e71894205f
5
5
  SHA512:
6
- metadata.gz: c746f69f0fe202fc3728e95c80c2b52723cfa590870b43f14812736ef8296efd6e7960637b73b16fe7d3d0b07419b3a9ef4ac754c0c95cd28f4f5b46d07b4289
7
- data.tar.gz: 41148a15a1925302be1bd67f3968ca8ab7cb959b81c4b5fc5e975ca552e9007e65061342ef50afaa0e6cad20efba54018324f9148ceb196b14494cb42e1eadda
6
+ metadata.gz: bb5cec9466c15f1be82f54d4ebd4a226a91baa386a92a2962e1908e0f44d60721ec14c7a44b75dc14e6767c1a50e07fff1f9bd4477dfbac321ac13f784ef799f
7
+ data.tar.gz: 83c35a9a0afe3ecae6f8d99ff27214ee498b1b1c8dcf05a8f6e5f2ce0971955e7481285200792afa4650cbfd1b7cba5b121e39b079f1f2604ca453a9f83c2383
@@ -189,7 +189,8 @@ module Shiftzilla
189
189
 
190
190
  team_pinfo = {
191
191
  :build_time => build_time,
192
- :tname => tdata.title,
192
+ :tdisp => tdata.title,
193
+ :tname => tdata.name,
193
194
  :tinfo => tinfo,
194
195
  :tdata => tdata,
195
196
  :team_files => @team_files,
@@ -2,6 +2,7 @@ require 'shiftzilla/release_data'
2
2
 
3
3
  module Shiftzilla
4
4
  class TeamData
5
+ attr_reader :name
5
6
 
6
7
  def initialize(tname)
7
8
  @name = tname
@@ -1,3 +1,3 @@
1
1
  module Shiftzilla
2
- VERSION = "0.2.14"
2
+ VERSION = "0.2.15"
3
3
  end
@@ -31,7 +31,7 @@
31
31
  Shiftzilla
32
32
  \|
33
33
  %small
34
- %span.text-muted= tname
34
+ %span.text-muted= tdisp
35
35
  \|
36
36
  %small
37
37
  %span.text-muted= latest_snapshot
@@ -49,7 +49,7 @@
49
49
  %li= "Group Lead: #{tinfo.group.lead}"
50
50
  - if tinfo.components.length > 0
51
51
  %li= "BZ Component(s): #{tinfo.components.join(', ')}"
52
- %h5= "#{tdata.title} Summary"
52
+ %h5= "#{tdisp} Summary"
53
53
  %table.table.table-hover.table-sm
54
54
  %tr
55
55
  %td Release
@@ -91,26 +91,29 @@
91
91
  %td Closed Blockers Yesterday
92
92
  - releases.each do |r|
93
93
  %td.text-right= r[:snapdata].closed_tb
94
- %h5 Totals By Team
95
- %table.table.table-hover.table-sm
96
- %tr
97
- %td Team
98
- - releases.each do |r|
99
- %td.text-right= r[:release].name
100
- - team_files.each do |tm|
94
+ - if tname == '_overall'
95
+ %h5 Totals By Team
96
+ %table.table.table-hover.table-sm
101
97
  %tr
102
- %td
103
- - if tm[:tname] == tname
104
- = tname
105
- - else
106
- %a{ :href => tm[:file] }= tm[:tname]
98
+ %td Team
107
99
  - releases.each do |r|
108
- %td.text-right= tm[:releases][r[:release].name]
100
+ %td.text-right= r[:release].name
101
+ - team_files.each do |tm|
102
+ %tr
103
+ %td
104
+ - if tm[:tname] == tdisp
105
+ = tdisp
106
+ - else
107
+ %a{ :href => tm[:file] }= tm[:tname]
108
+ - releases.each do |r|
109
+ %td.text-right= tm[:releases][r[:release].name]
109
110
  .col-6
110
111
  - releases.each do |r|
112
+ - next if tname != '_overall' and r[:release].name == 'All'
111
113
  - next if r.nil? or r[:release].built_in? or r[:no_data] or not r.has_key?(:charts)
112
114
  .badge.badge-secondary.text-left.w-100= r[:release].name
113
115
  - [:burndown,:new_closed,:blockers].each do |chart|
116
+ - next if tname != '_overall' and chart != :burndown
114
117
  .badge.badge-light.text-left.text-muted.w-100.pr-4= r[:charts][chart][:title]
115
118
  %div{ :id => "chart_#{r[:release].token}_#{chart.to_s}", :class => 'card-body w-100', :style => 'height: 200px;' }
116
119
  - if all_bugs.length > 0
@@ -179,8 +182,10 @@
179
182
  - if all_bugs.length > 0
180
183
  $('#team-bugs-all').DataTable({ 'paging': false, 'order': [[0,'desc'],[1,'desc'],[2,'desc']] });
181
184
  - releases.each do |r|
185
+ - next if tname != '_overall' and r[:release].name == 'All'
182
186
  - next if r.nil? or r[:release].built_in? or r[:no_data] or not r.has_key?(:charts)
183
187
  - [:burndown,:new_closed,:blockers].each do |chart|
188
+ - next if tname != '_overall' and chart != :burndown
184
189
  = "var cdata_#{r[:release].token}_#{chart.to_s} = JSON.parse('#{r[:charts][chart][:data]}');"
185
190
  = "var copts_#{r[:release].token}_#{chart.to_s} = JSON.parse('#{r[:charts][chart][:options]}');"
186
191
  = "$.plot($(\"#chart_#{r[:release].token}_#{chart.to_s}\"), cdata_#{r[:release].token}_#{chart.to_s}, copts_#{r[:release].token}_#{chart.to_s});"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shiftzilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - N. Harrison Ripps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-18 00:00:00.000000000 Z
11
+ date: 2018-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler