spout 0.8.0.beta8 → 0.8.0.beta9

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
  SHA1:
3
- metadata.gz: 77f00d45a191d59e327952d4af5a2f57c2f65f3b
4
- data.tar.gz: 2848258e7bad286df21eee2bb622e3fda54094a5
3
+ metadata.gz: ae215d264230df5dc8b19ac9bf3171aff5ec76bd
4
+ data.tar.gz: 3db245444043d9402a4b12b9ab11694c400545d0
5
5
  SHA512:
6
- metadata.gz: 58f411b0735343c82c575897d10b6c02b4521c91dbba3693d204933a295aa6bdf3418e077256eabdabf51172182a652ac436b084346a1ae88748456a4f29dab9
7
- data.tar.gz: abf5ec903b9321e5e9f270ac57df9724daef73dcba9a5e25a5400e081bc09556b4ddfccfb5a67463e0e07d89079f7660039f3e787ee6272ad025a2246e599bd0
6
+ metadata.gz: 6f5de9cb6e08addb835e356a59c08e9686c8841569c45c83473cf3edcc20b43cc47de62b6fc928514d0d275c35efc2a26d4bce4f1619bb7e383336a4ee809baf
7
+ data.tar.gz: 7d1edd8284fed5cc5674a56b807530294bcb412f796313694e22125d85d03c47a44ae0180df598e223286167e83ae28da805fd6193d450bee69152da42c735d2
data/lib/spout/version.rb CHANGED
@@ -3,7 +3,7 @@ module Spout
3
3
  MAJOR = 0
4
4
  MINOR = 8
5
5
  TINY = 0
6
- BUILD = "beta8" # nil, "pre", "rc", "rc2"
6
+ BUILD = "beta9" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
@@ -54,6 +54,10 @@ code.warning {
54
54
  color: #333;
55
55
  background-color: #f0ad4e;
56
56
  }
57
+ code.warning-pale {
58
+ background-color: #fcf8e3;
59
+ color: #8a6d3b;
60
+ }
57
61
  tfoot td {
58
62
  vertical-align: middle !important;
59
63
  padding-bottom: 0px !important;
@@ -92,9 +96,14 @@ tfoot td {
92
96
  <% @overall_results.each do |csv_file, major_outliers, minor_outliers, total_outliers| %>
93
97
  <tr>
94
98
  <td><%= csv_file %></td>
95
- <td><%= major_outliers %></td>
96
- <td><%= minor_outliers %></td>
97
- <td><%= total_outliers %></td>
99
+ <td><code class="<%= major_outliers > 0 ? 'danger' : 'default' %>"><%= number_with_delimiter(major_outliers) %></code></td>
100
+ <td><code class="<%= minor_outliers > 0 ? 'warning' : 'default' %>"><%= number_with_delimiter(minor_outliers) %></code></td>
101
+ <td>
102
+ <% css_class = 'success' %>
103
+ <% css_class = 'warning' if minor_outliers > 0 %>
104
+ <% css_class = 'danger' if major_outliers > 0 %>
105
+ <code class="<%= css_class %>"><%= number_with_delimiter(total_outliers) %>
106
+ </td>
98
107
  </tr>
99
108
  <% end %>
100
109
  </tbody>
@@ -116,7 +125,9 @@ tfoot td {
116
125
  <tr>
117
126
  <td>
118
127
  <% outlier_result.csv_files.each do |csv_file| %>
119
- <code class="<%= 'success' if outlier_result.outliers.size == 0 %>"><%= csv_file %></code><br />
128
+ <% css_class = 'success' if outlier_result.outliers.size == 0 %>
129
+ <% css_class = 'warning-pale' if outlier_result.major_outliers.size == 0 and outlier_result.minor_outliers.size > 0 %>
130
+ <code class="<%= css_class %>"><%= csv_file %></code><br />
120
131
  <% end %></td>
121
132
  <td><%= outlier_result.method %></td>
122
133
  <td>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.beta8
4
+ version: 0.8.0.beta9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Remo Mueller