gruff 0.7.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +5 -5
  2. data/{History.txt → CHANGELOG.md} +81 -25
  3. data/Gemfile +3 -1
  4. data/README.md +51 -23
  5. data/assets/plastik/blue.png +0 -0
  6. data/assets/plastik/green.png +0 -0
  7. data/assets/plastik/red.png +0 -0
  8. data/gruff.gemspec +23 -13
  9. data/init.rb +2 -0
  10. data/lib/gruff.rb +33 -4
  11. data/lib/gruff/accumulator_bar.rb +17 -9
  12. data/lib/gruff/area.rb +31 -21
  13. data/lib/gruff/bar.rb +90 -46
  14. data/lib/gruff/base.rb +476 -710
  15. data/lib/gruff/bezier.rb +29 -18
  16. data/lib/gruff/bullet.rb +58 -71
  17. data/lib/gruff/dot.rb +35 -83
  18. data/lib/gruff/helper/bar_conversion.rb +47 -0
  19. data/lib/gruff/helper/bar_value_label_mixin.rb +33 -0
  20. data/lib/gruff/helper/stacked_mixin.rb +23 -0
  21. data/lib/gruff/histogram.rb +59 -0
  22. data/lib/gruff/line.rb +121 -199
  23. data/lib/gruff/mini/bar.rb +17 -10
  24. data/lib/gruff/mini/legend.rb +26 -38
  25. data/lib/gruff/mini/pie.rb +18 -13
  26. data/lib/gruff/mini/side_bar.rb +25 -12
  27. data/lib/gruff/net.rb +69 -83
  28. data/lib/gruff/patch/rmagick.rb +31 -0
  29. data/lib/gruff/patch/string.rb +13 -0
  30. data/lib/gruff/photo_bar.rb +36 -43
  31. data/lib/gruff/pie.rb +42 -103
  32. data/lib/gruff/renderer/bezier.rb +22 -0
  33. data/lib/gruff/renderer/circle.rb +22 -0
  34. data/lib/gruff/renderer/dash_line.rb +23 -0
  35. data/lib/gruff/renderer/dot.rb +40 -0
  36. data/lib/gruff/renderer/ellipse.rb +22 -0
  37. data/lib/gruff/renderer/line.rb +43 -0
  38. data/lib/gruff/renderer/polygon.rb +24 -0
  39. data/lib/gruff/renderer/polyline.rb +22 -0
  40. data/lib/gruff/renderer/rectangle.rb +20 -0
  41. data/lib/gruff/renderer/renderer.rb +120 -0
  42. data/lib/gruff/renderer/text.rb +57 -0
  43. data/lib/gruff/scatter.rb +128 -201
  44. data/lib/gruff/scene.rb +30 -41
  45. data/lib/gruff/side_bar.rb +100 -68
  46. data/lib/gruff/side_stacked_bar.rb +92 -63
  47. data/lib/gruff/spider.rb +47 -53
  48. data/lib/gruff/stacked_area.rb +37 -34
  49. data/lib/gruff/stacked_bar.rb +99 -54
  50. data/lib/gruff/store/basic_data.rb +36 -0
  51. data/lib/gruff/store/custom_data.rb +36 -0
  52. data/lib/gruff/store/store.rb +81 -0
  53. data/lib/gruff/store/xy_data.rb +58 -0
  54. data/lib/gruff/themes.rb +32 -33
  55. data/lib/gruff/version.rb +3 -1
  56. metadata +97 -98
  57. data/.gitignore +0 -7
  58. data/.travis.yml +0 -19
  59. data/Manifest.txt +0 -81
  60. data/RELEASE.md +0 -30
  61. data/Rakefile +0 -218
  62. data/assets/bubble.png +0 -0
  63. data/assets/city_scene/background/0000.png +0 -0
  64. data/assets/city_scene/background/0600.png +0 -0
  65. data/assets/city_scene/background/2000.png +0 -0
  66. data/assets/city_scene/clouds/cloudy.png +0 -0
  67. data/assets/city_scene/clouds/partly_cloudy.png +0 -0
  68. data/assets/city_scene/clouds/stormy.png +0 -0
  69. data/assets/city_scene/grass/default.png +0 -0
  70. data/assets/city_scene/haze/true.png +0 -0
  71. data/assets/city_scene/number_sample/1.png +0 -0
  72. data/assets/city_scene/number_sample/2.png +0 -0
  73. data/assets/city_scene/number_sample/default.png +0 -0
  74. data/assets/city_scene/sky/0000.png +0 -0
  75. data/assets/city_scene/sky/0200.png +0 -0
  76. data/assets/city_scene/sky/0400.png +0 -0
  77. data/assets/city_scene/sky/0600.png +0 -0
  78. data/assets/city_scene/sky/0800.png +0 -0
  79. data/assets/city_scene/sky/1000.png +0 -0
  80. data/assets/city_scene/sky/1200.png +0 -0
  81. data/assets/city_scene/sky/1400.png +0 -0
  82. data/assets/city_scene/sky/1500.png +0 -0
  83. data/assets/city_scene/sky/1700.png +0 -0
  84. data/assets/city_scene/sky/2000.png +0 -0
  85. data/assets/pc306715.jpg +0 -0
  86. data/lib/gruff/bar_conversion.rb +0 -46
  87. data/lib/gruff/deprecated.rb +0 -39
  88. data/lib/gruff/stacked_mixin.rb +0 -23
  89. data/test/gruff_test_case.rb +0 -152
  90. data/test/image_compare.rb +0 -58
  91. data/test/test_accumulator_bar.rb +0 -51
  92. data/test/test_area.rb +0 -134
  93. data/test/test_bar.rb +0 -505
  94. data/test/test_base.rb +0 -33
  95. data/test/test_bezier.rb +0 -33
  96. data/test/test_bullet.rb +0 -26
  97. data/test/test_dot.rb +0 -263
  98. data/test/test_labels_for_null_data.rb +0 -27
  99. data/test/test_legend.rb +0 -68
  100. data/test/test_line.rb +0 -674
  101. data/test/test_mini_bar.rb +0 -33
  102. data/test/test_mini_pie.rb +0 -25
  103. data/test/test_mini_side_bar.rb +0 -36
  104. data/test/test_net.rb +0 -231
  105. data/test/test_photo.rb +0 -41
  106. data/test/test_pie.rb +0 -194
  107. data/test/test_scatter.rb +0 -270
  108. data/test/test_scene.rb +0 -100
  109. data/test/test_side_bar.rb +0 -56
  110. data/test/test_sidestacked_bar.rb +0 -105
  111. data/test/test_spider.rb +0 -226
  112. data/test/test_stacked_area.rb +0 -52
  113. data/test/test_stacked_bar.rb +0 -68
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1f51ad044a490cf08a5bc23565b9a840e8f25ec7
4
- data.tar.gz: e491d7b01929ec882b9e9760838fe021440eab14
2
+ SHA256:
3
+ metadata.gz: 598a0cbae821de9150d2be5678f78d46d752d71bb4fc7fc3defc4ebeec44d41f
4
+ data.tar.gz: 83ab1373199b1fe74d727dce17254db5f18cfe5c6d5d373ae3ed20e2118adaa6
5
5
  SHA512:
