ruby-vips 2.0.14 → 2.1.1
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/bug_report.md +42 -0
- data/.github/workflows/test.yml +80 -0
- data/.standard.yml +17 -0
- data/.yardopts +0 -1
- data/CHANGELOG.md +41 -0
- data/Gemfile +3 -1
- data/README.md +42 -41
- data/Rakefile +13 -21
- data/TODO +18 -10
- data/VERSION +1 -1
- data/example/annotate.rb +6 -6
- data/example/connection.rb +26 -0
- data/example/daltonize8.rb +16 -18
- data/example/draw_lines.rb +30 -0
- data/example/example1.rb +5 -6
- data/example/example2.rb +6 -6
- data/example/example3.rb +5 -5
- data/example/example4.rb +4 -4
- data/example/example5.rb +6 -7
- data/example/inheritance_with_refcount.rb +36 -54
- data/example/progress.rb +30 -0
- data/example/thumb.rb +8 -10
- data/example/trim8.rb +5 -5
- data/example/watermark.rb +2 -2
- data/example/wobble.rb +1 -1
- data/lib/ruby-vips.rb +1 -1
- data/lib/vips.rb +199 -93
- data/lib/vips/align.rb +0 -1
- data/lib/vips/angle.rb +0 -1
- data/lib/vips/angle45.rb +0 -1
- data/lib/vips/bandformat.rb +0 -2
- data/lib/vips/blend_mode.rb +29 -27
- data/lib/vips/coding.rb +0 -1
- data/lib/vips/compass_direction.rb +0 -1
- data/lib/vips/connection.rb +46 -0
- data/lib/vips/direction.rb +0 -1
- data/lib/vips/extend.rb +0 -1
- data/lib/vips/gobject.rb +26 -15
- data/lib/vips/gvalue.rb +61 -55
- data/lib/vips/image.rb +455 -282
- data/lib/vips/interesting.rb +0 -1
- data/lib/vips/interpolate.rb +3 -7
- data/lib/vips/interpretation.rb +0 -1
- data/lib/vips/kernel.rb +0 -1
- data/lib/vips/methods.rb +791 -124
- data/lib/vips/mutableimage.rb +173 -0
- data/lib/vips/object.rb +178 -68
- data/lib/vips/operation.rb +277 -130
- data/lib/vips/operationboolean.rb +0 -1
- data/lib/vips/operationcomplex.rb +0 -1
- data/lib/vips/operationcomplex2.rb +0 -1
- data/lib/vips/operationcomplexget.rb +0 -1
- data/lib/vips/operationmath.rb +0 -1
- data/lib/vips/operationmath2.rb +0 -1
- data/lib/vips/operationrelational.rb +0 -1
- data/lib/vips/operationround.rb +0 -1
- data/lib/vips/region.rb +73 -0
- data/lib/vips/size.rb +0 -1
- data/lib/vips/source.rb +88 -0
- data/lib/vips/sourcecustom.rb +89 -0
- data/lib/vips/target.rb +86 -0
- data/lib/vips/targetcustom.rb +77 -0
- data/lib/vips/version.rb +1 -2
- data/ruby-vips.gemspec +26 -21
- metadata +39 -51
- data/.rubocop.yml +0 -10
- data/.rubocop_todo.yml +0 -730
- data/.travis.yml +0 -62
- data/install-vips.sh +0 -26
data/.travis.yml
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
dist: xenial
|
2
|
-
|
3
|
-
env:
|
4
|
-
global:
|
5
|
-
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
6
|
-
- VIPS_VERSION_MAJOR=8
|
7
|
-
- VIPS_VERSION_MINOR=7
|
8
|
-
- VIPS_VERSION_MICRO=2
|
9
|
-
- PATH=$HOME/vips/bin:$PATH
|
10
|
-
- LD_LIBRARY_PATH=$HOME/vips/lib:$LD_LIBRARY_PATH
|
11
|
-
- PKG_CONFIG_PATH=$HOME/vips/lib/pkgconfig:$PKG_CONFIG_PATH
|
12
|
-
|
13
|
-
addons:
|
14
|
-
apt:
|
15
|
-
packages:
|
16
|
-
- libexpat1-dev
|
17
|
-
- gettext
|
18
|
-
- libglib2.0-dev
|
19
|
-
- liborc-0.4-dev
|
20
|
-
- libfftw3-dev
|
21
|
-
- liblcms2-dev
|
22
|
-
- libmagickwand-dev
|
23
|
-
- libopenexr-dev
|
24
|
-
- libcfitsio3-dev
|
25
|
-
- libgif-dev
|
26
|
-
- libgsf-1-dev
|
27
|
-
- libmatio-dev
|
28
|
-
- libopenslide-dev
|
29
|
-
- libpango1.0-dev
|
30
|
-
- libpoppler-glib-dev
|
31
|
-
- librsvg2-dev
|
32
|
-
- libwebp-dev
|
33
|
-
|
34
|
-
cache:
|
35
|
-
bundler: true
|
36
|
-
directories:
|
37
|
-
- $HOME/vips
|
38
|
-
|
39
|
-
language: ruby
|
40
|
-
rvm:
|
41
|
-
- 2.0
|
42
|
-
- 2.1
|
43
|
-
- 2.2
|
44
|
-
- 2.3
|
45
|
-
- 2.4
|
46
|
-
- 2.5
|
47
|
-
- 2.6
|
48
|
-
|
49
|
-
script: bundle exec rake spec
|
50
|
-
|
51
|
-
gemfile:
|
52
|
-
- Gemfile
|
53
|
-
|
54
|
-
before_install:
|
55
|
-
- uname -a
|
56
|
-
- bash install-vips.sh
|
57
|
-
|
58
|
-
jobs:
|
59
|
-
include:
|
60
|
-
- stage: Lint
|
61
|
-
rvm: 2.6
|
62
|
-
script: bundle exec rake rubocop
|
data/install-vips.sh
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
vips_site=https://github.com/libvips/libvips/releases/download
|
4
|
-
version=$VIPS_VERSION_MAJOR.$VIPS_VERSION_MINOR.$VIPS_VERSION_MICRO
|
5
|
-
|
6
|
-
set -e
|
7
|
-
|
8
|
-
# do we already have the correct vips built? early exit if yes
|
9
|
-
# we could check the configure params as well I guess
|
10
|
-
if [ -d "$HOME/vips/bin" ]; then
|
11
|
-
installed_version=$($HOME/vips/bin/vips --version)
|
12
|
-
escaped_version="$VIPS_VERSION_MAJOR\.$VIPS_VERSION_MINOR\.$VIPS_VERSION_MICRO"
|
13
|
-
echo "Need vips-$version"
|
14
|
-
echo "Found $installed_version"
|
15
|
-
if [[ "$installed_version" =~ ^vips-$escaped_version ]]; then
|
16
|
-
echo "Using cached directory"
|
17
|
-
exit 0
|
18
|
-
fi
|
19
|
-
fi
|
20
|
-
|
21
|
-
rm -rf $HOME/vips
|
22
|
-
wget $vips_site/v$version/vips-$version.tar.gz
|
23
|
-
tar xf vips-$version.tar.gz
|
24
|
-
cd vips-$version
|
25
|
-
CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 ./configure --prefix=$HOME/vips $*
|
26
|
-
make && make install
|