gruff 0.8.0-java → 0.9.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE.md +18 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +93 -0
- data/.rubocop_todo.yml +23 -810
- data/.travis.yml +4 -4
- data/.yardopts +1 -0
- data/CHANGELOG.md +22 -0
- data/Gemfile +3 -1
- data/README.md +44 -21
- data/Rakefile +2 -206
- data/docker/Dockerfile +14 -0
- data/docker/build.sh +4 -0
- data/docker/launch.sh +4 -0
- data/gruff.gemspec +11 -8
- data/init.rb +2 -0
- data/lib/gruff.rb +23 -0
- data/lib/gruff/accumulator_bar.rb +6 -6
- data/lib/gruff/area.rb +13 -17
- data/lib/gruff/bar.rb +58 -41
- data/lib/gruff/base.rb +243 -566
- data/lib/gruff/bezier.rb +12 -14
- data/lib/gruff/bullet.rb +39 -57
- data/lib/gruff/dot.rb +25 -59
- data/lib/gruff/{bar_conversion.rb → helper/bar_conversion.rb} +13 -12
- data/lib/gruff/helper/bar_value_label_mixin.rb +30 -0
- data/lib/gruff/{stacked_mixin.rb → helper/stacked_mixin.rb} +7 -6
- data/lib/gruff/line.rb +95 -177
- data/lib/gruff/mini/bar.rb +6 -7
- data/lib/gruff/mini/legend.rb +16 -32
- data/lib/gruff/mini/pie.rb +6 -7
- data/lib/gruff/mini/side_bar.rb +4 -5
- data/lib/gruff/net.rb +37 -65
- data/lib/gruff/patch/rmagick.rb +33 -0
- data/lib/gruff/patch/string.rb +8 -0
- data/lib/gruff/photo_bar.rb +19 -19
- data/lib/gruff/pie.rb +22 -73
- data/lib/gruff/renderer/bezier.rb +21 -0
- data/lib/gruff/renderer/circle.rb +21 -0
- data/lib/gruff/renderer/dash_line.rb +22 -0
- data/lib/gruff/renderer/dot.rb +39 -0
- data/lib/gruff/renderer/ellipse.rb +21 -0
- data/lib/gruff/renderer/line.rb +34 -0
- data/lib/gruff/renderer/polygon.rb +23 -0
- data/lib/gruff/renderer/polyline.rb +21 -0
- data/lib/gruff/renderer/rectangle.rb +19 -0
- data/lib/gruff/renderer/renderer.rb +127 -0
- data/lib/gruff/renderer/text.rb +42 -0
- data/lib/gruff/scatter.rb +85 -156
- data/lib/gruff/scene.rb +22 -30
- data/lib/gruff/side_bar.rb +62 -58
- data/lib/gruff/side_stacked_bar.rb +47 -43
- data/lib/gruff/spider.rb +19 -36
- data/lib/gruff/stacked_area.rb +17 -21
- data/lib/gruff/stacked_bar.rb +50 -24
- data/lib/gruff/store/base_data.rb +34 -0
- data/lib/gruff/store/custom_data.rb +34 -0
- data/lib/gruff/store/store.rb +80 -0
- data/lib/gruff/store/xy_data.rb +55 -0
- data/lib/gruff/themes.rb +3 -3
- data/lib/gruff/version.rb +3 -1
- metadata +41 -30
- data/Manifest.txt +0 -81
- data/assets/bubble.png +0 -0
- data/assets/city_scene/background/0000.png +0 -0
- data/assets/city_scene/background/0600.png +0 -0
- data/assets/city_scene/background/2000.png +0 -0
- data/assets/city_scene/clouds/cloudy.png +0 -0
- data/assets/city_scene/clouds/partly_cloudy.png +0 -0
- data/assets/city_scene/clouds/stormy.png +0 -0
- data/assets/city_scene/grass/default.png +0 -0
- data/assets/city_scene/haze/true.png +0 -0
- data/assets/city_scene/number_sample/1.png +0 -0
- data/assets/city_scene/number_sample/2.png +0 -0
- data/assets/city_scene/number_sample/default.png +0 -0
- data/assets/city_scene/sky/0000.png +0 -0
- data/assets/city_scene/sky/0200.png +0 -0
- data/assets/city_scene/sky/0400.png +0 -0
- data/assets/city_scene/sky/0600.png +0 -0
- data/assets/city_scene/sky/0800.png +0 -0
- data/assets/city_scene/sky/1000.png +0 -0
- data/assets/city_scene/sky/1200.png +0 -0
- data/assets/city_scene/sky/1400.png +0 -0
- data/assets/city_scene/sky/1500.png +0 -0
- data/assets/city_scene/sky/1700.png +0 -0
- data/assets/city_scene/sky/2000.png +0 -0
- data/assets/pc306715.jpg +0 -0
- data/lib/gruff/deprecated.rb +0 -38
data/Manifest.txt
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
MIT-LICENSE
|
3
|
-
Manifest.txt
|
4
|
-
README.txt
|
5
|
-
Rakefile
|
6
|
-
assets/bubble.png
|
7
|
-
assets/city_scene/background/0000.png
|
8
|
-
assets/city_scene/background/0600.png
|
9
|
-
assets/city_scene/background/2000.png
|
10
|
-
assets/city_scene/clouds/cloudy.png
|
11
|
-
assets/city_scene/clouds/partly_cloudy.png
|
12
|
-
assets/city_scene/clouds/stormy.png
|
13
|
-
assets/city_scene/grass/default.png
|
14
|
-
assets/city_scene/haze/true.png
|
15
|
-
assets/city_scene/number_sample/1.png
|
16
|
-
assets/city_scene/number_sample/2.png
|
17
|
-
assets/city_scene/number_sample/default.png
|
18
|
-
assets/city_scene/sky/0000.png
|
19
|
-
assets/city_scene/sky/0200.png
|
20
|
-
assets/city_scene/sky/0400.png
|
21
|
-
assets/city_scene/sky/0600.png
|
22
|
-
assets/city_scene/sky/0800.png
|
23
|
-
assets/city_scene/sky/1000.png
|
24
|
-
assets/city_scene/sky/1200.png
|
25
|
-
assets/city_scene/sky/1400.png
|
26
|
-
assets/city_scene/sky/1500.png
|
27
|
-
assets/city_scene/sky/1700.png
|
28
|
-
assets/city_scene/sky/2000.png
|
29
|
-
assets/pc306715.jpg
|
30
|
-
assets/plastik/blue.png
|
31
|
-
assets/plastik/green.png
|
32
|
-
assets/plastik/red.png
|
33
|
-
init.rb
|
34
|
-
lib/gruff.rb
|
35
|
-
lib/gruff/accumulator_bar.rb
|
36
|
-
lib/gruff/area.rb
|
37
|
-
lib/gruff/bar.rb
|
38
|
-
lib/gruff/bar_conversion.rb
|
39
|
-
lib/gruff/base.rb
|
40
|
-
lib/gruff/bullet.rb
|
41
|
-
lib/gruff/deprecated.rb
|
42
|
-
lib/gruff/dot.rb
|
43
|
-
lib/gruff/line.rb
|
44
|
-
lib/gruff/mini/bar.rb
|
45
|
-
lib/gruff/mini/legend.rb
|
46
|
-
lib/gruff/mini/pie.rb
|
47
|
-
lib/gruff/mini/side_bar.rb
|
48
|
-
lib/gruff/net.rb
|
49
|
-
lib/gruff/photo_bar.rb
|
50
|
-
lib/gruff/pie.rb
|
51
|
-
lib/gruff/scene.rb
|
52
|
-
lib/gruff/side_bar.rb
|
53
|
-
lib/gruff/side_stacked_bar.rb
|
54
|
-
lib/gruff/spider.rb
|
55
|
-
lib/gruff/stacked_area.rb
|
56
|
-
lib/gruff/stacked_bar.rb
|
57
|
-
lib/gruff/stacked_mixin.rb
|
58
|
-
rails_generators/gruff/gruff_generator.rb
|
59
|
-
rails_generators/gruff/templates/controller.rb
|
60
|
-
rails_generators/gruff/templates/functional_test.rb
|
61
|
-
test/gruff_test_case.rb
|
62
|
-
test/test_accumulator_bar.rb
|
63
|
-
test/test_area.rb
|
64
|
-
test/test_bar.rb
|
65
|
-
test/test_base.rb
|
66
|
-
test/test_bullet.rb
|
67
|
-
test/test_dot.rb
|
68
|
-
test/test_legend.rb
|
69
|
-
test/test_line.rb
|
70
|
-
test/test_mini_bar.rb
|
71
|
-
test/test_mini_pie.rb
|
72
|
-
test/test_mini_side_bar.rb
|
73
|
-
test/test_net.rb
|
74
|
-
test/test_photo.rb
|
75
|
-
test/test_pie.rb
|
76
|
-
test/test_scene.rb
|
77
|
-
test/test_side_bar.rb
|
78
|
-
test/test_sidestacked_bar.rb
|
79
|
-
test/test_spider.rb
|
80
|
-
test/test_stacked_area.rb
|
81
|
-
test/test_stacked_bar.rb
|
data/assets/bubble.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/pc306715.jpg
DELETED
Binary file
|
data/lib/gruff/deprecated.rb
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# A mixin for methods that need to be deleted or have been
|
3
|
-
# replaced by cleaner code.
|
4
|
-
|
5
|
-
module Gruff
|
6
|
-
module Deprecated
|
7
|
-
|
8
|
-
def scale_measurements
|
9
|
-
setup_graph_measurements
|
10
|
-
end
|
11
|
-
|
12
|
-
def total_height
|
13
|
-
@rows + 10
|
14
|
-
end
|
15
|
-
|
16
|
-
def graph_top
|
17
|
-
@graph_top * @scale
|
18
|
-
end
|
19
|
-
|
20
|
-
def graph_height
|
21
|
-
@graph_height * @scale
|
22
|
-
end
|
23
|
-
|
24
|
-
def graph_left
|
25
|
-
@graph_left * @scale
|
26
|
-
end
|
27
|
-
|
28
|
-
def graph_width
|
29
|
-
@graph_width * @scale
|
30
|
-
end
|
31
|
-
|
32
|
-
# TODO Should be calculate_graph_height
|
33
|
-
# def setup_graph_height
|
34
|
-
# @graph_height = @graph_bottom - @graph_top
|
35
|
-
# end
|
36
|
-
|
37
|
-
end
|
38
|
-
end
|