6
- metadata.gz: 0e70c18694a2d3dd2339e9374e8bd26628ce738fa854d38bde0f7b7fe8b7f07298e2617b50a8e2816bcb23cd1c777617fa5bff326ff821dc7baf9e0b902a61be
7
- data.tar.gz: d458e987e717773484d57f85f9e9754c54aea06ceccf7bb6839d19413e79cd0605faa858912d3bee9aafef90b7c6c238a33174ea879e86de17a0d8cb69abc3a1
6
+ metadata.gz: 3e1229c9d1a0d194c37ed0cc8c9b33cdcc26910c38a8c193846a0d72541801c90c808ce518119ee08f4b7209937c5e23353b5475b1dc2e9f00409c62873081b9
7
+ data.tar.gz: 7efdc7be8bf7010baa8bf43594e8c1537e7a455a0f868a971f986ed4f7a1407630831ec275075ddd4491c0f490c82f450bbc034bf4a3d5bcfe9717b965e3390e
@@ -1,4 +1,60 @@
1
- == 0.5.1
1
+ # Change Log
2
+
3
+ ## 0.12.0
4
+ - Mark Gruff::Base#to_blob as deprecated (#473)
5
+ - Add Gruff::Base#to_image method (#472)
6
+ - Drop support of Ruby v2.3.x or below (#453, #448)
7
+ - add hide_labels to stacked side bar graphs (#452)
8
+ - add hide_labels to side bar graphs (#451)
9
+ - add hide_labels to stacked bar graphs (#450)
10
+ - support hide_labels separate from hide_line_markers for bar graphs only (#446)
11
+
12
+ ## 0.11.0
13
+ - Fix regression in empty data handling (#445)
14
+ - Rendering text in front most (#439)
15
+ - Allow to change settings even after entered the data in Gruff::Histogram (#437)
16
+ - Adjust label position in Gruff::Net (#436)
17
+ - Adjust LABEL_MARGIN value (#435)
18
+ - Add shadow line in marker line into Gruff::{Dot, SideBar, Scatter} (#430)
19
+ - Move no data message to the vertical center (#428)
20
+ - Remove the getter method in attributes for configuration (#424)
21
+ - Fix title margin in Gruff::Bullet if empty title was given (#422)
22
+
23
+ ## 0.10.0
24
+
25
+ * Add Histogram chart (#419)
26
+ * Fix that Y axis label is not displayed on JRuby platform (#415)
27
+ * Add fill_opacity and stroke_width in Gruff::Area in order to specify the filling opacity (#413)
28
+ * Fix "`get_type_metrics': no text to measure" exception (#410, #409)
29
+
30
+ ## 0.9.0
31
+
32
+ * Fix that sidebar label is not displayed on JRuby platform (#402)
33
+ * Add `group_spacing` which is spacing factor applied between a group of bars belonging to the same label (#400)
34
+ * Fix that label is displayed in the center of the side bar (#399)
35
+ * Fix that value label is displayed in the center of the side bar (#398)
36
+ * Add `show_labels_for_bar_values` into StackedBar (#396)
37
+ * Auto resize title font size if long title will be cut off (#395)
38
+ * Adjust label position in StackedBar (#394)
39
+ * Fix that labels are rendered in the center of bar graph (#393)
40
+ * Remove `stacked` property marked as experimental (#392)
41
+ * Fix to not move away from the baseline if big value was given into `segment_spacing` (#391)
42
+ * Add `segment_spacing property` into SideStackedBar like StackedBar (#390)
43
+ * Fix an exception when using an object as an argument that behaves as an Array (#317)
44
+ * Add `Scatter#dataxy` method like `Line#dataxy` (#316)
45
+ * Retry to fill background to fix "cache resources exhausted" error (#305)
46
+ * Fix label position in Gruff::Bar with negative value (#265)
47
+ * Fixed a bug that did not handle the specified minimum/maximum properly (#260)
48
+ * Fix error of “comparison of Integer with nil failed” (#257, #366, #367)
49
+ * Fix redundant label padding with many decimal points (#254)
50
+ * Fix that value label might be displayed with scientific notation (#252)
51
+
52
+ ## 0.8.0
53
+
54
+ * Remove version restriction in RMagick (#186)
55
+ * Remove the upper limit (< Ruby 3.0) from the required Ruby version (#207)
56
+
57
+ ## 0.5.1
2
58
 
3
59
  Skip packaging the test images. This reduces the gem from 20MB+ to
4
60
  300KB+.
@@ -8,7 +64,7 @@ Bugfixes:
8
64
  * Issue #92 Reduce the gem size by not shipping the test images.
9
65
 
10
66
 
11
- == 0.5.0
67
+ ## 0.5.0
12
68
 
13
69
  We have added a couple of cosmetic changes: Multiple marker lines both
14
70
  vertically and horizontally, and multi-line titles, or no title at all if
@@ -29,7 +85,7 @@ Pull requests:
29
85
  * Issue #90 Added missing parenthesis in base.rb
30
86
 
31
87
 
32
- == 0.4.0
88
+ ## 0.4.0
33
89
 
34
90
  All old branches and pull requests have been merged or deleted. Over 40
35
91
  issues have been resolved! Ruby 2.0 compatibility has been confirmed.
@@ -101,55 +157,55 @@ Internal:
101
157
  * Issue #80 Remove the .rmvrc file from the project
102
158
 
103
159
 
104
- == 0.3.7
160
+ ## 0.3.7
105
161
 
106
162
  * ???
107
163
 
108
- == 0.3.6
164
+ ## 0.3.6
109
165
 
110
166
  * Fixed manifest to list dot graph [theirishpenguin]
111
167
  * Fixed color cycling error [Gunnar Wolf]
112
168
  * Handle case where a line graph data set only has one value [Ron Colwill]
113
169
 
114
- == 0.3.5
170
+ ## 0.3.5
115
171
 
116
172
  * Added dot graph from Erik Andrejko
117
173
 
118
- == 0.3.4
174
+ ## 0.3.4
119
175
 
120
176
  * Reverted DEBUG=true. Will add a check in the release process so this doesn't happen again.
121
177
  * Future releases will end in an odd number for development (topfunky-gruff on GitHub) or even for production releases.
122
178
 
123
- == 0.3.3
179
+ ## 0.3.3
124
180
 
125
181
  * Legend line wrapping [Mat Schaffer]
126
182
  * Stacked area graph fixes [James Coglan]
127
183
 
128
- == 0.3.2
184
+ ## 0.3.2
129
185
 
130
186
  * Include init.rb for use as a Rails plugin.
131
187
 
132
- == 0.3.1
188
+ ## 0.3.1
133
189
 
134
190
  * Fixed missing bullet graph bug (experimental, will be in a future release).
135
191
 
136
- == 0.3.0
192
+ ## 0.3.0
137
193
 
138
194
  * Fixed bug where pie graphs weren't drawing their label correctly.
139
195
 
140
- == 0.2.9
196
+ ## 0.2.9
141
197
 
142
198
  * Patch to make SideBar accurate instead of stacked [Marik]
143
199
  * Will be extracting net, pie, stacked, and side-stacked to separate gem
144
200
  in next release.
145
201
 
146
- == 0.2.8
202
+ ## 0.2.8
147
203
 
148
204
  * New accumulator bar graph (experimental)
149
205
  * Better mini graphs
150
206
  * Bug fixes
151
207
 
152
- == 0.2.7
208
+ ## 0.2.7
153
209
 
154
210
  * Regenerated Manifest.txt
155
211
  * Added scene sample to package
@@ -158,27 +214,27 @@ Internal:
158
214
  * Increased size of numbers in Gruff::Mini::Pie
159
215
  * Added legend_box_size accessor
160
216
 
161
- == 0.2.6
217
+ ## 0.2.6
162
218
 
163
219
  * Fixed missing side_bar.rb in Manifest.txt
164
220
 
165
- == 0.2.5
221
+ ## 0.2.5
166
222
 
167
223
  * New mini graph types (Experimental)
168
224
  * Marker lines can be different color than text labels
169
225
  * Theme definition cleanup
170
226
 
171
- == 0.2.4
227
+ ## 0.2.4
172
228
 
173
229
  * Added option to hide line numbers
174
230
  * Fixed code that was causing warnings
175
231
 
176
- == 0.2.3
232
+ ## 0.2.3
177
233
 
178
234
  * Cleaned up measurements so the graph expands to fill the available space
179
235
  * Added x-axis and y-axis label options
180
236
 
181
- == 0.1.2
237
+ ## 0.1.2
182
238
 
183
239
  * minimum_value and maximum_value can be set after data() to manually scale the graph
184
240
  * Fixed infinite loop bug when values are all equal
@@ -187,17 +243,17 @@ Internal:
187
243
  * Initial refactoring of tests
188
244
  * A host of other bug fixes
189
245
 
190
- == 0.0.8
246
+ ## 0.0.8
191
247
 
192
248
  * NEW Sidestacked Bar Graphs. [Alun Eyre]
193
249
  * baseline_value larger than data will now show correctly. [Mike Perham]
194
250
  * hide_dots and hide_lines are now options for line graphs.
195
251
 
196
- == 0.0.6
252
+ ## 0.0.6
197
253
 
198
254
  * Fixed hang when no data is passed.
199
255
 
200
- == 0.0.4
256
+ ## 0.0.4
201
257
 
202
258
  * Added bar graphs
203
259
  * Added area graphs
@@ -207,18 +263,18 @@ Internal:
207
263
  * Added initial line marker rounding to significant digits (Christian Winkler)
208
264
  * Line graphs line width is scaled with number of points being drawn (Christian Winkler)
209
265
 
210
- == 0.0.3
266
+ ## 0.0.3
211
267
 
212
268
  * Added option to draw line graphs without the lines (points only), thanks to Eric Hodel
213
269
  * Removed font-minimum check so graphs look better at 300px width
214
270
 
215
- == 0.0.2
271
+ ## 0.0.2
216
272
 
217
273
  * Fixed to_blob (thanks to Carlos Villela)
218
274
  * Added bar graphs (initial functionality...will be enhanced)
219
275
  * Removed rendered test output from gem
220
276
 
221
- == 0.0.1
277
+ ## 0.0.1
222
278
 
223
279
  * Initial release.
224
280
  * Line graphs only. Other graph styles coming soon.
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
- source 'http://rubygems.org'
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in gruff.gemspec
4
6
  gemspec
data/README.md CHANGED
@@ -5,23 +5,32 @@
5
5
 
6
6
  A library for making beautiful graphs.
7
7
 
8
+ Built on top of [rmagick](https://github.com/rmagick/rmagick); see its web page
9
+ for a list of the system-level prerequisities (ImageMagick etc) and how to install them.
10
+
8
11
  ## Installation
9
12
 
10
13
  Add this line to your application's Gemfile:
11
14
 
12
- gem 'gruff'
15
+ ```sh
16
+ gem 'gruff'
17
+ ```
13
18
 
14
19
  And then execute:
15
20
 
16
- $ bundle
21
+ ```sh
22
+ $ bundle
23
+ ```
17
24
 
18
25
  Or install it yourself as:
19
26
 
20
- $ gem install gruff
27
+ ```sh
28
+ $ gem install gruff
29
+ ```
21
30
 
22
31
  ## Usage
23
32
 
24
- ```Ruby
33
+ ```ruby
25
34
  require 'gruff'
26
35
  g = Gruff::Line.new
27
36
  g.title = 'Wow! Look at this!'
@@ -40,77 +49,79 @@ g.write('exciting.png')
40
49
 
41
50
  You can find many examples in the [test](https://github.com/topfunky/gruff/tree/master/test)
42
51
  directory along with their resulting charts in the
43
- [output](https://github.com/topfunky/gruff/tree/master/test/output) directory.
44
-
45
- You can find older examples here: http://nubyonrails.com/pages/gruff
52
+ [expected](https://github.com/topfunky/gruff/tree/master/test/expected) directory.
46
53
 
47
54
  ### Accumulator bar chart
48
55
 
49
- ![Accumulator bar chart](https://raw.github.com/topfunky/gruff/master/test/output/accum_bar.png)
56
+ ![Accumulator bar chart](https://raw.github.com/topfunky/gruff/master/test/expected/accum_bar.png)
50
57
 
51
58
  ### Area chart
52
59
 
53
- ![Area chart](https://raw.github.com/topfunky/gruff/master/test/output/area_keynote.png)
60
+ ![Area chart](https://raw.github.com/topfunky/gruff/master/test/expected/area_keynote.png)
54
61
 
55
62
  ### Bar chart
56
63
 
57
- ![Bar chart](https://raw.github.com/topfunky/gruff/master/test/output/bar_rails_keynote.png)
64
+ ![Bar chart](https://raw.github.com/topfunky/gruff/master/test/expected/bar_rails_keynote.png)
58
65
 
59
66
  ### Bezier chart
60
67
 
61
68
  In progress!
62
69
 
63
- ![Bezier chart](https://raw.github.com/topfunky/gruff/master/test/output/bezier_3.png)
70
+ ![Bezier chart](https://raw.github.com/topfunky/gruff/master/test/expected/bezier_3.png)
64
71
 
65
72
  ### Bullet chart
66
73
 
67
74
  In progress!
68
75
 
69
- ![Bullet chart](https://raw.github.com/topfunky/gruff/master/test/output/bullet_greyscale.png)
76
+ ![Bullet chart](https://raw.github.com/topfunky/gruff/master/test/expected/bullet_greyscale.png)
70
77
 
71
78
  ### Dot chart
72
79
 
73
- ![Dot chart](https://raw.github.com/topfunky/gruff/master/test/output/dot.png)
80
+ ![Dot chart](https://raw.github.com/topfunky/gruff/master/test/expected/dot.png)
74
81
 
75
82
  ### Line chart
76
83
 
77
- ![Line chart](https://raw.github.com/topfunky/gruff/master/test/output/line_theme_rails_keynote_.png)
84
+ ![Line chart](https://raw.github.com/topfunky/gruff/master/test/expected/line_theme_rails_keynote_.png)
78
85
 
79
86
  ### LineXY chart
80
87
 
81
- ![LineXY chart](https://raw.github.com/topfunky/gruff/master/test/output/line_xy.png)
88
+ ![LineXY chart](https://raw.github.com/topfunky/gruff/master/test/expected/line_xy.png)
82
89
 
83
90
  ### Net chart
84
91
 
85
- ![Net chart](https://raw.github.com/topfunky/gruff/master/test/output/net_wide_graph.png)
92
+ ![Net chart](https://raw.github.com/topfunky/gruff/master/test/expected/net_wide_graph.png)
86
93
 
87
94
  ### Pie chart
88
95
 
89
- ![Pie chart](https://raw.github.com/topfunky/gruff/master/test/output/pie_pastel.png)
96
+ ![Pie chart](https://raw.github.com/topfunky/gruff/master/test/expected/pie_pastel.png)
90
97
 
91
98
  ### Scatter chart
92
99
 
93
- ![Scatter chart](https://raw.github.com/topfunky/gruff/master/test/output/scatter_basic.png)
100
+ ![Scatter chart](https://raw.github.com/topfunky/gruff/master/test/expected/scatter_basic.png)
94
101
 
95
102
  ### Side bar chart
96
103
 
97
- ![Side bar chart](https://raw.github.com/topfunky/gruff/master/test/output/side_bar.png)
104
+ ![Side bar chart](https://raw.github.com/topfunky/gruff/master/test/expected/side_bar.png)
98
105
 
99
106
  ### Side stacked bar chart
100
107
 
101
- ![Side stacked bar chart](https://raw.github.com/topfunky/gruff/master/test/output/side_stacked_bar_keynote.png)
108
+ ![Side stacked bar chart](https://raw.github.com/topfunky/gruff/master/test/expected/side_stacked_bar_keynote.png)
102
109
 
103
110
  ### Spider chart
104
111
 
105
- ![Spider chart](https://raw.github.com/topfunky/gruff/master/test/output/spider_37signals.png)
112
+ ![Spider chart](https://raw.github.com/topfunky/gruff/master/test/expected/spider_37signals.png)
106
113
 
107
114
  ### Stacked area chart
108
115
 
109
- ![Stacked area chart](https://raw.github.com/topfunky/gruff/master/test/output/stacked_area_keynote.png)
116
+ ![Stacked area chart](https://raw.github.com/topfunky/gruff/master/test/expected/stacked_area_keynote.png)
110
117
 
111
118
  ### Stacked bar chart
112
119
 
113
- ![Stacked bar chart](https://raw.github.com/topfunky/gruff/master/test/output/stacked_bar_keynote.png)
120
+ ![Stacked bar chart](https://raw.github.com/topfunky/gruff/master/test/expected/stacked_bar_keynote.png)
121
+
122
+ ### Histogram chart
123
+
124
+ ![Histogram chart](https://raw.github.com/topfunky/gruff/master/test/expected/histogram.png)
114
125
 
115
126
 
116
127
  ## Documentation
@@ -122,6 +133,23 @@ http://www.rubydoc.info/github/topfunky/gruff/frames
122
133
  We aim to support all Ruby implementations supporting Ruby language level 1.9.3
123
134
  or later. Currently we are running CI for MRI, JRuby, and Rubinius.
124
135
 
136
+ ## Development Setup
137
+ 1. Build docker image
138
+ ```sh
139
+ $ ./docker/build.sh
140
+ ```
141
+
142
+ 2. Launch docker image
143
+ ```sh
144
+ $ ./docker/launch.sh
145
+ ```
146
+
147
+ 3. Run tests
148
+ ```sh
149
+ $ bundle install
150
+ $ bundle exec rake
151
+ ```
152
+
125
153
  ## Contributing
126
154
 
127
155
  ### Source
Binary file
Binary file
Binary file
@@ -1,32 +1,42 @@
1
1
  # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib', __FILE__)
2
+ # frozen_string_literal: true
3
+
4
+ lib = File.expand_path('lib')
3
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
6
  require 'date'
5
7
  require 'gruff/version'
6
8
 
7
9
  Gem::Specification.new do |s|
8
- s.name = %q{gruff}
10
+ s.name = 'gruff'
9
11
  s.version = Gruff::VERSION
10
12
  s.authors = ['Geoffrey Grosenbach', 'Uwe Kubosch']
11
13
  s.date = Date.today.to_s
12
- s.description = %q{Beautiful graphs for one or multiple datasets. Can be used on websites or in documents.}
13
- s.email = %q{boss@topfunky.com}
14
- s.files = `git ls-files`.split($/).reject{|f| f =~ /^test#{File::ALT_SEPARATOR || File::SEPARATOR}output/}
15
- s.homepage = %q{https://github.com/topfunky/gruff}
16
- s.require_paths = %w(lib)
17
- s.summary = %q{Beautiful graphs for one or multiple datasets.}
14
+ s.description = 'Beautiful graphs for one or multiple datasets. Can be used on websites or in documents.'
15
+ s.email = 'boss@topfunky.com'
16
+ s.files = `git ls-files`.split.reject do |f|
17
+ f =~ /^\.|^test|^docker|^Rakefile/
18
+ end
19
+ s.homepage = 'https://github.com/topfunky/gruff'
20
+ s.require_paths = %w[lib]
21
+ s.summary = 'Beautiful graphs for one or multiple datasets.'
18
22
  s.license = 'MIT'
19
23
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
20
24
  s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
21
25
  s.specification_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
22
- s.required_ruby_version = ['>= 1.9.3', '< 3']
23
26
 
24
27
  if defined? JRUBY_VERSION
25
28
  s.platform = 'java'
26
- s.add_dependency 'rmagick4j', '~> 0.3', '>= 0.3.9'
29
+ s.add_dependency 'rmagick4j'
27
30
  else
28
- s.add_dependency 'rmagick', '~> 2.13', '>= 2.13.4'
31
+ s.add_dependency 'rmagick'
32
+ s.add_development_dependency 'rubocop', '~> 1.0.0'
33
+ s.add_development_dependency 'rubocop-performance', '~> 1.8'
29
34
  end
30
- s.add_development_dependency('rake')
31
- s.add_development_dependency('minitest-reporters')
35
+ s.add_dependency 'histogram'
36
+ s.required_ruby_version = '>= 2.4.0'
37
+
38
+ s.add_development_dependency 'rake'
39
+ s.add_development_dependency 'parallel'
40
+ s.add_development_dependency 'minitest-reporters'
41
+ s.add_development_dependency 'yard', '~> 0.9.25'
32
42
  end