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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/gruff.gemspec +7 -3
- data/lib/gruff.rb +8 -3
- data/lib/gruff/accumulator_bar.rb +0 -2
- data/lib/gruff/area.rb +0 -4
- data/lib/gruff/bar.rb +18 -5
- data/lib/gruff/base.rb +78 -41
- data/lib/gruff/bezier.rb +0 -4
- data/lib/gruff/bullet.rb +2 -9
- data/lib/gruff/dot.rb +1 -5
- data/lib/gruff/helper/bar_conversion.rb +1 -1
- data/lib/gruff/helper/bar_value_label_mixin.rb +3 -0
- data/lib/gruff/histogram.rb +0 -1
- data/lib/gruff/line.rb +5 -11
- data/lib/gruff/mini/bar.rb +1 -1
- data/lib/gruff/mini/legend.rb +9 -4
- data/lib/gruff/mini/pie.rb +1 -2
- data/lib/gruff/mini/side_bar.rb +1 -2
- data/lib/gruff/net.rb +5 -6
- data/lib/gruff/patch/rmagick.rb +22 -24
- data/lib/gruff/patch/string.rb +7 -4
- data/lib/gruff/photo_bar.rb +0 -4
- data/lib/gruff/pie.rb +1 -5
- data/lib/gruff/renderer/bezier.rb +4 -3
- data/lib/gruff/renderer/circle.rb +4 -3
- data/lib/gruff/renderer/dash_line.rb +4 -3
- data/lib/gruff/renderer/dot.rb +4 -3
- data/lib/gruff/renderer/ellipse.rb +4 -3
- data/lib/gruff/renderer/line.rb +5 -4
- data/lib/gruff/renderer/polygon.rb +5 -4
- data/lib/gruff/renderer/polyline.rb +4 -3
- data/lib/gruff/renderer/rectangle.rb +3 -2
- data/lib/gruff/renderer/renderer.rb +31 -43
- data/lib/gruff/renderer/text.rb +10 -6
- data/lib/gruff/scatter.rb +1 -5
- data/lib/gruff/scene.rb +0 -1
- data/lib/gruff/side_bar.rb +22 -6
- data/lib/gruff/side_stacked_bar.rb +19 -6
- data/lib/gruff/spider.rb +2 -6
- data/lib/gruff/stacked_area.rb +0 -5
- data/lib/gruff/stacked_bar.rb +17 -5
- data/lib/gruff/store/{base_data.rb → basic_data.rb} +5 -7
- data/lib/gruff/store/custom_data.rb +4 -6
- data/lib/gruff/store/store.rb +5 -4
- data/lib/gruff/store/xy_data.rb +6 -7
- data/lib/gruff/version.rb +1 -1
- metadata +18 -15
- data/.editorconfig +0 -14
- data/.github/ISSUE_TEMPLATE.md +0 -18
- data/.gitignore +0 -10
- data/.rubocop.yml +0 -109
- data/.rubocop_todo.yml +0 -112
- data/.travis.yml +0 -26
- data/.yardopts +0 -1
- data/Rakefile +0 -47
- data/docker/Dockerfile +0 -14
- data/docker/build.sh +0 -4
- data/docker/launch.sh +0 -4
data/.travis.yml
DELETED
@@ -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
|
data/docker/Dockerfile
DELETED
@@ -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
|
data/docker/build.sh
DELETED
data/docker/launch.sh
DELETED