gruff 0.11.0-java → 0.12.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/gruff.gemspec +7 -3
  4. data/lib/gruff.rb +8 -3
  5. data/lib/gruff/accumulator_bar.rb +0 -2
  6. data/lib/gruff/area.rb +0 -4
  7. data/lib/gruff/bar.rb +18 -5
  8. data/lib/gruff/base.rb +78 -41
  9. data/lib/gruff/bezier.rb +0 -4
  10. data/lib/gruff/bullet.rb +2 -9
  11. data/lib/gruff/dot.rb +1 -5
  12. data/lib/gruff/helper/bar_conversion.rb +1 -1
  13. data/lib/gruff/helper/bar_value_label_mixin.rb +3 -0
  14. data/lib/gruff/histogram.rb +0 -1
  15. data/lib/gruff/line.rb +5 -11
  16. data/lib/gruff/mini/bar.rb +1 -1
  17. data/lib/gruff/mini/legend.rb +9 -4
  18. data/lib/gruff/mini/pie.rb +1 -2
  19. data/lib/gruff/mini/side_bar.rb +1 -2
  20. data/lib/gruff/net.rb +5 -6
  21. data/lib/gruff/patch/rmagick.rb +22 -24
  22. data/lib/gruff/patch/string.rb +7 -4
  23. data/lib/gruff/photo_bar.rb +0 -4
  24. data/lib/gruff/pie.rb +1 -5
  25. data/lib/gruff/renderer/bezier.rb +4 -3
  26. data/lib/gruff/renderer/circle.rb +4 -3
  27. data/lib/gruff/renderer/dash_line.rb +4 -3
  28. data/lib/gruff/renderer/dot.rb +4 -3
  29. data/lib/gruff/renderer/ellipse.rb +4 -3
  30. data/lib/gruff/renderer/line.rb +5 -4
  31. data/lib/gruff/renderer/polygon.rb +5 -4
  32. data/lib/gruff/renderer/polyline.rb +4 -3
  33. data/lib/gruff/renderer/rectangle.rb +3 -2
  34. data/lib/gruff/renderer/renderer.rb +31 -43
  35. data/lib/gruff/renderer/text.rb +10 -6
  36. data/lib/gruff/scatter.rb +1 -5
  37. data/lib/gruff/scene.rb +0 -1
  38. data/lib/gruff/side_bar.rb +22 -6
  39. data/lib/gruff/side_stacked_bar.rb +19 -6
  40. data/lib/gruff/spider.rb +2 -6
  41. data/lib/gruff/stacked_area.rb +0 -5
  42. data/lib/gruff/stacked_bar.rb +17 -5
  43. data/lib/gruff/store/{base_data.rb → basic_data.rb} +5 -7
  44. data/lib/gruff/store/custom_data.rb +4 -6
  45. data/lib/gruff/store/store.rb +5 -4
  46. data/lib/gruff/store/xy_data.rb +6 -7
  47. data/lib/gruff/version.rb +1 -1
  48. metadata +18 -15
  49. data/.editorconfig +0 -14
  50. data/.github/ISSUE_TEMPLATE.md +0 -18
  51. data/.gitignore +0 -10
  52. data/.rubocop.yml +0 -109
  53. data/.rubocop_todo.yml +0 -112
  54. data/.travis.yml +0 -26
  55. data/.yardopts +0 -1
  56. data/Rakefile +0 -47
  57. data/docker/Dockerfile +0 -14
  58. data/docker/build.sh +0 -4
  59. data/docker/launch.sh +0 -4
@@ -1,26 +0,0 @@
1
- language: ruby
2
- dist: bionic
3
- cache: bundler
4
-
5
- rvm:
6
- - 2.3
7
- - 2.4
8
- - 2.5
9
- - 2.6
10
- - 2.7
11
- - jruby-1.7.27
12
- - jruby-9.0.5.0
13
- - jruby-9.1.17.0
14
- - jruby-9.2.11.1
15
-
16
- jobs:
17
- include:
18
- - name: 'Lint'
19
- rvm: 2.3
20
- script: bundle exec rubocop
21
-
22
- addons:
23
- apt:
24
- packages:
25
- - gsfonts
26
- - ghostscript
data/.yardopts DELETED
@@ -1 +0,0 @@
1
- --no-private
data/Rakefile DELETED
@@ -1,47 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rake/testtask'
5
- require 'rake/clean'
6
-
7
- CLEAN.concat %w[pkg test/output/*]
8
-
9
- desc 'Run tests'
10
- task default: :test
11
-
12
- task gem: :build
13
-
14
- Rake::TestTask.new
15
-
16
- namespace :test do
17
- desc 'Run mini tests'
18
- task mini: :clean do
19
- Dir['test/test_mini*'].each do |file|
20
- system "ruby #{file}"
21
- end
22
- end
23
-
24
- desc 'Update expected image with output'
25
- task :"image:update" do
26
- require 'rmagick'
27
- require 'fileutils'
28
-
29
- update_expected_images = lambda do |expect_dir, output_dir|
30
- Dir.glob("#{output_dir}/*.png") do |output_path|
31
- file_name = File.basename(output_path)
32
- expected_path = "#{expect_dir}/#{file_name}"
33
-
34
- expected_image = Magick::Image.read(expected_path).first
35
- output_image = Magick::Image.read(output_path).first
36
- _, error = expected_image.compare_channel(output_image, Magick::PeakAbsoluteErrorMetric)
37
-
38
- if error != 0.0
39
- FileUtils.copy(output_path, expected_path)
40
- end
41
- end
42
- end
43
-
44
- update_expected_images.call('test/expected', 'test/output')
45
- update_expected_images.call('test/expected_java', 'test/output_java')
46
- end
47
- end
@@ -1,14 +0,0 @@
1
- FROM ubuntu:18.04
2
-
3
- RUN apt update && apt install -y gcc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev \
4
- libmagickwand-dev wget git pkg-config && \
5
- wget https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.gz && \
6
- tar xvzf ruby-2.7.1.tar.gz && \
7
- cd ruby-2.7.1 && \
8
- ./configure --prefix=/usr --disable-install-rdoc && \
9
- make -j install && \
10
- cd .. && rm -rf ruby-2.7.1 && \
11
- gem install bundler -v 1.17.3 && \
12
- /usr/bin/bundle config set --local path 'vendor/bundle'
13
-
14
- WORKDIR /opt/gruff
@@ -1,4 +0,0 @@
1
- #!/bin/bash
2
-
3
- script_dir=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)
4
- docker build -t gruff ${script_dir}
@@ -1,4 +0,0 @@
1
- #!/bin/bash
2
-
3
- prject_dir="$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)/.."
4
- docker run -v $prject_dir:/opt/gruff --rm -it gruff bash