ruby-vips 2.0.17 → 2.1.3
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 +26 -0
- data/Gemfile +3 -1
- data/README.md +12 -11
- data/Rakefile +13 -21
- data/TODO +4 -8
- data/VERSION +1 -1
- data/example/annotate.rb +6 -6
- data/example/connection.rb +18 -9
- data/example/daltonize8.rb +6 -6
- data/example/draw_lines.rb +30 -0
- data/example/example1.rb +4 -4
- data/example/example2.rb +6 -6
- data/example/example3.rb +5 -5
- data/example/example4.rb +2 -2
- data/example/example5.rb +4 -4
- data/example/inheritance_with_refcount.rb +46 -39
- data/example/progress.rb +3 -3
- data/example/thumb.rb +6 -6
- data/example/trim8.rb +1 -1
- data/example/watermark.rb +2 -2
- data/example/wobble.rb +1 -1
- data/lib/ruby-vips.rb +1 -1
- data/lib/vips.rb +127 -76
- data/lib/vips/blend_mode.rb +29 -25
- data/lib/vips/connection.rb +4 -4
- data/lib/vips/gobject.rb +18 -11
- data/lib/vips/gvalue.rb +54 -54
- data/lib/vips/image.rb +289 -165
- data/lib/vips/interpolate.rb +3 -2
- data/lib/vips/methods.rb +484 -107
- data/lib/vips/mutableimage.rb +173 -0
- data/lib/vips/object.rb +86 -93
- data/lib/vips/operation.rb +161 -82
- data/lib/vips/region.rb +6 -6
- data/lib/vips/source.rb +11 -12
- data/lib/vips/sourcecustom.rb +7 -8
- data/lib/vips/target.rb +12 -13
- data/lib/vips/targetcustom.rb +9 -10
- data/lib/vips/version.rb +1 -1
- data/ruby-vips.gemspec +26 -22
- metadata +29 -49
- data/.rubocop.yml +0 -22
- data/.rubocop_todo.yml +0 -473
- data/.travis.yml +0 -57
- data/install-vips.sh +0 -26
data/.travis.yml
DELETED
@@ -1,57 +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
|
-
- 2.7
|
49
|
-
|
50
|
-
script: bundle exec rake spec
|
51
|
-
|
52
|
-
gemfile:
|
53
|
-
- Gemfile
|
54
|
-
|
55
|
-
before_install:
|
56
|
-
- uname -a
|
57
|
-
- bash install-vips.sh
|
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
|