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 +4 -4
- data/lib/spout/version.rb +1 -1
- data/lib/spout/views/outliers.html.erb +15 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae215d264230df5dc8b19ac9bf3171aff5ec76bd
|
4
|
+
data.tar.gz: 3db245444043d9402a4b12b9ab11694c400545d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f5de9cb6e08addb835e356a59c08e9686c8841569c45c83473cf3edcc20b43cc47de62b6fc928514d0d275c35efc2a26d4bce4f1619bb7e383336a4ee809baf
|
7
|
+
data.tar.gz: 7d1edd8284fed5cc5674a56b807530294bcb412f796313694e22125d85d03c47a44ae0180df598e223286167e83ae28da805fd6193d450bee69152da42c735d2
|
data/lib/spout/version.rb
CHANGED
@@ -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
|
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
|
-
|
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>
|