analytics_charts 1.3.3 → 1.3.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ffc208c657b21353a664ada4ed4fec601b346c2
|
4
|
+
data.tar.gz: 34ab319ed9f7d9c1d0d7783b13415a0056928be1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92d50986fc755bed5e4c73f2009c23a1fe84471cc612d639b7ab1ddf4e9a08d0f53dd1ea54d46b7d51ffc5148916bd3a8090d5394d9aabc6a73d8b735dc39b16
|
7
|
+
data.tar.gz: e60b4a4d3031e9cf590ff1513b599f907caf5cc42e779fbd3213847a20fd874e1d614b7df57fe596dc103d22e5fbfbcb7a5490461531512754f2427d2ea39b16
|
@@ -29,6 +29,7 @@ class AnalyticsCharts::CustomModule
|
|
29
29
|
@d.draw(@base_image)
|
30
30
|
y_offset = 22 + @composite_rows + @d.get_type_metrics(@dummy_image,"a").height / 2
|
31
31
|
@rows_of_text.each do |text|
|
32
|
+
text = text.gsub(/['%]/, '%' => '%%', "'" => "\'")
|
32
33
|
if text.include? "@$$" # No paragraph break if we insert this uncommonly used word
|
33
34
|
text.sub!("@$$", "")
|
34
35
|
@d.annotate(@base_image, 0 ,0, 22, y_offset, text)
|
@@ -50,7 +50,7 @@ class AnalyticsCharts::CustomPie
|
|
50
50
|
# Figure out whether to give name a 0,1,2, or 3
|
51
51
|
[0,1,2,3].each do |rank|
|
52
52
|
next if @thresholds[rank].is_a?(String)
|
53
|
-
if quality
|
53
|
+
if quality <= @thresholds[rank]
|
54
54
|
@data[name] = [amount, rank]
|
55
55
|
@aggregate[rank] += amount
|
56
56
|
break
|