prawn-graph 0.9.7 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 804e9234484be154069bb231f7fa2e888e6e8c8a
4
- data.tar.gz: 548f36e31f80f7ec89d9d9753b084c206b6670d7
3
+ metadata.gz: 211ca59ddae397b6e4139b5a638b29cd8cbf1273
4
+ data.tar.gz: 2c77240a9b49b06ffaf78d7964304d604ad84cc2
5
5
  SHA512:
6
- metadata.gz: 3874e72db6f60168ac807977c982971cfb2285f3e7d8753bbf224537d35bd5419fcf2995c6654bef430a4cd38f1055b8c6f9a6511dd1c86c1827ae4b90a17c4d
7
- data.tar.gz: 6a9b880eb51c053419ce53fc40d8aab4372c4263186536d46609c774e45b04c672c91fd228527855dc99e8bd4373d494831cb5d736b684386f8840d605bd54b5
6
+ metadata.gz: cc8b74b6554e51bee5c34bb03be7dc54bf7d1e81c58d2aa81db024810545aad168ccb471574d5b8b2a89ebb49eb5011db97c212667041fcc3ac574b4586240bd
7
+ data.tar.gz: 0763fbe05942bb118537409cfe391b15a186739bda8cc463cfe2b371ba79e395271632982fe37df6017883876471b231fe4bbfccbd1ec7424ff18a8d13b16ede
@@ -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
- @values.min || 0
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.
@@ -1,5 +1,5 @@
1
1
  module Prawn
2
2
  module Graph
3
- VERSION = "0.9.7"
3
+ VERSION = "0.9.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stenhouse