fhs-gruff 0.3.6.2

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.
Files changed (82) hide show
  1. data/History.txt +117 -0
  2. data/MIT-LICENSE +21 -0
  3. data/Manifest.txt +81 -0
  4. data/README.txt +40 -0
  5. data/Rakefile +55 -0
  6. data/assets/bubble.png +0 -0
  7. data/assets/city_scene/background/0000.png +0 -0
  8. data/assets/city_scene/background/0600.png +0 -0
  9. data/assets/city_scene/background/2000.png +0 -0
  10. data/assets/city_scene/clouds/cloudy.png +0 -0
  11. data/assets/city_scene/clouds/partly_cloudy.png +0 -0
  12. data/assets/city_scene/clouds/stormy.png +0 -0
  13. data/assets/city_scene/grass/default.png +0 -0
  14. data/assets/city_scene/haze/true.png +0 -0
  15. data/assets/city_scene/number_sample/1.png +0 -0
  16. data/assets/city_scene/number_sample/2.png +0 -0
  17. data/assets/city_scene/number_sample/default.png +0 -0
  18. data/assets/city_scene/sky/0000.png +0 -0
  19. data/assets/city_scene/sky/0200.png +0 -0
  20. data/assets/city_scene/sky/0400.png +0 -0
  21. data/assets/city_scene/sky/0600.png +0 -0
  22. data/assets/city_scene/sky/0800.png +0 -0
  23. data/assets/city_scene/sky/1000.png +0 -0
  24. data/assets/city_scene/sky/1200.png +0 -0
  25. data/assets/city_scene/sky/1400.png +0 -0
  26. data/assets/city_scene/sky/1500.png +0 -0
  27. data/assets/city_scene/sky/1700.png +0 -0
  28. data/assets/city_scene/sky/2000.png +0 -0
  29. data/assets/pc306715.jpg +0 -0
  30. data/assets/plastik/blue.png +0 -0
  31. data/assets/plastik/green.png +0 -0
  32. data/assets/plastik/red.png +0 -0
  33. data/init.rb +2 -0
  34. data/lib/gruff.rb +28 -0
  35. data/lib/gruff/accumulator_bar.rb +27 -0
  36. data/lib/gruff/area.rb +58 -0
  37. data/lib/gruff/bar.rb +85 -0
  38. data/lib/gruff/bar_conversion.rb +46 -0
  39. data/lib/gruff/base.rb +1125 -0
  40. data/lib/gruff/bullet.rb +109 -0
  41. data/lib/gruff/deprecated.rb +39 -0
  42. data/lib/gruff/dot.rb +113 -0
  43. data/lib/gruff/line.rb +135 -0
  44. data/lib/gruff/mini/bar.rb +37 -0
  45. data/lib/gruff/mini/legend.rb +109 -0
  46. data/lib/gruff/mini/pie.rb +36 -0
  47. data/lib/gruff/mini/side_bar.rb +35 -0
  48. data/lib/gruff/net.rb +140 -0
  49. data/lib/gruff/photo_bar.rb +100 -0
  50. data/lib/gruff/pie.rb +126 -0
  51. data/lib/gruff/scene.rb +209 -0
  52. data/lib/gruff/side_bar.rb +121 -0
  53. data/lib/gruff/side_stacked_bar.rb +77 -0
  54. data/lib/gruff/spider.rb +130 -0
  55. data/lib/gruff/stacked_area.rb +67 -0
  56. data/lib/gruff/stacked_bar.rb +57 -0
  57. data/lib/gruff/stacked_mixin.rb +23 -0
  58. data/rails_generators/gruff/gruff_generator.rb +63 -0
  59. data/rails_generators/gruff/templates/controller.rb +32 -0
  60. data/rails_generators/gruff/templates/functional_test.rb +24 -0
  61. data/test/gruff_test_case.rb +125 -0
  62. data/test/test_accumulator_bar.rb +50 -0
  63. data/test/test_area.rb +134 -0
  64. data/test/test_bar.rb +321 -0
  65. data/test/test_base.rb +8 -0
  66. data/test/test_bullet.rb +26 -0
  67. data/test/test_dot.rb +273 -0
  68. data/test/test_legend.rb +68 -0
  69. data/test/test_line.rb +555 -0
  70. data/test/test_mini_bar.rb +33 -0
  71. data/test/test_mini_pie.rb +26 -0
  72. data/test/test_mini_side_bar.rb +37 -0
  73. data/test/test_net.rb +230 -0
  74. data/test/test_photo.rb +41 -0
  75. data/test/test_pie.rb +154 -0
  76. data/test/test_scene.rb +100 -0
  77. data/test/test_side_bar.rb +43 -0
  78. data/test/test_sidestacked_bar.rb +89 -0
  79. data/test/test_spider.rb +216 -0
  80. data/test/test_stacked_area.rb +52 -0
  81. data/test/test_stacked_bar.rb +52 -0
  82. metadata +201 -0
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/ruby
2
+
3
+ require File.dirname(__FILE__) + "/gruff_test_case"
4
+
5
+ class TestGruffStackedArea < GruffTestCase
6
+
7
+ def setup
8
+ @datasets = [
9
+ [:Jimmy, [25, 36, 86, 39]],
10
+ [:Charles, [80, 54, 67, 54]],
11
+ [:Julie, [22, 29, 35, 38]],
12
+ ]
13
+ @sample_labels = {
14
+ 0 => '5/6',
15
+ 1 => '5/15',
16
+ 2 => '5/24'
17
+ }
18
+
19
+ end
20
+
21
+ def test_area_graph
22
+ g = Gruff::StackedArea.new
23
+ g.title = "Visual Stacked Area Graph Test"
24
+ g.labels = {
25
+ 0 => '5/6',
26
+ 1 => '5/15',
27
+ 2 => '5/24',
28
+ 3 => '5/30',
29
+ }
30
+ @datasets.each do |data|
31
+ g.data(data[0], data[1])
32
+ end
33
+ g.write "test/output/stacked_area_keynote.png"
34
+ end
35
+
36
+
37
+ def test_area_graph_small
38
+ g = Gruff::StackedArea.new(400)
39
+ g.title = "Visual Stacked Area Graph Test"
40
+ g.labels = {
41
+ 0 => '5/6',
42
+ 1 => '5/15',
43
+ 2 => '5/24',
44
+ 3 => '5/30',
45
+ }
46
+ @datasets.each do |data|
47
+ g.data(data[0], data[1])
48
+ end
49
+ g.write "test/output/stacked_area_keynote_small.png"
50
+ end
51
+
52
+ end
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/ruby
2
+
3
+ require File.dirname(__FILE__) + "/gruff_test_case"
4
+
5
+ class TestGruffStackedBar < GruffTestCase
6
+
7
+ def setup
8
+ @datasets = [
9
+ [:Jimmy, [25, 36, 86, 39]],
10
+ [:Charles, [80, 54, 67, 54]],
11
+ [:Julie, [22, 29, 35, 38]],
12
+ ]
13
+ @sample_labels = {
14
+ 0 => '5/6',
15
+ 1 => '5/15',
16
+ 2 => '5/24'
17
+ }
18
+
19
+ end
20
+
21
+ def test_bar_graph
22
+ g = Gruff::StackedBar.new
23
+ g.title = "Visual Stacked Bar Graph Test"
24
+ g.labels = {
25
+ 0 => '5/6',
26
+ 1 => '5/15',
27
+ 2 => '5/24',
28
+ 3 => '5/30',
29
+ }
30
+ @datasets.each do |data|
31
+ g.data(data[0], data[1])
32
+ end
33
+ g.write "test/output/stacked_bar_keynote.png"
34
+ end
35
+
36
+
37
+ def test_bar_graph_small
38
+ g = Gruff::StackedBar.new(400)
39
+ g.title = "Visual Stacked Bar Graph Test"
40
+ g.labels = {
41
+ 0 => '5/6',
42
+ 1 => '5/15',
43
+ 2 => '5/24',
44
+ 3 => '5/30',
45
+ }
46
+ @datasets.each do |data|
47
+ g.data(data[0], data[1])
48
+ end
49
+ g.write "test/output/stacked_bar_keynote_small.png"
50
+ end
51
+
52
+ end
metadata ADDED
@@ -0,0 +1,201 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fhs-gruff
3
+ version: !ruby/object:Gem::Version
4
+ hash: 75
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 6
10
+ - 2
11
+ version: 0.3.6.2
12
+ platform: ruby
13
+ authors:
14
+ - Geoffrey Grosenbach
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2010-10-27 00:00:00 +02:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: rmagick
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 59
31
+ segments:
32
+ - 2
33
+ - 12
34
+ - 2
35
+ version: 2.12.2
36
+ type: :runtime
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
39
+ name: hoe
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 51
47
+ segments:
48
+ - 1
49
+ - 8
50
+ - 2
51
+ version: 1.8.2
52
+ type: :development
53
+ version_requirements: *id002
54
+ description: Beautiful graphs for one or multiple datasets. Can be used on websites or in documents. Contains several bug fixes regarding bar charts.
55
+ email: boss@topfunky.com
56
+ executables: []
57
+
58
+ extensions: []
59
+
60
+ extra_rdoc_files:
61
+ - History.txt
62
+ - Manifest.txt
63
+ - README.txt
64
+ files:
65
+ - History.txt
66
+ - MIT-LICENSE
67
+ - Manifest.txt
68
+ - README.txt
69
+ - Rakefile
70
+ - assets/bubble.png
71
+ - assets/city_scene/background/0000.png
72
+ - assets/city_scene/background/0600.png
73
+ - assets/city_scene/background/2000.png
74
+ - assets/city_scene/clouds/cloudy.png
75
+ - assets/city_scene/clouds/partly_cloudy.png
76
+ - assets/city_scene/clouds/stormy.png
77
+ - assets/city_scene/grass/default.png
78
+ - assets/city_scene/haze/true.png
79
+ - assets/city_scene/number_sample/1.png
80
+ - assets/city_scene/number_sample/2.png
81
+ - assets/city_scene/number_sample/default.png
82
+ - assets/city_scene/sky/0000.png
83
+ - assets/city_scene/sky/0200.png
84
+ - assets/city_scene/sky/0400.png
85
+ - assets/city_scene/sky/0600.png
86
+ - assets/city_scene/sky/0800.png
87
+ - assets/city_scene/sky/1000.png
88
+ - assets/city_scene/sky/1200.png
89
+ - assets/city_scene/sky/1400.png
90
+ - assets/city_scene/sky/1500.png
91
+ - assets/city_scene/sky/1700.png
92
+ - assets/city_scene/sky/2000.png
93
+ - assets/pc306715.jpg
94
+ - assets/plastik/blue.png
95
+ - assets/plastik/green.png
96
+ - assets/plastik/red.png
97
+ - init.rb
98
+ - lib/gruff.rb
99
+ - lib/gruff/accumulator_bar.rb
100
+ - lib/gruff/area.rb
101
+ - lib/gruff/bar.rb
102
+ - lib/gruff/bar_conversion.rb
103
+ - lib/gruff/base.rb
104
+ - lib/gruff/bullet.rb
105
+ - lib/gruff/deprecated.rb
106
+ - lib/gruff/dot.rb
107
+ - lib/gruff/line.rb
108
+ - lib/gruff/mini/bar.rb
109
+ - lib/gruff/mini/legend.rb
110
+ - lib/gruff/mini/pie.rb
111
+ - lib/gruff/mini/side_bar.rb
112
+ - lib/gruff/net.rb
113
+ - lib/gruff/photo_bar.rb
114
+ - lib/gruff/pie.rb
115
+ - lib/gruff/scene.rb
116
+ - lib/gruff/side_bar.rb
117
+ - lib/gruff/side_stacked_bar.rb
118
+ - lib/gruff/spider.rb
119
+ - lib/gruff/stacked_area.rb
120
+ - lib/gruff/stacked_bar.rb
121
+ - lib/gruff/stacked_mixin.rb
122
+ - rails_generators/gruff/gruff_generator.rb
123
+ - rails_generators/gruff/templates/controller.rb
124
+ - rails_generators/gruff/templates/functional_test.rb
125
+ - test/gruff_test_case.rb
126
+ - test/test_accumulator_bar.rb
127
+ - test/test_area.rb
128
+ - test/test_bar.rb
129
+ - test/test_base.rb
130
+ - test/test_bullet.rb
131
+ - test/test_dot.rb
132
+ - test/test_legend.rb
133
+ - test/test_line.rb
134
+ - test/test_mini_bar.rb
135
+ - test/test_mini_pie.rb
136
+ - test/test_mini_side_bar.rb
137
+ - test/test_net.rb
138
+ - test/test_photo.rb
139
+ - test/test_pie.rb
140
+ - test/test_scene.rb
141
+ - test/test_side_bar.rb
142
+ - test/test_sidestacked_bar.rb
143
+ - test/test_spider.rb
144
+ - test/test_stacked_area.rb
145
+ - test/test_stacked_bar.rb
146
+ has_rdoc: true
147
+ homepage: http://nubyonrails.com/pages/gruff
148
+ licenses: []
149
+
150
+ post_install_message:
151
+ rdoc_options:
152
+ - --main
153
+ - README.txt
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ none: false
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ hash: 3
162
+ segments:
163
+ - 0
164
+ version: "0"
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
+ none: false
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ hash: 3
171
+ segments:
172
+ - 0
173
+ version: "0"
174
+ requirements: []
175
+
176
+ rubyforge_project: gruff
177
+ rubygems_version: 1.3.7
178
+ signing_key:
179
+ specification_version: 2
180
+ summary: Beautiful graphs for one or multiple datasets.
181
+ test_files:
182
+ - test/test_accumulator_bar.rb
183
+ - test/test_area.rb
184
+ - test/test_bar.rb
185
+ - test/test_base.rb
186
+ - test/test_bullet.rb
187
+ - test/test_dot.rb
188
+ - test/test_legend.rb
189
+ - test/test_line.rb
190
+ - test/test_mini_bar.rb
191
+ - test/test_mini_pie.rb
192
+ - test/test_mini_side_bar.rb
193
+ - test/test_net.rb
194
+ - test/test_photo.rb
195
+ - test/test_pie.rb
196
+ - test/test_scene.rb
197
+ - test/test_side_bar.rb
198
+ - test/test_sidestacked_bar.rb
199
+ - test/test_spider.rb
200
+ - test/test_stacked_area.rb
201
+ - test/test_stacked_bar.rb