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.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE.md +18 -0
  3. data/.gitignore +3 -0
  4. data/.rubocop.yml +93 -0
  5. data/.rubocop_todo.yml +23 -810
  6. data/.travis.yml +4 -4
  7. data/.yardopts +1 -0
  8. data/CHANGELOG.md +22 -0
  9. data/Gemfile +3 -1
  10. data/README.md +44 -21
  11. data/Rakefile +2 -206
  12. data/docker/Dockerfile +14 -0
  13. data/docker/build.sh +4 -0
  14. data/docker/launch.sh +4 -0
  15. data/gruff.gemspec +11 -8
  16. data/init.rb +2 -0
  17. data/lib/gruff.rb +23 -0
  18. data/lib/gruff/accumulator_bar.rb +6 -6
  19. data/lib/gruff/area.rb +13 -17
  20. data/lib/gruff/bar.rb +58 -41
  21. data/lib/gruff/base.rb +243 -566
  22. data/lib/gruff/bezier.rb +12 -14
  23. data/lib/gruff/bullet.rb +39 -57
  24. data/lib/gruff/dot.rb +25 -59
  25. data/lib/gruff/{bar_conversion.rb → helper/bar_conversion.rb} +13 -12
  26. data/lib/gruff/helper/bar_value_label_mixin.rb +30 -0
  27. data/lib/gruff/{stacked_mixin.rb → helper/stacked_mixin.rb} +7 -6
  28. data/lib/gruff/line.rb +95 -177
  29. data/lib/gruff/mini/bar.rb +6 -7
  30. data/lib/gruff/mini/legend.rb +16 -32
  31. data/lib/gruff/mini/pie.rb +6 -7
  32. data/lib/gruff/mini/side_bar.rb +4 -5
  33. data/lib/gruff/net.rb +37 -65
  34. data/lib/gruff/patch/rmagick.rb +33 -0
  35. data/lib/gruff/patch/string.rb +8 -0
  36. data/lib/gruff/photo_bar.rb +19 -19
  37. data/lib/gruff/pie.rb +22 -73
  38. data/lib/gruff/renderer/bezier.rb +21 -0
  39. data/lib/gruff/renderer/circle.rb +21 -0
  40. data/lib/gruff/renderer/dash_line.rb +22 -0
  41. data/lib/gruff/renderer/dot.rb +39 -0
  42. data/lib/gruff/renderer/ellipse.rb +21 -0
  43. data/lib/gruff/renderer/line.rb +34 -0
  44. data/lib/gruff/renderer/polygon.rb +23 -0
  45. data/lib/gruff/renderer/polyline.rb +21 -0
  46. data/lib/gruff/renderer/rectangle.rb +19 -0
  47. data/lib/gruff/renderer/renderer.rb +127 -0
  48. data/lib/gruff/renderer/text.rb +42 -0
  49. data/lib/gruff/scatter.rb +85 -156
  50. data/lib/gruff/scene.rb +22 -30
  51. data/lib/gruff/side_bar.rb +62 -58
  52. data/lib/gruff/side_stacked_bar.rb +47 -43
  53. data/lib/gruff/spider.rb +19 -36
  54. data/lib/gruff/stacked_area.rb +17 -21
  55. data/lib/gruff/stacked_bar.rb +50 -24
  56. data/lib/gruff/store/base_data.rb +34 -0
  57. data/lib/gruff/store/custom_data.rb +34 -0
  58. data/lib/gruff/store/store.rb +80 -0
  59. data/lib/gruff/store/xy_data.rb +55 -0
  60. data/lib/gruff/themes.rb +3 -3
  61. data/lib/gruff/version.rb +3 -1
  62. metadata +41 -30
  63. data/Manifest.txt +0 -81
  64. data/assets/bubble.png +0 -0
  65. data/assets/city_scene/background/0000.png +0 -0
  66. data/assets/city_scene/background/0600.png +0 -0
  67. data/assets/city_scene/background/2000.png +0 -0
  68. data/assets/city_scene/clouds/cloudy.png +0 -0
  69. data/assets/city_scene/clouds/partly_cloudy.png +0 -0
  70. data/assets/city_scene/clouds/stormy.png +0 -0
  71. data/assets/city_scene/grass/default.png +0 -0
  72. data/assets/city_scene/haze/true.png +0 -0
  73. data/assets/city_scene/number_sample/1.png +0 -0
  74. data/assets/city_scene/number_sample/2.png +0 -0
  75. data/assets/city_scene/number_sample/default.png +0 -0
  76. data/assets/city_scene/sky/0000.png +0 -0
  77. data/assets/city_scene/sky/0200.png +0 -0
  78. data/assets/city_scene/sky/0400.png +0 -0
  79. data/assets/city_scene/sky/0600.png +0 -0
  80. data/assets/city_scene/sky/0800.png +0 -0
  81. data/assets/city_scene/sky/1000.png +0 -0
  82. data/assets/city_scene/sky/1200.png +0 -0
  83. data/assets/city_scene/sky/1400.png +0 -0
  84. data/assets/city_scene/sky/1500.png +0 -0
  85. data/assets/city_scene/sky/1700.png +0 -0
  86. data/assets/city_scene/sky/2000.png +0 -0
  87. data/assets/pc306715.jpg +0 -0
  88. data/lib/gruff/deprecated.rb +0 -38
@@ -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
Binary file
Binary file
@@ -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