shiftzilla 0.2.7 → 0.2.9

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: 5c64572d58b9877969f9d7c4810ff799ddd65536d9f5e6888a8df33e7d3cd232
4
- data.tar.gz: e85ad4aee4a8782c44cb3419603a588b12aeae1033d824da1f6ba078a4be8e55
3
+ metadata.gz: 7bcbe3b44a1fef17915db67a9aa20e2d6b1f0509fa3f92ac76de0788dcb798f3
4
+ data.tar.gz: e08e62be8def44d0a8513bf618d0423d9a2ed1e529293801fd28f4b3194020d9
5
5
  SHA512:
6
- metadata.gz: f32b30c422b8843e5e32b8178aa13059a32e92321b478785b7200bd9d522978df54d6bbf301f38f652c2e002b4b8a48f1324075431b2cde5f7df0a43cbd389aa
7
- data.tar.gz: e6b81271f5ee1b70882dcb60089b6937781b887d39a060505b2fe378bbfb8a7349ecc11f7e6d898f1b4a65d16b70ef0a076b0db2d463f8ae86a211de34ecd564
6
+ metadata.gz: fe01604c9c67f438c53709a44d28031fcd3638de4c86366f328b2f6a839a8b5c7e36c57aaab654e853570be2e526330841b4daaf30f91fa86f0c9e3ef77129e4
7
+ data.tar.gz: 9382d4f9c0c61cef75490b080f48d4a9a518dc8db338bfa6fb9b7ba094b9b566f038febb032df1ac1fa5c18856932fbe7991d51541609e48ea50ab0e1e31c8fc
@@ -25,11 +25,11 @@ module Shiftzilla
25
25
  @sources << Shiftzilla::Source.new(sid,sinfo)
26
26
  end
27
27
  # Always track a release for bugs with no target release
28
- @releases = [Shiftzilla::Release.new({ 'name' => '"---"', 'targets' => ['---'] },true)]
28
+ @releases = [Shiftzilla::Release.new({ 'name' => 'All', 'targets' => [] })]
29
29
  cfg_file['Releases'].each do |release|
30
30
  @releases << Shiftzilla::Release.new(release)
31
31
  end
32
- @releases << Shiftzilla::Release.new({ 'name' => 'All', 'targets' => [] },true)
32
+ @releases << Shiftzilla::Release.new({ 'name' => '"---"', 'targets' => ['---'] },true)
33
33
  @ssh = {
34
34
  :host => cfg_file['SSH']['host'],
35
35
  :path => cfg_file['SSH']['path'],
@@ -186,7 +186,6 @@ module Shiftzilla
186
186
  :tdata => tdata,
187
187
  :team_files => @team_files,
188
188
  :bug_url => BZ_URL,
189
- :chart_order => ((1..(@releases.length - 1)).to_a << 0),
190
189
  :releases => [],
191
190
  :latest_snapshot => latest_snapshot,
192
191
  :all_bugs => [],
@@ -264,6 +263,7 @@ module Shiftzilla
264
263
  jsdir = File.join(@tmp_dir,'js')
265
264
  Dir.mkdir(jsdir)
266
265
  FileUtils.cp(File.join(VENDOR_DIR,'flot','jquery.flot.min.js'),jsdir)
266
+ FileUtils.cp(DB_FPATH,@tmp_dir)
267
267
  end
268
268
 
269
269
  def show_local_reports
@@ -1,3 +1,3 @@
1
1
  module Shiftzilla
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.9"
3
3
  end
data/template.haml CHANGED
@@ -107,8 +107,7 @@
107
107
  - releases.each do |r|
108
108
  %td.text-right= tm[:releases][r[:release].name]
109
109
  .col-6
110
- - chart_order.each do |cidx|
111
- - r = releases[cidx]
110
+ - releases.each do |r|
112
111
  - next if r.nil? or r[:release].built_in? or r[:no_data] or not r.has_key?(:charts)
113
112
  .badge.badge-secondary.text-left.w-100= r[:release].name
114
113
  - [:burndown,:new_closed,:blockers].each do |chart|
@@ -176,8 +175,7 @@
176
175
  $(document).ready(function() {
177
176
  - if all_bugs.length > 0
178
177
  $('#team-bugs-all').DataTable({ 'paging': false, 'order': [[0,'desc'],[1,'desc'],[2,'desc']] });
179
- - chart_order.each do |cidx|
180
- - r = releases[cidx]
178
+ - releases.each do |r|
181
179
  - next if r.nil? or r[:release].built_in? or r[:no_data] or not r.has_key?(:charts)
182
180
  - [:burndown,:new_closed,:blockers].each do |chart|
183
181
  = "var cdata_#{r[:release].token}_#{chart.to_s} = JSON.parse('#{r[:charts][chart][:data]}');"
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.7
4
+ version: 0.2.9
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-03-28 00:00:00.000000000 Z
11
+ date: 2018-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler