prawn-graph 0.9.7 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prawn/graph/series.rb +5 -1
- data/lib/prawn/graph/version.rb +1 -1
- 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: 211ca59ddae397b6e4139b5a638b29cd8cbf1273
|
4
|
+
data.tar.gz: 2c77240a9b49b06ffaf78d7964304d604ad84cc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc8b74b6554e51bee5c34bb03be7dc54bf7d1e81c58d2aa81db024810545aad168ccb471574d5b8b2a89ebb49eb5011db97c212667041fcc3ac574b4586240bd
|
7
|
+
data.tar.gz: 0763fbe05942bb118537409cfe391b15a186739bda8cc463cfe2b371ba79e395271632982fe37df6017883876471b231fe4bbfccbd1ec7424ff18a8d13b16ede
|
data/lib/prawn/graph/series.rb
CHANGED
@@ -42,7 +42,11 @@ module Prawn
|
|
42
42
|
# @return [Numeric] The smallest value stored in the +values+ of this Series.
|
43
43
|
#
|
44
44
|
def min
|
45
|
-
|
45
|
+
if values.empty?
|
46
|
+
0
|
47
|
+
else
|
48
|
+
values.sort.collect{ |x| x unless x.zero? }.compact.first
|
49
|
+
end
|
46
50
|
end
|
47
51
|
|
48
52
|
# @return [Numeric] The largest value stored in the +values+ of this Series.
|
data/lib/prawn/graph/version.rb
CHANGED