public
Rubygem
Description: Gruff graphing library for Ruby
Homepage: http://gruff.rubyforge.org
Clone URL: git://github.com/topfunky/gruff.git
Activated bullet
topfunky (author)
Thu Mar 13 09:43:38 -0700 2008
commit  7eb69ce4bff080c7209f9e49fe9dee8368699263
tree    9244584c12a5efd077a52270a996fe6d2f45515e
parent  dd5cf3b4937ab0aedb9152fda2c7c6133f525f42
...
37
38
39
 
40
41
42
...
61
62
63
 
64
65
66
...
37
38
39
40
41
42
43
...
62
63
64
65
66
67
68
0
@@ -37,6 +37,7 @@ lib/gruff/area.rb
0
 lib/gruff/bar.rb
0
 lib/gruff/bar_conversion.rb
0
 lib/gruff/base.rb
0
+lib/gruff/bullet.rb
0
 lib/gruff/deprecated.rb
0
 lib/gruff/line.rb
0
 lib/gruff/mini/bar.rb
0
@@ -61,6 +62,7 @@ test/test_accumulator_bar.rb
0
 test/test_area.rb
0
 test/test_bar.rb
0
 test/test_base.rb
0
+test/test_bullet.rb
0
 test/test_legend.rb
0
 test/test_line.rb
0
 test/test_mini_bar.rb
...
13
14
15
16
 
17
18
19
...
23
24
25
26
27
28
...
13
14
15
 
16
17
18
19
...
23
24
25
 
 
26
0
@@ -13,7 +13,7 @@
0
   side_stacked_bar
0
   side_bar
0
   accumulator_bar
0
-
0
+ bullet
0
   scene
0
 
0
   mini/legend
0
@@ -23,5 +23,3 @@
0
 ).each do |filename|
0
   require File.dirname(__FILE__) + "/gruff/#{filename}"
0
 end
0
-
0
-# TODO bullet
0
\ No newline at end of file
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
0
@@ -1,26 +1,26 @@
0
-# require File.dirname(__FILE__) + "/gruff_test_case"
0
-#
0
-# class TestGruffBullet < GruffTestCase
0
-#
0
-# def setup
0
-# @data_args = [75, 100, {
0
-# :target => 80,
0
-# :low => 50,
0
-# :high => 90
0
-# }]
0
-# end
0
-#
0
-# def test_bullet_graph
0
-# g = Gruff::Bullet.new
0
-# g.title = "Monthly Revenue"
0
-# g.data *@data_args
0
-# g.write("test/output/bullet_greyscale.png")
0
-# end
0
-#
0
-# def test_no_options
0
-# g = Gruff::Bullet.new
0
-# g.data 127, 150
0
-# g.write("test/output/bullet_no_options.png")
0
-# end
0
-#
0
-# end
0
+require File.dirname(__FILE__) + "/gruff_test_case"
0
+
0
+class TestGruffBullet < GruffTestCase
0
+
0
+ def setup
0
+ @data_args = [75, 100, {
0
+ :target => 80,
0
+ :low => 50,
0
+ :high => 90
0
+ }]
0
+ end
0
+
0
+ def test_bullet_graph
0
+ g = Gruff::Bullet.new
0
+ g.title = "Monthly Revenue"
0
+ g.data *@data_args
0
+ g.write("test/output/bullet_greyscale.png")
0
+ end
0
+
0
+ def test_no_options
0
+ g = Gruff::Bullet.new
0
+ g.data 127, 150
0
+ g.write("test/output/bullet_no_options.png")
0
+ end
0
+
0
+end

Comments

    No one has commented yet.