Kelsin-lilygraph 0.5.3 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/lilygraph.rb +4 -4
  3. data/lilygraph.gemspec +2 -2
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.5.6
@@ -289,9 +289,9 @@ class Lilygraph
289
289
  private
290
290
 
291
291
  def data_max
292
- @data.map do |num|
293
- num.respond_to?(:max) ? num.max : num
294
- end.max || 0
292
+ [@data.map do |num|
293
+ num.respond_to?(:max) ? num.max : num
294
+ end.max || 1, 1].max
295
295
  end
296
296
 
297
297
  def division
@@ -299,7 +299,7 @@ class Lilygraph
299
299
  end
300
300
 
301
301
  def max
302
- (((data_max + (division / 10)) / Float(division)).ceil * Float(division)).round
302
+ (((data_max + [division / 10, 1].max) / Float(division)).ceil * Float(division)).round
303
303
  end
304
304
 
305
305
  def graph_height
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lilygraph}
8
- s.version = "0.5.3"
8
+ s.version = "0.5.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christopher Giroir"]
12
- s.date = %q{2009-09-15}
12
+ s.date = %q{2009-09-18}
13
13
  s.description = %q{Lilygraph is a Ruby library for creating svg charts and graphs based on XmlBuilder.}
14
14
  s.email = %q{kelsin@valefor.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Kelsin-lilygraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Giroir
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-15 00:00:00 -07:00
12
+ date: 2009-09-18 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency