svg-graph19 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/SVG/Graph/Graph.rb +2 -1
  2. metadata +12 -5
@@ -708,7 +708,8 @@ module SVG
708
708
  end
709
709
 
710
710
  def keys
711
- return @data.collect{ |d| d[:title] }
711
+ i = 0
712
+ return @data.collect{ |d| i+=1; d[:title] || "Serie #{i}" }
712
713
  end
713
714
 
714
715
  # Draws the legend on the graph
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg-graph19
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 6
8
+ - 5
9
+ version: 0.6.5
5
10
  platform: ruby
6
11
  authors:
7
12
  - Sean Russell. Paolo Bosetti moved into gem and made 1.9-compatible
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-26 00:00:00 +01:00
17
+ date: 2010-03-29 00:00:00 +02:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -50,18 +55,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
55
  requirements:
51
56
  - - ">="
52
57
  - !ruby/object:Gem::Version
58
+ segments:
59
+ - 0
53
60
  version: "0"
54
- version:
55
61
  required_rubygems_version: !ruby/object:Gem::Requirement
56
62
  requirements:
57
63
  - - ">="
58
64
  - !ruby/object:Gem::Version
65
+ segments:
66
+ - 0
59
67
  version: "0"
60
- version:
61
68
  requirements: []
62
69
 
63
70
  rubyforge_project: svg-graph19
64
- rubygems_version: 1.3.5
71
+ rubygems_version: 1.3.6
65
72
  signing_key:
66
73
  specification_version: 3
67
74
  summary: SVG:::Graph is a pure Ruby library for generating charts in SVG.