soda 1.0.13 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -864,7 +864,8 @@ HTML
864
864
  end
865
865
 
866
866
  row_id = 0
867
- totals.each do |suite_name, suite_hash|
867
+ totals.keys.sort.each { |suite_name|
868
+ suite_hash = totals[suite_name]
868
869
  next if (suite_name =~ /Total\sFailure\sCount/i)
869
870
  row_id += 1
870
871
  report_file = "#{suite_name}"
@@ -930,6 +931,7 @@ HTML
930
931
 
931
932
  reportdir = File.dirname(reportfile)
932
933
  suite_mini_file = GenSuiteMiniSummary(data[suite_name], reportdir)
934
+ suite_mini_file = File.basename(suite_mini_file)
933
935
 
934
936
  str = "<tr id=\"#{row_id}\" class=\"unhighlight\" "+
935
937
  "onMouseOver=\"this.className='highlight'\" "+
@@ -964,7 +966,7 @@ HTML
964
966
  "\t<td class=\"td_time_data\">"+
965
967
  "#{hours}:#{minutes}:#{seconds}</td>\n</tr>\n"
966
968
  fd.write(str)
967
- end
969
+ }
968
970
 
969
971
  test_totals = suite_totals['Test Count']
970
972
  test_totals += suite_totals['Test Skip Count']
@@ -1122,7 +1124,7 @@ HTML
1122
1124
  tr_css = "onMouseOver=\"this.className='highlight'\""+
1123
1125
  " onMouseOut=\"this.className='tr_normal'\" class=\"tr_normal\""
1124
1126
 
1125
- suite_hash['tests'].sort_by { |h| h['Test Order'] }.each do |test|
1127
+ suite_hash['tests'].sort_by { |h| h['Test Order'].to_i }.each do |test|
1126
1128
  id += 1
1127
1129
  test_report = test['Test Log File']
1128
1130
  test_report = File.basename(test_report, ".log")
@@ -1,4 +1,4 @@
1
1
  require 'Soda'
2
2
 
3
- SODA_GEM_VERSION = "1.0.13"
3
+ SODA_GEM_VERSION = "1.1.0"
4
4
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soda
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 13
10
- version: 1.0.13
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Trampus Richmond
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-16 00:00:00 -08:00
18
+ date: 2011-02-17 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency